[Yazlist] Pazpar2 settings files and user-defined settings

Jakub Skoczen jakub at indexdata.dk
Wed Aug 31 19:36:37 CEST 2011

On Wed, Aug 31, 2011 at 5:38 PM, Christensen, David A. (CHT)
<David.Christensen at gov.mb.ca> wrote:
> Hi all,
> I'm having trouble getting my head around this :-)
> If you have a pazpar2 settings file like this:
>        <settings target="123.456.789.012:210">
>                <!-- This file introduces default settings for pazpar2 -->
>                <!-- mapping for unqualified search -->
>                <set name="pz:cclmap:term" value="u=1016 t=l,r s=al"/>
>                <!-- field-specific mappings -->
>                <set name="pz:cclmap:ti" value="u=4 s=al"/>
>                <set name="pz:cclmap:su" value="u=21 s=al"/>
>                <set name="pz:cclmap:isbn" value="u=7"/>
>                <set name="pz:cclmap:issn" value="u=8"/>
>                <set name="pz:cclmap:date" value="u=30 r=r"/>
>                <!-- Retrieval settings -->
>                <set name="pz:requestsyntax" value="marc21"/>
>                <set name="pz:elements" value="F"/>
>                <!-- Query encoding -->
>                <set name="pz:queryencoding" value="iso-8859-1"/>
>                <!-- Result normalization settings -->
>                <set name="pz:nativesyntax" value="iso2709"/>
>                <set name="pz:xslt" value="../etc/marc21.xsl"/>
>        </settings>
> ...you could (can you?) add another name/value - such as, for example:  <set name="libraryopacurl" value="http://opac.somelibrary.org/"/>
> How would you access this new name/value pair from the client (i.e. example_client.js)?  I've been poking at it using Firebug, but can't for the life of me see where it ends up....

You need to edit the service.xml and he normalization stylesheet. From
the manual:

This attribute allows you to make use of static database settings in
the processing of records. Three possible values are allowed. 'no' is
the default and doesn't do anything. 'postproc' copies the value of a
setting with the same name into the output of the normalization
stylesheet(s). 'parameter' makes the value of a setting with the same
name available as a parameter to the normalization stylesheet, so you
can further process the value inside of the stylesheet, or use the
value to decide how to deal with other data values.

> --
> David A. Christensen               Phone: (204) 726-6870
> Technology Consultant              Toll-free MB: 1-888-226-8014
> Manitoba Public Library Services   FAX: (204) 726-6868
> http://library.gov.mb.ca           Email: David.Christensen at gov.mb.ca
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist



More information about the Yazlist mailing list