4886584b86a25443a2bd4b5d2816001775f9cab5
braney
Fri Sep 16 17:04:22 2011 -0700
don't show myHubs that don't support the current assembly #5253
diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c
index 9da4f97..0a7e78f 100644
--- src/hg/hgHubConnect/hgHubConnect.c
+++ src/hg/hgHubConnect/hgHubConnect.c
@@ -64,62 +64,62 @@
"
"
" "
""
"
"
" ");
// count up the number of unlisted hubs we currently have
int count = 0;
struct hubConnectStatus *hub, *hubList = hubConnectStatusListFromCartAll(cart);
for(hub = hubList; hub; hub = hub->next)
{
- if (isHubUnlisted(hub))
+ if (isHubUnlisted(hub) && hubHasDatabase(hub, database) )
count++;
}
if (count == 0)
{
// nothing to see here
printf(
"
No Track Hubs for this genome assembly
"
"");
printf("");
return;
}
// time to output the big table. First the header
printf(
"
"
"
Display
"
"
Hub Name
"
"
Description
"
"
URL
"
"
Disconnect
"
"
\n");
// start first row
printf("
");
count = 0;
for(hub = hubList; hub; hub = hub->next)
{
/* if the hub is public, then don't list it here */
- if (!isHubUnlisted(hub))
+ if (!(isHubUnlisted(hub) && hubHasDatabase(hub, database) ))
continue;
if (count)
webPrintLinkTableNewRow(); // ends last row and starts a new one
count++;
// if there's an error message, we don't let people select it
if (isEmpty(hub->errorMessage))
{
ourCellStart();
char hubName[32];
safef(hubName, sizeof(hubName), "%s%u", hgHubConnectHubVarPrefix, hub->id);
cartMakeCheckBox(cart, hubName, FALSE);
ourCellEnd();
}