8a6bf192d6c474938510f746fb924393ce236295 braney Wed Sep 13 17:58:23 2017 -0700 make visible tracks in hgCollection follow imgOrd in cart. Put collections information in AJAX diff --git src/hg/hgCollection/hgCollection.c src/hg/hgCollection/hgCollection.c index 4ab61dd..9b4b37b 100644 --- src/hg/hgCollection/hgCollection.c +++ src/hg/hgCollection/hgCollection.c @@ -35,30 +35,37 @@ char *excludeVars[] = {"Submit", "submit", "hgva_startQuery", "jsonp", NULL,}; struct track { struct track *next; struct track *trackList; struct trackDb *tdb; char *name; char *shortLabel; char *longLabel; char *visibility; unsigned long color; char *viewFunc; }; +struct trackDbRef +{ +struct trackDbRef *next; +struct trackDb *tdb; +int order; +}; + char *getString(char **input) // grab a quoted string out of text blob { char *ptr = *input; if (*ptr != '"') errAbort("string must start with \""); ptr++; char *ret = ptr; for(; *ptr != '"'; ptr++) ; *ptr = 0; ptr++; if (*ptr == ',') @@ -231,44 +238,83 @@ return FALSE; char *cartVis = cartOptionalString(cart, tdb->parent->track); boolean vis; if (cartVis != NULL) vis = differentString(cartVis, "hide"); else if (tdbIsSuperTrack(tdb->parent)) vis = tdb->parent->isShow; else vis = tdb->parent->visibility != tvHide; return vis; } -void addVisibleTracks() -// add the visible tracks table rows +void checkForVisible(struct trackDbRef **list, struct trackDb *tdb) +/* Walk the trackDb hierarchy looking for visible leaf tracks. */ { -jsInlineF("