e5259878fcab4eeda7e83203e858c606b9dacf26 galt Thu Sep 21 14:11:22 2023 -0700 Disable hyperlinks hgTables output for Galaxy, show warning with explanation instead. refs #32257 diff --git src/hg/hgTables/galaxy.c src/hg/hgTables/galaxy.c index 8720e02..85162a3 100644 --- src/hg/hgTables/galaxy.c +++ src/hg/hgTables/galaxy.c @@ -127,20 +127,33 @@ cgiMakeHiddenVar("position", cartString(cart, "position")); } void printGalaxySubmitButtons () /* print submit button to send query results to Galaxy */ { cgiMakeButton(hgtaDoGalaxyQuery, "Send query to Galaxy"); hPrintf("\n"); hPrintf(" "); /* new form as action is different */ hPrintf("
\n"); } +void verifyGalaxyFormat(const char *output) +/* print warning about not using hyperlinks output formtat with Galaxy */ +{ +if (sameString(output, outHyperlinks)) + { + htmlOpen("Sorry!"); + errAbort("Galaxy does not use hyperlinks output format.\n" + "Please go back and ensure that hyperlinks output format is not chosen."); + htmlClose(); + } +} + + boolean doGalaxy () /* has the send to Galaxy checkbox been selected? */ { return cartUsualBoolean(cart, "sendToGalaxy", FALSE); }