src/hg/hgGateway/hgGateway.c 1.116
1.116 2010/03/18 00:51:28 kate
Generalize survey link
Index: src/hg/hgGateway/hgGateway.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgGateway/hgGateway.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -b -B -U 4 -r1.115 -r1.116
--- src/hg/hgGateway/hgGateway.c 10 Mar 2010 00:19:06 -0000 1.115
+++ src/hg/hgGateway/hgGateway.c 18 Mar 2010 00:51:28 -0000 1.116
@@ -33,8 +33,9 @@
char *defaultPosition = hDefaultPos(db);
char *position = cloneString(cartUsualString(cart, "position", defaultPosition));
boolean gotClade = hGotClade();
char *survey = cfgOptionEnv("HGDB_SURVEY", "survey");
+char *surveyLabel = cfgOptionEnv("HGDB_SURVEY_LABEL", "surveyLabel");
boolean supportsSuggest = assemblySupportsGeneSuggest(db);
/* JavaScript to copy input data on the change genome button to a hidden form
This was done in order to be able to flexibly arrange the UI HTML
@@ -160,10 +161,10 @@
"<a HREF=\"../cgi-bin/cartReset\">Click here to reset</a> the browser user interface settings to their defaults.");
#define SURVEY 1
#ifdef SURVEY
-if (survey && sameWord(survey, "on"))
- puts(" <FONT STYLE=\"background-color:yellow;\"><A HREF=\"http://www.surveymonkey.com/s.asp?u=881163743177\" TARGET=_BLANK><EM><B>Take survey</EM></B></A></FONT>");
+if (survey && differentWord(survey, "off"))
+ printf(" <FONT STYLE=\"background-color:yellow;\"><A HREF=\"%s\" TARGET=_BLANK><EM><B>%s</EM></B></A></FONT>", survey, surveyLabel ? surveyLabel : "Take survey");
#endif
puts(
"<BR>\n"