[greenstone-users] cgiargq

From Kriwaczek, Alexander
DateWed Sep 2 23:03:07 2009
Subject [greenstone-users] cgiargq
In-Reply-To (4A9DCCF5-5060004-cs-waikato-ac-nz)
Hi Katherine,

Just to confirm that once the functions from query.dm are included within the macro in the package query section of the extra.dm file, things work ok again with fielded search.

Thanks for clarifying this for me. I had been under the mistaken impression that any functions included in the macros in the extra.dm file simply added to whatever functions were already defined in the main macro files. I now realise that one has to be much more careful when defining one's own macros in the extra.dm file, and have a clearer mental model of what is going on.

Regards,

Alex.
________________________________________
From: Katherine Don [kjdon@cs.waikato.ac.nz]
Sent: 02 September 2009 02:40
To: Kriwaczek, Alexander
Cc: greenstone-users@list.scms.waikato.ac.nz
Subject: Re: [greenstone-users] cgiargq

Hi Alex

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

package query

{_formpagescriptextra_
_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 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" 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
>