96fc33fbab1157d099263deacc579633a044f853
chmalee
Tue Feb 3 13:24:58 2026 -0800
Adding an info icon to the new species search bar indicating the various operators that can be applied to search words, refs Hiram email
diff --git src/hg/lib/web.c src/hg/lib/web.c
index 969cd5b5c5a..d80ba6ba4b9 100644
--- src/hg/lib/web.c
+++ src/hg/lib/web.c
@@ -944,30 +944,39 @@
* useable search bar with autocomplete */
{
printf("
\n"); // for styling purposes
if (isNotEmpty(labelText))
{
printf("", id, isNotEmpty(labelClassStr) ? labelClassStr : "genomeSearchLabelDefault", labelText);
}
printf("
\n");
printf("\n");
if (withSearchButton)
printf("", id);
+char *searchHelpText = "All genome searches are case-insensitive. Single-word searches default to prefix "
+"matching if an exact match is not found. "
+"
"
+"
Force inclusion: Use a + sign before +word to ensure it appears in result.
"
+"
Exclude words: Use a - sign before -word to exclude it from the search result.
"
+"
Wildcard search: Add an * (asterisk) at end of word* to search for all terms starting with that prefix.
"
+"
Phrase search: Enclose 'words in quotes' to search for the exact phrase.
"
+"
";
+printInfoIcon(searchHelpText);
printf("
\n"); // the search button is grouped with the input
printf("
\n");
}
static char *getDbForGenome(char *genome, struct cart *cart)
/*
Function to find the default database for the given Genome.
It looks in the cart first and then, if that database's Genome matches the
passed-in Genome, returns it. If the Genome does not match, it returns the default
database that does match that Genome.
param Genome - The Genome for which to find a database
param cart - The cart to use to first search for a suitable database name
return - The database matching this Genome type
*/