eb5c9cd277c2bcd521aa461d06e9d8a32509c1d3 braney Thu Oct 9 12:17:30 2025 -0700 make it possible to use a cart variable in addition to an hg.conf variable to turn on quickLift diff --git src/hg/hgConvert/hgConvert.c src/hg/hgConvert/hgConvert.c index 1ee630cb9c7..dc35cb6c0e7 100644 --- src/hg/hgConvert/hgConvert.c +++ src/hg/hgConvert/hgConvert.c @@ -14,30 +14,35 @@ #include "htmshell.h" #include "hdb.h" #include "hui.h" #include "cart.h" #include "web.h" #include "chain.h" #include "liftOver.h" #include "liftOverChain.h" #include "chromInfo.h" #include "net.h" #include "genark.h" #include "trackHub.h" #include "hubConnect.h" #include "quickLift.h" #include "chromAlias.h" +#ifdef NOTNOW +#include "jsHelper.h" +#include "bigChain.h" +#include "bigLink.h" +#endif /* CGI Variables */ #define HGLFT_TOORG_VAR "hglft_toOrg" /* TO organism */ #define HGLFT_TODB_VAR "hglft_toDb" /* TO assembly */ #define HGLFT_DO_CONVERT "hglft_doConvert" /* Do the actual conversion */ /* Global Variables */ static struct cart *cart; /* CGI and other variables */ static struct hash *oldVars = NULL; static char *organism = NULL; static char *database = NULL; /* Javascript to support New Assembly pulldown when New Genome changes. */ /* Copies selected values to a hidden form */ @@ -55,31 +60,31 @@ struct dbDb *toDb = genarkLiftOverDb(name); if (toDb == NULL) errAbort("Can't find %s in matchingDb", name); return toDb; } static void askForDestination(struct liftOverChain *liftOver, char *fromPos, struct dbDb *fromDb, struct dbDb *toDb) /* set up page for entering data */ { struct dbDb *dbList; boolean askAboutQuickLift = FALSE; //boolean quickLiftChainExists = (quickLiftGetChain(fromDb->name, toDb->name) != 0); -if (quickLiftEnabled()) +if (quickLiftEnabled(cart)) askAboutQuickLift = TRUE; cartWebStart(cart, database, "Convert %s to New Assembly", fromPos); /* create HMTL form */ puts("