877b1886b6e9ee73fa26477cbf83bbf16771bb3d kate Wed May 13 16:24:46 2020 -0700 Restore ENCODE logo to track header (not supertrack). Remove uplink to all tracks in group from the supertrack link. Maybe we decided to remove this generally ?. refs #24948 diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c index 738c147..f0936e6 100644 --- src/hg/hgTrackUi/hgTrackUi.c +++ src/hg/hgTrackUi/hgTrackUi.c @@ -3085,55 +3085,37 @@ { if (jsonGlobalsHash == NULL) jsonGlobalsHash = newJsonObject(newHash(5)); jsonObjectAdd(jsonGlobalsHash, name, ele); } void showSupertrackInfo(struct trackDb *tdb) { // A bit of context when we're in hierarchy: parent description and sibling track list if (!tdb->parent) return; // show super-track info struct trackDb *tdbParent = tdb->parent; -if (trackDbSetting(tdbParent, "wgEncode")) - printf(""); -printf("Track collection: %s ", + +printf("Track collection: " + "" + "%s ", hgTrackUiName(), cartSessionVarName(), cartSessionId(cart), chromosome, cgiEncode(tdbParent->track), tdbParent->longLabel); -// show group info -struct grp *grp, *grps = hLoadGrps(database); -for (grp = grps; grp != NULL; grp = grp->next) - { - if (sameString(grp->name, tdb->grp)) - { - printf("  " - "(All %s%s)", - hgTracksName(), cartSessionVarName(), cartSessionId(cart), chromosome, - tdb->grp, tdb->grp, grp->label, grp->label, - endsWith(grp->label," Tracks")?"":" tracks"); - break; - } - } -grpFreeList(&grps); - // collapsed panel for Description printf("

"); printf("

"); // required by jsCollapsible jsBeginCollapsibleSectionFontSize(cart, tdb->track, "superDescription", "Description", FALSE, "medium"); char *html = replaceChars(tdbParent->html, "Description", ""); html = replaceChars(html, "

Description

", ""); html = replaceChars(html, "

Description

", ""); // remove everything after Description text @@ -3275,31 +3257,31 @@ } else { struct trackVersion *trackVersion = getTrackVersion(database, "ncbiRefSeq"); if ((trackVersion != NULL) && !isEmpty(trackVersion->version)) { safef(longLabel, sizeof(longLabel), "%s - Annotation Release %s", tdb->longLabel, trackVersion->version); } else safef(longLabel, sizeof(longLabel), "%s", tdb->longLabel); } printf("%s%s\n", longLabel, tdbIsSuper(tdb) ? " Tracks" : ""); } else { - if (trackDbSetting(tdb, "wgEncode") && !tdb->parent) + if (trackDbSetting(tdb, "wgEncode")) printf(""); // set large title font size, but less so for long labels to minimize wrap printf("%s%s\n", strlen(tdb->longLabel) > 30 ? 133 : 200, tdb->longLabel, tdbIsSuper(tdb) ? " tracks" : ""); } /* Print link for parent track */ if (!ajax) { if (!tdb->parent) { // show group info