a00e505a58aefda679ed9a8a2a74687a93861a47 max Fri Mar 22 08:22:51 2024 -0700 adding database name to title on hgc, especially useful for shortmatch track, Jairo requested this in some ticket, do not remember the redmine ticket diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 2a31441..62ad06d 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -826,33 +826,33 @@ printf("%s: %d
\n", scoreLabel, bed->score); } } if (bedSize >= 6) { strand = bed->strand; } printPos(bed->chrom, bed->chromStart, bed->chromEnd, strand, TRUE, bed->name); } void genericHeader(struct trackDb *tdb, char *item) /* Put up generic track info. */ { if (item != NULL && item[0] != 0) - cartWebStart(cart, database, "%s (%s)", tdb->longLabel, item); + cartWebStart(cart, database, "%s: %s (%s)", genome, tdb->longLabel, item); else - cartWebStart(cart, database, "%s", tdb->longLabel); + cartWebStart(cart, database, "%s: %s", genome, tdb->longLabel); // QA noticed that clicking the +- buttons to collapse item detail tables was // generating messages in the Apache log if you went directly to an item page // without first visiting hgTracks. Clicking those buttons causes a cartDump // in order to save the state of visibility of the table, which in // turn needs an hgsid in order to save the state correctly. However, because // we aren't in a form, we have never saved the hgsid to a hidden // input element, and so the javascript that creates the cartDump link attaches // an empty 'hgsid=' parameter, which cartDump doesn't like. Since we aren't in // a form, use the 'common' object to store the parameter so the links to cartDump // are correct: jsInlineF("var common = {hgsid:\"%s\"};\n", cartSessionId(cart)); } void printItemDetailsHtml(struct trackDb *tdb, char *itemName)