[Yazlist] SimpleServer Pazpar2 SRU parameters

Mike Taylor mike at indexdata.com
Wed Feb 18 09:10:39 UTC 2015


It should all be in the fine manual:
http://search.cpan.org/~mirk/Net-Z3950-SimpleServer/SimpleServer.pm#Sort_handler

-- Mike.

On 18 February 2015 at 07:14, biligsaikhan at gmail.com
<biligsaikhan at gmail.com> wrote:
> Thank you Mike,
>
> I can get startRecord and maximumRecords from Prsent_handler.
>
> How to I obtain sort options, sort fields, and perPage?
>
>
> On Tue, Feb 17, 2015 at 7:09 PM, Mike Taylor <mike at indexdata.com> wrote:
>> SImpleServer is a higher level API than a network protocol such as SRU
>> or Z39.50. It implements both, and maps the relevant parameters into a
>> unified form that is described in the documentation:
>> http://search.cpan.org/~mirk/Net-Z3950-SimpleServer/SimpleServer.pm
>>
>> For example, the Present handler, described at
>> http://search.cpan.org/~mirk/Net-Z3950-SimpleServer/SimpleServer.pm#Present_handler
>> passes in parameters called START and NUMBER that correspond to the
>> SRU parameters you mentioned.
>>
>> -- Mike.
>>
>>
>>
>> On 17 February 2015 at 06:58, biligsaikhan at gmail.com
>> <biligsaikhan at gmail.com> wrote:
>>> Hi lists,
>>>
>>> How do I get  PazPar2 parameters such as num, startRecord, perPage,
>>> maximumRecords in a SimpleServer gateway?
>>>
>>> I've tried $this->{startRecord}; $this->{maximumRecords}; with no success.
>>> Somehow my $rpn = $this->{RPN}; doesn't contain the parameters that I need.
>>>
>>> I can get CQL queries from PazPar2 using my $cql = $this->{CQL};
>>>
>>> Is it because my PazPar2 target set as SRU?
>>>
>>> Your advices are appreciated.
>>>
>>> Best regards,
>>>
>>> _______________________________________________
>>> Yazlist mailing list
>>> Yazlist at lists.indexdata.dk
>>> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
>>>
>



More information about the Yazlist mailing list