Re: [greenstone-users] Default boolean search

From Michael Dewsnip
DateWed, 06 Apr 2005 13:59:31 +1200
Subject Re: [greenstone-users] Default boolean search
In-Reply-To (4252C122-5020009-ubcic-bc-ca)
Hi Jenn,

If you look at the page source for the search page you'll find something
like:

that contain
<select name="t">
<option value="1"selected>some
<option value="0">all
</select>
of the words</nobr>


This tells you that the "t" cgi argument controls whether some/all
searching is done. (Try adding "&t=0"/"&t=1" to the URL in the address
bar to see the selection change).

From this you know you want the default value for the "t" argument to
be "0", not "1". So, edit the gsdl/etc/main.cfg file, and right at the
end add:

cgiarg shortname=t argdefault=0

and "all" searching will now be the default.

Regards,

Michael

Jenn Cole wrote:

>
>
> ------------------------------------------------------------------------
>
> Subject:
> Default boolean search
> From:
> Jenn Cole <library@ubcic.bc.ca>
> Date:
> Thu, 31 Mar 2005 10:20:32 -0800
> To:
> greenstone-users@list.scms.waikato.ac.nz
>
> To:
> greenstone-users@list.scms.waikato.ac.nz
>
> Message-ID:
> <424C3F70.9020309@ubcic.bc.ca>
> Reply-To:
> library@ubcic.bc.ca
> Organization:
> Union of BC Indian Chiefs
> User-Agent:
> Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910
> X-Accept-Language:
> en-us, en
> MIME-Version:
> 1.0
> Content-Type:
> text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding:
> 7bit
>
>
> Hi,
>
> How can I reverse the order of options to search from some/all to
> all/some. I want the all (boolean) search to be the default.
>
> Thanks,
> Jenn Cole
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>