b312b42ad8c3e89350417bb7b05c9e05a1507281 kate Thu Jan 27 22:10:20 2011 -0800 Support for genome browser preview site. 1. Changes browser title in CGIs 2. Prints warning text on hgGateway 3. Prints warning text on home page 1. and 2. activated by HTTP_HOST prefix 'genome-preview', or by setting test.preview=true in hg.conf diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 0979185..2a80e1f 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -103,31 +103,31 @@ struct hash *oldVars = NULL; boolean hideControls = FALSE; /* Hide all controls? */ boolean trackImgOnly = FALSE; /* caller wants just the track image and track table html */ boolean ideogramToo = FALSE; /* caller wants the ideoGram (when requesting just one track) */ /* Structure returned from findGenomePos. * We use this to to expand any tracks to full * that were found to contain the searched-upon * position string */ struct hgPositions *hgp = NULL; /* Other global variables. */ struct trackHub *hubList = NULL; /* List of all relevant hubs. */ struct group *groupList = NULL; /* List of all tracks. */ -char *browserName; /* Test or public browser */ +char *browserName; /* Test, preview, or public browser */ char *organization; /* UCSC */ struct hash *trackHash = NULL; /* Hash of the tracks by their name. */ #ifdef DEBUG void uglySnoopTrackList(int depth, struct track *trackList) /* Print out some info on track list. */ { struct track *track; for (track = trackList; track != NULL; track = track->next) { if (stringIn("FaireH1h", track->track)) { repeatCharOut(uglyOut, '+', depth); uglyf("%s pri=%g defPri=%g<BR>\n", track->track, track->priority, track->defaultPriority);