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("<p>Enter hub URLs below to connect hubs. Hubs connected this way are not accessible to " "other users by default.</p><p>If you wish to share your hub you can create a " "<a href=\"/goldenPath/help/hgSessionHelp.html\" style='color:#121E9A' target=_blank>session link</a>. " "First, connect the hub and configure the tracks image as desired, then navigate to " "<a href=\"/cgi-bin/hgSession\" style='color:#121E9A' target=_blank>My Sessions</a> (<b>My Data</b> > <b>My Sessions</b>). " "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 <a href=\"/goldenPath/help/hgTrackHubHelp.html#Sharing\" " "style='color:#121E9A' target=_blank>build a link with the hub URL</a> to allow users to retain their browser " "configuration, connected hubs, and custom tracks.</p>" "</p>" "<p><a href=\"../contacts.html\" style='color:#121E9A'>Contact us</A> if you wish to submit a hub to the list of public hubs.</p>\n"