Re: [greenstone-users] Query string format

From Chaitra Rao
DateFri, 27 May 2005 11:58:24 +0530 (IST)
Subject Re: [greenstone-users] Query string format
In-Reply-To (4296ADE6-1000900-cs-waikato-ac-nz)
Hi Katherine,
Thank you for the response. I am able to get to the search page using
the following URL format:
http://web_address/library?a=q&c=coll_name&ct=l&qt=0&q=searchterm.

Now, I want to be able to send a form request to this page from another
page. This doesn't work. I have written a javascript that does something
like:

script{
document.form.action=http://web_address/library?a=q&c=coll_name&ct=l&qt=0&q=searchterm;
}

When I do this the home page opens, instead ofthe search page. Can you
tell me if something's missing? I couldn't really follow this part of your
e-mail: (fqf and g)
> also qt=0/1 (plain/form) fqf (indexfield) g (level)

Regards,
Chaitra

On Fri, 27 May 2005, Katherine Don wrote:

> Hi Chaitra
>
> Are you trying to link to the search page from another page?
> It sounds like your cgi args are not correct.
> The basic args for searching are:
> mg
> a=q&c=collname&q=searchterm
> you probably also need h (index)
> mgpp
> a=q&c=collname&ct=1&q=searchterm
> also qt=0/1 (plain/form) fqf (indexfield) g (level)
>
> other common args:
> t=0/1 some/all
> s=0/1 stemming
> k=0/1 casefolding
>
> I hope this helps,
> Katherine
>
> Chaitra Rao wrote:
> > Hi,
> > I was trying to pass parameters to the search page of a greenstone
> > collection page. I copied the URL of the search page of the collection and
> > then used q=parameter to open the page. I am using this link in the form
> > action tag of the HTML page that calls this search page. But, the home
> > page opens up each time and the entire search string is modified. Please
> > help!
> >
> >
> > Regards,
> > Chaitra
> >
> >
> > _______________________________________________
> > greenstone-users mailing list
> > greenstone-users@list.scms.waikato.ac.nz
> > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
> >
>