e68de3568b4604b3febc0a873285ee16fd32ea99 max Thu Aug 15 14:14:54 2013 -0700 changing the order of fields in bedDetail to match normal bed order, as requested by QA in #10687 diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 7b6289d..731c4c2 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -23906,37 +23906,42 @@ { table = ct->dbTableName; conn = hAllocConn(CUSTOM_TRASH); bedPart = ct->fieldCount - 2; /* header handled by custom track handler */ } /* postion, band, genomic size */ sqlSafef(query, sizeof(query), "select * from %s where chrom = '%s' and chromStart = %d and chromEnd = %d and name = '%s'", table, chrom, start, end, itemName); sr = sqlGetResult(conn, query); if ((row = sqlNextRow(sr)) != NULL) { r = bedDetailLoadWithGaps(row, bedPart+2); - bedPrintPos((struct bed*)r, bedPart, tdb); - if (r->id != NULL) + if (isNotEmpty(r->id)) { - if (!sameString("qPcrPrimers", table)) - printf("<B>ID:</B> %s <BR>\n", r->id); + printf("<p>"); printCustomUrl(tdb, r->id, TRUE); + printf("</p>"); } + + bedPrintPos((struct bed*)r, bedPart, tdb); + printf("<br>"); + if (isNotEmpty(r->id) && !sameString("qPcrPrimers", table)) + printf("<B>ID:</B> %s <BR>\n", r->id); + if (isNotEmpty(r->description)) printf("%s <BR>\n", r->description); } sqlFreeResult(&sr); /* do not print this for custom tracks, they do this later */ if (ct == NULL) printTrackHtml(tdb); bedDetailFree(&r); hFreeConn(&conn); } struct trackDb *tdbForTableArg() /* get trackDb for track passed in table arg */ {