a2c9728424a8d22c1ae93ae37c4a5f1fd4095e62 braney Thu Apr 24 11:45:15 2025 -0700 add quickLift support for pubs* tracks diff --git src/hg/hgc/pubs.c src/hg/hgc/pubs.c index 77a4d6fa65b..85a5380b18c 100644 --- src/hg/hgc/pubs.c +++ src/hg/hgc/pubs.c @@ -5,30 +5,31 @@ #include "common.h" #include "jksql.h" #include "hdb.h" #include "hgc.h" #include "hgColors.h" #include "trackDb.h" #include "web.h" #include "hash.h" #include "net.h" #include "obscure.h" #include "common.h" #include "string.h" #include "dystring.h" #include "dnautil.h" +#include "trackHub.h" //#include "ctype.h" // cgi var to activate debug output static int pubsDebug = 0; // global var for printArticleInfo to indicate if article has suppl info // Most publishers have supp data. // If they don't have it, we can skip the fileType column in the table bool pubsHasSupp = TRUE; // global var for printArticleInfo to indicate if article is elsevier // If it's elsevier, we print the copyright line bool pubsIsElsevier = FALSE; // the article source is used to modify other parts of the page @@ -1155,35 +1156,39 @@ } } else qt = gftDna; showSomeAlignment(psl, oSeq, qt, 0, oSeq->size, NULL, 0, 0); } void doPubsDetails(struct trackDb *tdb, char *item) /* publications custom display */ { int start = cgiOptionalInt("o", -1); int end = cgiOptionalInt("t", -1); -char *trackTable = cgiString("g"); +char *trackTable = trackHubSkipHubName(cgiString("g")); char *aliTable = cgiOptionalString("aliTable"); int fasta = cgiOptionalInt("fasta", 0); pubsDebug = cgiOptionalInt("debug", 0); +char *liftDb = cloneString(trackDbSetting(tdb, "quickLiftDb")); +if (liftDb != NULL) + database = liftDb; + struct sqlConnection *conn = hAllocConn(database); char *articleTable = trackDbRequiredSetting(tdb, "pubsArticleTable"); if (stringIn("Psl", trackTable)) { if (aliTable!=NULL) { pubsSequenceTable = trackDbRequiredSetting(tdb, "pubsSequenceTable"); pubsAli(conn, trackTable, pubsSequenceTable, item); return; } else {