ba66e2f7bd12e9a3d89a3c100bcade38eb0ca432 braney Thu Jun 5 13:01:39 2014 -0700 some polishing of text. Make "disconnect" return to hgHubConnect diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index 952a3b1..2c408bf 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -325,31 +325,31 @@ // if we have search terms, put out the line telling the user so if (haveTrixFile && !isEmpty(hubSearchTerms)) { printf("List restricted by search terms : %s\n", hubSearchTerms); puts("\n"); puts("

\n"); strLower(cleanSearchTerms); urlSearchHash = getUrlSearchHash(trixFile, cleanSearchTerms); } -puts("Pressing Connect button will take you to the gateway page with the default assembly for that hub selected.
"); +puts("Clicking Connect redirects to the gateway page of the selected hub's default assembly.
"); // make sure all the public hubs are in the hubStatus table. addPublicHubsToHubStatus(conn, publicTable, statusTable); struct hash *publicHash = newHash(5); char query[512]; bool hasDescription = sqlColumnExists(conn, publicTable, "descriptionUrl"); if (hasDescription) sqlSafef(query, sizeof(query), "select p.hubUrl,p.shortLabel,p.longLabel,p.dbList,s.errorMessage,s.id,p.descriptionUrl from %s p,%s s where p.hubUrl = s.hubUrl", publicTable, statusTable); else sqlSafef(query, sizeof(query), "select p.hubUrl,p.shortLabel,p.longLabel,p.dbList,s.errorMessage,s.id from %s p,%s s where p.hubUrl = s.hubUrl", publicTable, statusTable); struct sqlResult *sr = sqlGetResult(conn, query); char **row; @@ -571,38 +571,36 @@ } cartWebStart(cart, NULL, "%s", pageTitle); jsIncludeFile("jquery.js", NULL); jsIncludeFile("utils.js", NULL); jsIncludeFile("jquery-ui.js", NULL); webIncludeResourceFile("jquery-ui.css"); jsIncludeFile("ajax.js", NULL); jsIncludeFile("hgHubConnect.js", NULL); jsIncludeFile("jquery.cookie.js", NULL); printf("
\n"); printf( - "

Track data hubs are collections of tracks from outside of UCSC that " - "can be imported into the Genome Browser. To import a public hub check " - "the box in the list below. " - "After import the hub will show up as a group of tracks with its own blue " - "bar and label underneath the main browser graphic, and in the " - "configure page. For more information, see the " + "

Track data hubs are collections of external tracks that can be imported into the UCSC Genome Browser. " + "Hub tracks show up under the hub's own blue label bar on the main browser page, " + "as well as on the configure page. For more information, see the " "" - "User's Guide.

\n" + "User's Guide." + "To import a public hub click its \"Connect\" button below.

" "

NOTE: Because Track Hubs are created and maintained by external sources," " UCSC is not responsible for their content.

" ); printf("
\n"); getDbAndGenome(cart, &database, &organism, oldVars); char *survey = cfgOptionEnv("HGDB_HUB_SURVEY", "hubSurvey"); char *surveyLabel = cfgOptionEnv("HGDB_HUB_SURVEY_LABEL", "hubSurveyLabel"); if (survey && differentWord(survey, "off")) hPrintf("%s\n", survey, surveyLabel ? surveyLabel : "Take survey"); hPutc('\n'); // grab all the hubs that are listed in the cart @@ -613,32 +611,31 @@ // here's a little form for the add new hub button printf("
\n", "../cgi-bin/hgGateway"); cgiMakeHiddenVar("hubUrl", ""); cgiMakeHiddenVar( hgHubDoFirstDb, "on"); cgiMakeHiddenVar(hgHubConnectRemakeTrackHub, "on"); puts("
"); // this is the form for the connect hub button printf("
\n", "../cgi-bin/hgGateway"); cgiMakeHiddenVar("hubUrl", ""); cgiMakeHiddenVar("db", ""); cgiMakeHiddenVar(hgHubConnectRemakeTrackHub, "on"); puts("
"); // this is the form for the disconnect hub button -printf("
\n", "../cgi-bin/hgGateway"); -cgiMakeHiddenVar("db", "hg19"); +printf("\n", "../cgi-bin/hgHubConnect"); cgiMakeHiddenVar("hubId", ""); cgiMakeHiddenVar(hgHubDoDisconnect, "on"); cgiMakeHiddenVar(hgHubConnectRemakeTrackHub, "on"); puts("
"); // this is the form for the reset hub button printf("
\n", "../cgi-bin/hgHubConnect"); cgiMakeHiddenVar(hgHubCheckUrl, ""); puts("
"); // this is the form for the search hub button printf("
\n", "../cgi-bin/hgHubConnect"); cgiMakeHiddenVar(hgHubSearchTerms, ""); cgiMakeHiddenVar(hgHubDoSearch, "on"); puts("
");