b33e4b8402b46121cf4eab8eb9281c6b28576c25 chmalee Wed Jul 24 16:49:19 2024 -0700 Make knownGene handled like regular tracks by hgSearch, refs #33774 diff --git src/hg/hgSearch/hgSearch.c src/hg/hgSearch/hgSearch.c index 27e5124..cd088b8 100644 --- src/hg/hgSearch/hgSearch.c +++ src/hg/hgSearch/hgSearch.c @@ -147,32 +147,31 @@ { hashAdd(elementHash, "name", newJsonString(category->name)); hashAdd(elementHash, "id", newJsonString(category->id)); hashAdd(elementHash, "visibility", newJsonNumber((long)category->visibility)); hashAdd(elementHash, "group", newJsonString(category->groupName)); hashAdd(elementHash, "label", newJsonString(category->label)); hashAdd(elementHash, "description", newJsonString(category->description)); hashAdd(elementHash, "parents", newJsonString(slNameListToString(category->parents, ','))); hashAdd(elementHash, "priority", newJsonDouble(category->priority)); } static boolean nonTrackCateg(struct searchCategory *categ) { if (sameString("publicHubs", categ->id) || sameString("helpDocs", categ->id) || - startsWith("trackDb", categ->id) || - sameString("knownGene", categ->id)) + startsWith("trackDb", categ->id)) return TRUE; return FALSE; } static struct jsonElement *jsonElementFromVisibleCategs(struct searchCategory *categs) { struct searchCategory *categ = NULL; struct jsonElement *ret = newJsonList(NULL); for (categ = categs; categ != NULL; categ = categ->next) { if (categ->visibility > 0) jsonListAdd(ret, newJsonString(categ->id)); } return ret; }