From: Adam Lipson <adaml@jb...> - 2003-08-15 20:31:58
Ah thanks, that makes more sence than the faq. saw that before just was =
not quite enough to get me where I wanted to go. I will work from =
From: Gilles Detillieux [mailto:grdetil@...]
Sent: Friday, August 15, 2003 3:48 PM
To: Adam Lipson
Subject: Re: [htdig] refining search page
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 =
The database is selected indirectly through the "config" input =
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=3D"hidden" name=3D"config" value=3D"$&(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 =
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)