Re: [greenstone-users] Custom query page

From Jonathan Tremblay
DateWed, 29 Jun 2005 15:55:20 -0500
Subject Re: [greenstone-users] Custom query page
Hi Katherine,

<input type=hidden> worked for input field, thanks.

However, it did not worked for <select> (that's why I was using display:none) so I removed then all! I got that information hard-coded into the getsearchargs() function.

My new search page is now working with Netscape.

Unfortunately I made a sad discovery: using Netscape 4 AND mgpp, it's impossible to search for accented characters. Did you know about that one? Is there any workaround?

To see the problem you can use any mgpp collection with Netscape 4, such as:
http://puka.cs.waikato.ac.nz/cgi-bin/library?a=p&p=about&c=cltext-e&ct=1&qt=1

And then try a query with an accented character (e.g. "montréal"). The word will get cut at the accented character (eg "montr") and the search form will be unusable until you edit the search arg into the web address or until you restart Netscape.

Thanks,

Jonathan Tremblay

----- Original Message -----
From: "Katherine Don" <kjdon@cs.waikato.ac.nz>
To: "Jonathan Tremblay" <jonathan@piccolo.net>
Subject: Re: [greenstone-users] Custom query page
Date: Tue, 28 Jun 2005 09:05:48 +1200

>
> Hi Jonathan
>
> I don't really understand your question. By changing _fieldqueryform_,
> haven't you already created a new form from scratch?
>
> If the search page will always be the same, then you can just hard code
> the form in the macro files (if its just for one collection, put it in
> extra.dm in the collection's macro directory).
> Why do you need to use display:none? can you not just use the following?
> <input type=hidden name="a" value="q">
>
> Perhaps you could send your current form, and describe what you want to
> do, and I might be able to help.
>
> Regards,
> Katherine
>
> Jonathan Tremblay wrote:
> > Hi,
> >
> >
> >
> > I have created a custom search page for my collection, which uses mgpp.
> >
> >
> >
> > To do it, I have changed _fieldqueryform_ with a static version, to
> > control the visibility of almost all drop-down menus.
> >
> >
> >
> > The resulting page is very simple, it looks like that:
> >
> >
> >
> > SEARCH
> >
> > Text [___________]
> >
> > Title [___________]
> >
> > in [English >]
> >
> > (Clear form) (Begin search)
> >
> >
> >
> > It works perfectly with Firefox and Internet Explorer. But it doesn’t
> > work with Netscape 4.
> >
> >
> >
> > Netscape doesn’t support the style="display:none" argument with form
> > element, and it generates some other errors which makes the page unusable.
> >
> >
> >
> > Is it possible to build a new form from scratch (with only the desired
> > elements) _and_ to control the way arguments are supplied to the server?
> > I can’t find how to do it…
> >
> >
> >
> > Thanks,
> >
> > Jonathan Tremblay
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > greenstone-users mailing list
> > greenstone-users@list.scms.waikato.ac.nz
> > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users