276a54d43de46e302347b921531a45ef266b55d4
max
Fri Sep 22 05:02:12 2023 -0700
adding link to parent track for composite children trackUi page, refs #32263
diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c
index 0fece699..7222fe5 100644
--- src/hg/hgTrackUi/hgTrackUi.c
+++ src/hg/hgTrackUi/hgTrackUi.c
@@ -3320,30 +3320,37 @@
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);
}
+ // incoming links from Google searches can go directly to a composite child trackUi page: tell users
+ // that they're inside a container now and can go back up the hierarchy
+ if (tdbGetComposite(tdb)) {
+ printf("
This track is a member of the composite container track \"%s\".
", tdb->parent->shortLabel);
+ printf("Click here to display the container configuration page.", database, chromosome, tdb->parent->track);
+ }
+
}
puts("
");
if (tdbIsSuperTrackChild(tdb))
showSupertrackInfo(tdb);
if (ct && sameString(tdb->type, "maf"))
tdb->canPack = TRUE;
else if (sameString(tdb->track, WIKI_TRACK_TABLE))
// special case wikiTrack (there's no trackDb entry); fixes redmine 2395
tdb->canPack = TRUE;
else if (sameString(tdb->type, "halSnake"))
tdb->canPack = TRUE;
else if (!startsWith("bigWig", tdb->type) && startsWith("big", tdb->type))
tdb->canPack = TRUE;