60fb3562b8ca97c4e215049c9092e01eb6ce70cc kate Mon May 11 16:19:31 2020 -0700 Switch back to listing all tracks in super (not 'other'). Request of MarkD. refs #24948 diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c index 130710c..5f7554a 100644 --- src/hg/hgTrackUi/hgTrackUi.c +++ src/hg/hgTrackUi/hgTrackUi.c @@ -3143,42 +3143,46 @@ if (!end) end = stringIn("<h3>", html); if (end) *end = '\0'; printf("%s", html); printf("<p><i>To view the full description, click " "<a target='_blank' href='%s?%s=%s&c=%s&g=%s#TRACK_HTML'>here.</i></a>\n", hgTrackUiName(), cartSessionVarName(), cartSessionId(cart), chromosome, cgiEncode(tdbParent->track)); jsEndCollapsibleSection(); printf("</table>"); // required by jsCollapsible // collapsed panel for list of other tracks in the supertrack char listTitle[1000]; -safef(listTitle, sizeof listTitle, "Other tracks in this collection (%d)", - slCount(tdbParent->children)-1); +safef(listTitle, sizeof listTitle, "All tracks in this collection (%d)", + slCount(tdbParent->children)); printf("<table>"); // required by jsCollapsible jsBeginCollapsibleSectionFontSize(cart, tdb->track, "superMembers", listTitle, FALSE, "medium"); printf("<table cellpadding='2' style='margin-left: 50px';>"); struct slRef *childRef; tdbRefSortPrioritiesFromCart(cart, &tdbParent->children); for (childRef = tdbParent->children; childRef != NULL; childRef = childRef->next) { struct trackDb *sibTdb = childRef->val; if (sameString(sibTdb->track, tdb->track)) + { + printf("<tr><td><b>%s</b></td>\n", sibTdb->shortLabel); + printf("<td>%s</td></tr>\n", sibTdb->longLabel); continue; + } printf("<tr>"); printf("<td><a href='%s?%s=%s&c=%s&g=%s'>%s</a> </td>", tdbIsDownloadsOnly(sibTdb) ? hgFileUiName(): hTrackUiForTrack(sibTdb->track), cartSessionVarName(), cartSessionId(cart), chromosome, cgiEncode(sibTdb->track), sibTdb->shortLabel); printf("<td>%s</td></tr>\n", sibTdb->longLabel); } printf("</table>"); jsEndCollapsibleSection(); printf("</table>"); // required by jsCollapsible printf("</p>"); } void trackUi(struct trackDb *tdb, struct trackDb *tdbList, struct customTrack *ct, boolean ajax) /* Put up track-specific user interface. */