fccc494337013c07d32c506fec1ae07a5b93ff88
braney
  Sun Oct 23 17:00:03 2022 -0700
deal with curated assemblies in hgSearch

diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js
index 110ca03..e7f35c4 100644
--- src/hg/js/hgGateway.js
+++ src/hg/js/hgGateway.js
@@ -1127,40 +1127,30 @@
                 html += '<option ' + selected + 'value="' + option.value + '">' +
                         option.label + '</option>';
             }
             $('#selectAssembly').html(html);
         }
         if (uiState.genomeLabel) {
             if (uiState.hubUrl && uiState.genomeLabel.indexOf('Hub') < 0) {
                 assemblySelectLabel = uiState.genomeLabel + ' Hub Assembly';
             } else {
                 assemblySelectLabel = uiState.genomeLabel + ' Assembly';
             }
         }
         $('#selectAssemblyLabel').text(assemblySelectLabel);
     }
 
-    function trackHubSkipHubName(name) {
-        // Just like hg/lib/trackHub.c's...
-        var matches;
-        if (name && (matches = name.match(/^hub_[0-9]+_(.*)/)) !== null) {
-            return matches[1];
-        } else {
-            return name;
-        }
-    }
-
     function setAssemblyDescriptionTitle(db, genome) {
         $('#descriptionGenome').html(trackHubSkipHubName(genome));
         $('#descriptionDb').html(trackHubSkipHubName(db));
     }
 
     function tweakDescriptionPhotoWidth() {
         // Our description.html files assume a pretty wide display area, but now we're
         // squeezed to the right of the 'Select Species' section.  If there's a large
         // image, scale it down.  The enclosing table is usually sized to leave a lot
         // of space to the left of the image, so shrink that too.
         // This must be called *after* #descriptionText is updated with the new content.
         var width, scaleFactor, newWidth;
         var $table = $('#descriptionText table').first();
         var $img = $('#descriptionText table img').first();
         if ($img.length) {