b33e4b8402b46121cf4eab8eb9281c6b28576c25 chmalee Wed Jul 24 16:49:19 2024 -0700 Make knownGene handled like regular tracks by hgSearch, refs #33774 diff --git src/hg/cgilib/cartTrackDb.c src/hg/cgilib/cartTrackDb.c index 13a2e85..c474978 100644 --- src/hg/cgilib/cartTrackDb.c +++ src/hg/cgilib/cartTrackDb.c @@ -531,33 +531,31 @@ slAddHead(&newList, tdb); } slReverse(&newList); return newList; } static void hashTdbNames(struct trackDb *tdb, struct hash *trackHash) /* Store the track names for lookup, except for knownGene which gets its own special * category in the UI */ { struct trackDb *tmp; for (tmp = tdb; tmp != NULL; tmp = tmp->next) { if (tmp->subtracks) hashTdbNames(tmp->subtracks, trackHash); - if (!sameString(tmp->table, tmp->track)) hashAdd(trackHash, tmp->track, tmp); - hashAdd(trackHash, tmp->table, tmp); } } void hashTracksAndGroups(struct cart *cart, char *db) /* get the list of tracks available for this assembly, along with their group names * and visibility-ness. Note that this implicitly makes connected hubs show up * in the trackList struct, which means we get item search for connected * hubs for free */ { if (hgFindTdbList != NULL && hgFindGrpList != NULL) return; if (!hgFindTrackHash) hgFindTrackHash = hashNew(0);