754cf0e3c480484878009aa5ce6dd815f1126d0c
chmalee
  Fri Mar 6 15:02:34 2026 -0800
most public assembly hubs do not have blat/pcr servers available, so when a public hub has been selected from the 'recents' dropdown in the search bar on those cgis, submit their form so the backend can print a message to page telling the user we don't have blat/pcr availabel for those assemblies, refs #36535

diff --git src/hg/hgBlat/hgBlat.c src/hg/hgBlat/hgBlat.c
index fd83a10746a..0e3084fafc9 100644
--- src/hg/hgBlat/hgBlat.c
+++ src/hg/hgBlat/hgBlat.c
@@ -2093,31 +2093,33 @@
 printf("<TD ALIGN=CENTER>&nbsp;</TD>");
 printf("</TR>\n");
 
 printf("<TR>\n");
 printf("<TD class='searchCell' ALIGN=CENTER>\n");
 // hgBlat requires this <input> be created to go along with form submission, we
 // will change it when a genome is selected in the search bar
 printf("<input name='db' value='%s' type='hidden'></input>\n", db);
 jsIncludeAutoCompleteLibs();
 char *searchBarId = "genomeSearch";
 printGenomeSearchBar(searchBarId, "Search any species, genome or assembly name", NULL, TRUE, NULL, NULL);
 jsInlineF(
     "setupGenomeSearchBar({\n"
     "    inputId: '%s',\n"
     "    onSelect: function(item) {\n"
-    "        document.mainForm.db.value = item.genome;\n"
+    "        let db = dbFromRecentItem(item);\n"
+    "        document.mainForm.db.value = db;\n"
+    "        document.mainForm.submit();\n"
     "    }\n"
     "});\n"
     , searchBarId
 );
 printf("</TD>\n");
 printf("<TD id='genomeLabel' class='searchCell' ALIGN=CENTER>\n");
 char *dbLabel = getCurrentGenomeLabel(db);
 printf("%s\n", dbLabel);
 printf("</TD>\n");
 printf("<TD ALIGN=CENTER>\n");
 if (orgChange)
     type = cartOptionalString(cart, "type");
 cgiMakeDropList("type", typeList, ArraySize(typeList), type);
 printf("</TD>\n");
 printf("<TD ALIGN=CENTER>\n");