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("<TR><TD colspan=2>"); printCustomUrl(tdb, mgiId, FALSE); printf("</TD></TR>\n<TR><TD colspan=2>"); printOtherCustomUrl(tdb, mgiId, "mgiUrl", FALSE); printf("</TD></TR>\n"); safecpy(lastMgiId, sizeof(lastMgiId), mgiId); } printf("<TR><TD><B>Center: </B>%s</TD>\n", center); ptr = strrchr(row[0], '_'); if (ptr != NULL) printf("<TD><B>Design ID: </B>%s</TD>\n", ptr+1); - printf("<TD><B>Status: </B>%s</TD></TR>\n", status); + printf("<TD><B>Status: </B>%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(" (<A HREF=\"http://www.komp.org/geneinfo.php?project=%s\" target=_blank>", + ++ptr); + printf("order %s)", productStr);fflush(stdout); + } + printf("</TD></TR>\n"); } } puts("<TR><TD colspan=2>"); 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];