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/hgPcr/hgPcr.c src/hg/hgPcr/hgPcr.c
index adb9fc94804..6cbcd272147 100644
--- src/hg/hgPcr/hgPcr.c
+++ src/hg/hgPcr/hgPcr.c
@@ -412,31 +412,32 @@
 
 printf("<FORM ACTION=\"../cgi-bin/hgPcr\" METHOD=\"GET\" NAME=\"mainForm\">\n");
 cartSaveSession(cart);
 
 printf("<TABLE BORDER=0 WIDTH=\"96%%\" COLS=7><TR>\n");
 
 printf("<TD class='searchCell'><center>\n");
 char *searchBarId = "genomeSearch";
 printGenomeSearchBar(searchBarId, "Search any species, genome or assembly name", NULL, TRUE, "Genome:", NULL);
 jsInlineF(
     "setupGenomeSearchBar({\n"
     "    inputId: '%s',\n"
     "    onSelect: function(item) {\n"
     "        " ORGFORM_KEEP_PARAMS "\n"
     "        document.orgForm.org.value = '0';\n"
-    "        document.orgForm.db.value = item.genome;\n"
+    "        let db = dbFromRecentItem(item);\n"
+    "        document.orgForm.db.value = db;\n"
     "        " ORGFORM_RESET_TARGET "\n"
     "        " ORGFORM_SUBMIT "\n"
     "    }\n"
     "});\n"
     , searchBarId
 );
 
 printf("</center></td><TD><CENTER>\n");
 printf("Assembly:<BR><span id='genomeLabel'>%s</span>", getCurrentGenomeLabel(db));
 printf("</CENTER></TD>\n");
 
 if (gotTargetDb)
     {
     struct targetPcrServer *targetServerList = getTargetServerList(db, NULL);
     if (targetServerList != NULL)