From: Adam Lipson <adaml@jb...> - 2003-08-15 18:45:20
When a page comes up and asks if you wish to refine the search that is =
the wrapper.html right? How do you make that form go search the db you =
just search? it seems to default to the default "htdig" database. =
Either that or how do you add a field in all the results pages that lets =
you select the database to search? It is not immediately obvious.
According to Adam Lipson:
> When a page comes up and asks if you wish to refine the search that
> is the wrapper.html right? How do you make that form go search the db
> you just search? it seems to default to the default "htdig" database.
> Either that or how do you add a field in all the results pages that
> lets you select the database to search? It is not immediately obvious.
The database is selected indirectly through the "config" input parameter,
where each config file will select its own set of database files. The
config input parameter is inherited by subsequent queries launched from
wrapper.html, nomatch.html, etc., because they contain an input tag like
the one below in their search forms...
<input type="hidden" name="config" value="$&(CONFIG)">
If your wrapper doesn't have that tag, or sets the value to something
hardcoded, it's because it was customized that way, and is not the way
it was when originally installed.
If you want a pull-down list of config files to choose from in the follow-up
search forms, but still want the current config file to be the default,
then you should set htsearch up to build the select list dynamically
build_select_lists: CONFIG_LIST config config_names 2 1 2 "" ""
config_names: scrc "SCRC Pages" physiology "Physiology Pages" \
wcsn "Winnipeg Chapter SFN Pages"
... and then in your follow-up search forms in all template files,
instead of a hidden input tag for "config", use...
Search Database: $(CONFIG_LIST)
Gilles R. Detillieux E-mail: <grdetil@...>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada)