[Yazlist] Pazpar2 web service requests all work except for "record"

Sebastian Hammer quinn at indexdata.com
Mon Sep 29 18:56:46 CEST 2008


Christopher Morgan wrote:
> Sebastian,
>
> Ah, that did the trick! Is there a singe GET request that would return all
> of the full xml records at once?
> (If not, I could just loop through the recids).
>   
No, but if you play with the config file (pazpar2.cfg), you can make 
sure that all the information you'd ever want is in the brief record -- 
there'd be no need to use the 'record' command.

--Seb
> - Chris 
>
> -----Original Message-----
> From: yazlist-bounces at lists.indexdata.dk
> [mailto:yazlist-bounces at lists.indexdata.dk] On Behalf Of Sebastian Hammer
> Sent: Monday, September 29, 2008 11:40 AM
> To: Discussion on the YAZ Z39.50 toolkit
> Subject: Re: [Yazlist] Pazpar2 web service requests all work except for
> "record"
>
> Hi Chris,
>
> The record ID is actually the string found in the 'recid' field.
>
> --Sebastian
>
> Christopher Morgan wrote:
>   
>> The pazpar2 init, search, termlist, and show webservice requests all 
>> work
>>
>> fine in my pazpar2 test setup (I'm working with the jsdemo), but I 
>> can't
>>
>> get "record" to work. For example, after a search, I issued this show
>> command:
>>
>> /search.pz2?command=show&session=1624152321&start=0&num=10&sort=releva
>> nce&block=1
>>
>> and got the following back:
>>
>> <show>
>>
>> <status>OK</status>
>>
>> <activeclients>0</activeclients>
>>
>> <merged>18</merged>
>>
>> <total>66</total>
>>
>> <start>0</start>
>>
>> <num>10</num>
>>
>> -
>>
>> <hit>
>>
>> <md-author>Keskar, Ravindra</md-author>
>>
>> <md-date>2000</md-date>
>>
>> <md-title>Square pegs in round holes</md-title>
>>
>> <md-title-remainder>mathematics through origami</md-title-remainder>
>>
>> <md-title-responsibility>Ravindra Keskar</md-title-responsibility>
>>
>> <md-medium>book</md-medium>
>>
>> <location id="melvyl.cdlib.org:210/CDL90" name="University of 
>> California"/>
>>
>> <location id="catalog.library.duke.edu:9991/DUK01" name="Duke 
>> University"/>
>>
>> <count>2</count>
>>
>> -
>>
>> <recid>
>>
>> title square pegs in round holes author keskar ravindra medium book
>>
>> </recid>
>>
>> </hit>
>>
>> . . . etc. . .
>>
>> But if I request an individual record via:
>>
>> /search.pz2?session=1624152321&command=record&id=1
>> <http://bookgenius.org/pazpar2/search.pz2?session=1624152321&command=r
>> ecord&id=1>
>>
>> I get this error code:
>>
>> <error code="7" msg="Record missing">1</error>
>>
>> Can anyone tell me why I'm getting this error?
>>
>>
>> Thanks!
>>
>> - Chris Morgan
>>
>> ----------------------------------------------------------------------
>> --
>>
>> _______________________________________________
>> Yazlist mailing list
>> Yazlist at lists.indexdata.dk
>> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
>>   
>>     
>
> --
> Sebastian Hammer, Index Data
> quinn at indexdata.com
> www.indexdata.com
>
>
>
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
>
>
>   

-- 
Sebastian Hammer, Index Data
quinn at indexdata.com
www.indexdata.com




More information about the Yazlist mailing list