[greenstone-users] cgiargq

From Katherine Don
DateWed Sep 2 13:40:16 2009
Subject [greenstone-users] cgiargq
In-Reply-To (4A8781BA-1060708-cs-waikato-ac-nz)
Hi Alex

When you added _pagescriptextra_ to your extra.dm, did you keep the
original contents of the one in query.dm?
query.dm page defines its own _pagescriptextra_ which is needed for the
page. So you need to copy that one, then add your own functions to it.
For example:

package query

_pagescriptextra_ {_If_("_cgiargqt_" eq "1", _formpagescriptextra_,
_selectpagescriptextra_)
_If_("_cgiarghd_" ne "0",_historypagescriptextra_)
function kath() \{
\}

}

I just tried with this. I get my kath function added into the page,
along with all the necessary functions for searching.

I am assuming that it wasn't working because you didn't keep the
original contents, and I will close the ticket. If you think there is
still a bug, even when you have pagescriptextra like the above, then
please let me know.

Regards,
Katherine

Katherine Don wrote:
> Hi Alex
>
> Thanks for reporting this. I have added it as a ticket for the 2.83
> release. http://trac.greenstone.org/ticket/611
>
> Regards,
> Katherine
>
> PG-PG-Kriwaczek, Alexander wrote:
>> Just to be clear, advanced search, with the Lucene indexer, (i.e.
>> with Boolean operators) works fine. It is fielded search that does
>> not work once you try to add _pagescriptextra_ functions to "package
>> query" in the extra.dm file.
>>
>> Alex.
>> ------------------------------------------------------------------------
>> *From:* PG-PG-Kriwaczek, Alexander
>> *Sent:* 11 August 2009 15:46
>> *To:* Katherine Don
>> *Cc:* greenstone-users@list.scms.waikato.ac.nz
>> *Subject:* Re: [greenstone-users] cgiargq
>>
>> Hi,
>>
>> I believe that there is another problem with using advanced search in
>> Windows, under Version 2.82.
>>
>> After you have added any "package query" _pagescriptextra_ functions
>> to the extra.dm file of your collection, advanced search refuses to
>> work, showing an error message in the browser's status bar. Switching
>> to simple search everything works as expected.
>>
>> Regards,
>>
>> Alex.
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>