a30c400ad09e9ae41fbbf7636deed814a86e1edd braney Thu Jul 28 17:34:22 2022 -0700 Build hub and genome stanzas for curated hubs from dbDb. Don't show curated assemblies as hubs on hgGateway or hgHubConnect. diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index 8bf62c5..88c323d 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -242,33 +242,36 @@ "hubText.value=$.trim(hubText.value);" "if(validateUrl($('#hubUrl').val())) { " " document.addHubForm.elements['hubUrl'].value=hubText.value;" " document.addHubForm.submit(); return true; } " "else { return false; }" ); // count up the number of unlisted hubs we currently have int unlistedHubCount = 0; struct hubConnectStatus *unlistedHubList = NULL; struct hubConnectStatus *hub, *nextHub; for(hub = hubList; hub; hub = nextHub) { nextHub = hub->next; + if (!startsWith("/gbdb", hub->hubUrl)) + { unlistedHubCount++; slAddHead(&unlistedHubList, hub); } + } hubList = NULL; // hubList no longer valid puts("

Enter hub URLs below to connect hubs. Hubs connected this way are not accessible to " "other users by default.

If you wish to share your hub you can create a " "session link. " "First, connect the hub and configure the tracks image as desired, then navigate to " "My Sessions (My Data > My Sessions). " "The resulting stable link can be added to publications and shared freely. You, as the author, " "also have the power to update the session contents freely. " "Alternatively, you may build a link with the hub URL to allow users to retain their browser " "configuration, connected hubs, and custom tracks.

" "

" "

Contact us if you wish to submit a hub to the list of public hubs.

\n"