438329d9a3bc4582f7b7e64f68b05a9dcbbe0d99
fanhsu
Tue Aug 2 11:19:48 2011 -0700
Added product ordering link for hgIkmc entries when corresponding bio resource available.
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index baaa3c0..36c755c 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -23145,31 +23145,45 @@
{
char *mgiId = words[0], *center = words[2], *status = words[3];
if (!sameString(mgiId, lastMgiId))
{
printf("
");
printCustomUrl(tdb, mgiId, FALSE);
printf(" |
\n");
printOtherCustomUrl(tdb, mgiId, "mgiUrl", FALSE);
printf(" |
\n");
safecpy(lastMgiId, sizeof(lastMgiId), mgiId);
}
printf("Center: %s | \n", center);
ptr = strrchr(row[0], '_');
if (ptr != NULL)
printf("Design ID: %s | \n", ptr+1);
- printf("Status: %s |
\n", status);
+ printf("Status: %s", status);
+ if ((ptr != NULL) && (strstr(status, "vailable") != NULL))
+ {
+ char *productStr;
+ char *chp;
+ productStr = strdup(status);
+ chp = strstr(productStr, "vailable");
+ chp--;
+ chp--;
+ *chp = '\0';
+ printf(" (",
+ ++ptr);
+ printf("order %s)", productStr);fflush(stdout);
+ }
+ printf(" | \n");
}
}
puts("");
sqlFreeResult(&sr);
}
safef(query, sizeof(query), "select chrom,chromStart,chromEnd from %s "
"where name = '%s'", tdb->table, item);
sr = sqlGetResult(conn, query);
char lastChr[32];
int lastStart = -1;
int lastEnd = -1;
lastChr[0] = '\0';
while ((row = sqlNextRow(sr)) != NULL)
{
char *chr = row[0];
|