e97696bf0ffbe83d71bf11befb14a46b9134b245 hiram Thu Feb 6 11:19:25 2025 -0800 allow /gbdb/genark/ to serve up the GenArk hubs instead of hgdownload refs #34706 diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js index 5e358d76782..8bb7730e444 100644 --- src/hg/js/hgGateway.js +++ src/hg/js/hgGateway.js @@ -329,31 +329,31 @@ }); text.onclick = function() {hgGateway.onClickHubName(hub.hubUrl, hub.taxId, hub.defaultDb, hub.name);}; svg.appendChild(text); } function drawHubs(svg, hubList, yIn) { // Add a label for each hub in hubList, with a separator line below and // "Hub Genomes" link instead of a tree. var y = yIn; var hub, i, textX, textY, lineX1, lineY, lineX2; var countNonCurated = 0; if (hubList && hubList.length) { for (i = 0; i < hubList.length; i++) { hub = hubList[i]; // is this a curated assembly hub? If so, don't list it - if (!hub.hubUrl.startsWith("/gbdb")) { + if (!(hub.hubUrl.startsWith("/gbdb") && ! hub.hubUrl.startsWith("/gbdb/genark"))) { addHubLabel(svg, hub, y); y += cfg.labelLineHeight; countNonCurated++; } } if (countNonCurated) { textX = cfg.labelRightX + cfg.speciesLineOffsetX; textY = (yIn + y - cfg.labelLineHeight) / 2; addTrackHubsLink(svg, textX, textY); lineX1 = cfg.hubLineOffset; lineY = y - cfg.halfTextHeight; lineX2 = cfg.containerWidth - cfg.speciesLineOffsetX; addLine(svg, lineX1, lineY, lineX2, lineY); y += cfg.labelLineHeight; }