9882101ba4d9246b715984049e4975049491cd92 fanhsu Tue Aug 2 10:08:38 2011 -0700 Added product ordering link for IKMC entries when available. diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index c2ae6f0..baaa3c0 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -23044,31 +23044,45 @@ { char *mgiId = words[0], *center = words[1], *status = words[2]; 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];