4c119082b36cfb29f5604ad45d44486ee7783eda
max
  Fri Mar 28 16:12:28 2014 -0700
adding config option to suppress sending output to galaxy or great, refs #12717
diff --git src/hg/hgTables/mainPage.c src/hg/hgTables/mainPage.c
index 18d54ca..5f99aba 100644
--- src/hg/hgTables/mainPage.c
+++ src/hg/hgTables/mainPage.c
@@ -449,40 +449,45 @@
     if (! otInOtList)
 	outputType = otDefault->name;
     }
 hPrintf("<SELECT NAME=\"%s\">", hgtaOutputType);
 for (ot = otList; ot != NULL; ot = ot->next)
     {
     hPrintf(" <OPTION VALUE=%s", ot->name);
     if (sameString(ot->name, outputType))
 	hPrintf(" SELECTED");
     if (sameString(ot->name, outBed) || sameString(ot->name, outWigBed))
         hPrintf(" id=\"outBed\"");
     hPrintf(">%s\n", ot->label);
     }
 hPrintf("</SELECT>\n");
 hPrintf(" ");
+
+if (!cfgOptionBooleanDefault("hgta.disableSendOutput", FALSE))
+    {
     hPrintf(" Send output to ");
     cgiMakeCheckBoxIdAndJS("sendToGalaxy", doGalaxy(),
         "checkboxGalaxy",
         "onclick=\"document.getElementById('checkboxGreat').checked=false; return true;\"");
     hPrintf("<A HREF=\""GALAXY_URL_BASE"\" target=_BLANK>Galaxy</A>\n");
     nbSpaces(2);
     cgiMakeCheckBoxIdAndJS("sendToGreat", doGreat(),
         "checkboxGreat",
         "onclick=\"return onSelectGreat();\"");
     hPrintf(" <A HREF=\"http://great.stanford.edu\" target=_BLANK>GREAT</A>");
+    }
+
 hPrintf("</TD></TR>\n");
 }
 
 struct outputType otAllFields = { NULL,	outPrimaryTable,"all fields from selected table", };
 struct outputType otSelected =  { NULL, outSelectedFields,
                                   "selected fields from primary and related tables",  };
 struct outputType otSequence =  { NULL, outSequence,    "sequence", };
 struct outputType otPal =       { NULL, outPalOptions,
                                   "CDS FASTA alignment from multiple alignment", };
 struct outputType otGff =         { NULL, outGff,         "GTF - gene transfer format", };
 struct outputType otBed =         { NULL, outBed,         "BED - browser extensible data", };
 struct outputType otCustomTrack = { NULL, outCustomTrack, "custom track", };
 struct outputType otHyperlinks =  { NULL, outHyperlinks,  "hyperlinks to Genome Browser", };
 struct outputType otWigData =     { NULL, outWigData,     "data points", };
 struct outputType otWigBed =      { NULL, outWigBed,      "bed format", };