97994052470de6e1e5ed2e3afe714e30056e3b38 tdreszer Mon Sep 27 15:24:03 2010 -0700 Blocking containerChildren from simple search since they do not appear to be displayable outside their container diff --git src/hg/hgTracks/searchTracks.c src/hg/hgTracks/searchTracks.c index dbf8770..c9d52dd 100644 --- src/hg/hgTracks/searchTracks.c +++ src/hg/hgTracks/searchTracks.c @@ -536,7 +536,7 @@ for(tsList = trixSearch(trix, descWordCount, descWords, TRUE); tsList != NULL; tsList = tsList->next) { struct track *track = (struct track *) hashFindVal(trackHash, tsList->itemId); - if (track != NULL) + if (track != NULL && !tdbIsContainerChild(track->tdb)) // NOTE: Not including container children, since they don't seem to be individually viewaable { refAdd(&tracks, track); tracksFound++; @@ -716,7 +716,7 @@ safef(name,sizeof(name),"%s_sel",track->track); boolean checked = FALSE; #define CB_HIDDEN_VAR "<INPUT TYPE=HIDDEN disabled=true NAME='%s_sel' VALUE='%s'>" - if(tdbIsCompositeChild(track->tdb)) + if(tdbIsContainerOrCompositeChild(track->tdb)) { checked = fourStateVisible(subtrackFourStateChecked(track->tdb,cart)); // Don't need all 4 states here. Visible=checked&&enabled //track->visibility = limitedVisFromComposite(track); @@ -756,7 +756,7 @@ } // If this is a container track, allow configuring... - if (tdbIsComposite(track->tdb) || tdbIsSuper(track->tdb)) + if (tdbIsContainerOrComposite(track->tdb) || tdbIsSuper(track->tdb)) { containerTrackCount++; hPrintf(" <a href='hgTrackUi?db=%s&g=%s&hgt_searchTracks=1' title='Configure this container track...'>*</a> ",database,track->track);