bb2ae39fd12b2df4ec06b435e63f69da6097e21e kate Tue May 5 14:38:24 2020 -0700 Add link to super-track HTML from supertrack member description collapsible panel. By request of Lou. refs #24668 diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c index e93ee24..3466481 100644 --- src/hg/hgTrackUi/hgTrackUi.c +++ src/hg/hgTrackUi/hgTrackUi.c @@ -3212,31 +3212,34 @@ // remove Description header html = replaceChars(html, "<h2>Description</h2>", ""); html = replaceChars(html, "<h3>Description</h3>", ""); html = replaceChars(html, "<h1>Description</h1>", ""); // remove everything after Description text char *end = stringIn("<h2>", html); if (!end) end = stringIn("<h1>", html); if (!end) end = stringIn("<h3>", html); if (end) *end = '\0'; printf("%s", html); - printf("<p><i>To view the full description of this super-track, click the link above.</i>\n"); + printf("<p><i>To view the full description of this super-track, 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></p>"); //printf("</p><p> <b>+ Description</b>\n"); printf("<hr>"); } /* track configuration form */ printf("<FORM ACTION=\"%s\" NAME=\""MAIN_FORM"\" METHOD=%s>\n\n", hgTracksName(), cartUsualString(cart, "formMethod", "POST")); cartSaveSession(cart); if (sameWord(tdb->track,"ensGene")) {