[greenstone-users] cgiargq

From Katherine Don
DateThu Sep 3 07:27:03 2009
Subject [greenstone-users] cgiargq
In-Reply-To (C0065BA84E23FC49A7DF8B98C81A080C011562DDC73B-NSQ165EX-enterprise-internal-city-ac-uk)
Hi Alex

Yes, it is a bit confusing. From looking at style.dm, we have
, so I think I might add
or some other macro, so that extra.dm can
just have the collection specific stuff in it.

Cheers,
Katherine

Kriwaczek, Alexander wrote:
> 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
>>
>>