d2d2d0878f2026d7b3d9f3b2580ea6da3d8b76a3 braney Thu Sep 10 10:41:21 2020 -0700 first cut at gencodeV35 html page diff --git src/hg/hgGene/hgGene.c src/hg/hgGene/hgGene.c index ed58e85..dc23769 100644 --- src/hg/hgGene/hgGene.c +++ src/hg/hgGene/hgGene.c @@ -678,31 +678,34 @@ curAlignId = cloneString(row[ALIGNIDFIELD]); else curAlignId = gp->name; } sqlFreeResult(&sr); if (gp == NULL) errAbort("getCurGenePred: Can't find %s", query); return gp; } void doKgMethod() /* display knownGene.html content (UCSC Known Genes * Method, Credits, and Data Use Restrictions) */ { cartWebStart(cart, database, "Methods, Credits, and Use Restrictions"); -struct trackDb *tdb = hTrackDbForTrack(database, genomeSetting("knownGene")); +char *tableName = cartUsualString(cart, hggType, NULL); +if (tableName == NULL) + tableName = "knownGene"; +struct trackDb *tdb = hTrackDbForTrack(database, tableName); hPrintf("%s", tdb->html); cartWebEnd(); } void cartMain(struct cart *theCart) /* We got the persistent/CGI variable cart. Now * set up the globals and make a web page. */ { hgBotDelay(); cart = theCart; getDbAndGenome(cart, &database, &genome, oldVars); initGenbankTableNames(database); getGenomeSettings(); if (cartVarExists(cart, hggDoKgMethod)) doKgMethod();