Updated ICU config and adjusted description a little.
[pazpar2-moved-to-github.git] / doc / pazpar2_conf.xml
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
3  "http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd"
4 [
5      <!ENTITY % local SYSTEM "local.ent">
6      %local;
7      <!ENTITY % entities SYSTEM "entities.ent">
8      %entities;
9      <!ENTITY % idcommon SYSTEM "common/common.ent">
10      %idcommon;
11 ]>
12 <refentry id="pazpar2_conf">
13  <refentryinfo>
14   <productname>Pazpar2</productname>
15   <productnumber>&version;</productnumber>
16  </refentryinfo>
17  <refmeta>
18   <refentrytitle>Pazpar2 conf</refentrytitle>
19   <manvolnum>5</manvolnum>
20  </refmeta>
21  
22  <refnamediv>
23   <refname>pazpar2_conf</refname>
24   <refpurpose>Pazpar2 Configuration</refpurpose>
25  </refnamediv>
26  
27  <refsynopsisdiv>
28   <cmdsynopsis>
29    <command>pazpar2.conf</command>
30   </cmdsynopsis>
31  </refsynopsisdiv>
32  
33  <refsect1><title>DESCRIPTION</title>
34   <para>
35    The Pazpar2 configuration file, together with any referenced XSLT files,
36    govern Pazpar2's behavior as a client, and control the normalization and
37    extraction of data elements from incoming result records, for the
38    purposes of merging, sorting, facet analysis, and display.
39   </para>
40   
41   <para>
42    The file is specified using the option -f on the Pazpar2 command line.
43    There is not presently a way to reload the configuration file without
44    restarting Pazpar2, although this will most likely be added some time
45    in the future.
46   </para>
47  </refsect1>
48  
49  <refsect1><title>FORMAT</title>
50   <para>
51    The configuration file is XML-structured. It must be valid XML. All
52    elements specific to Pazpar2 should belong to the namespace
53    <literal>http://www.indexdata.com/pazpar2/1.0</literal> 
54    (this is assumed in the
55    following examples). The root element is named <literal>pazpar2</literal>.
56    Under the  root element are a number of elements which group categories of
57    information. The categories are described below.
58   </para>
59   
60   <refsect2 id="config-server"><title>server</title>
61    <para>
62     This section governs overall behavior of the client. The data
63     elements are described below.
64    </para>
65    <variablelist> <!-- level 1 -->
66     <varlistentry>
67      <term>listen</term>
68      <listitem>
69       <para>
70        Configures the webservice -- this controls how you can connect
71        to Pazpar2 from your browser or server-side code. The
72        attributes 'host' and 'port' control the binding of the
73        server. The 'host' attribute can be used to bind the server to
74        a secondary IP address of your system, enabling you to run
75        Pazpar2 on port 80 alongside a conventional web server. You
76        can override this setting on the command line using the option -h.
77       </para>
78      </listitem>
79     </varlistentry>
80     
81     <varlistentry>
82      <term>proxy</term>
83      <listitem>
84       <para>
85        If this item is given, Pazpar2 will forward all incoming HTTP
86        requests that do not contain the filename 'search.pz2' to the
87        host and port specified using the 'host' and 'port'
88        attributes. The 'myurl' attribute is required, and should provide
89        the base URL of the server. Generally, the HTTP URL for the host
90        specified in the 'listen' parameter. This functionality is
91        crucial if you wish to use
92        Pazpar2 in conjunction with browser-based code (JS, Flash,
93        applets, etc.) which operates in a security sandbox. Such code
94        can only connect to the same server from which the enclosing
95        HTML page originated. Pazpar2s proxy functionality enables you
96        to host all of the main pages (plus images, CSS, etc) of your
97        application on a conventional webserver, while efficiently
98        processing webservice requests for metasearch status, results,
99        etc.
100       </para>
101      </listitem>
102     </varlistentry>
103     
104     <varlistentry>
105      <term>relevance</term>
106      <listitem>
107       <para>
108        Specifies ICU tokenization and transformation rules
109        for tokens that are used in Pazpar2's relevance ranking.  The 'id'
110        attribute is currently not used, and the 'locale'
111        attribute must be set to one of the locale strings
112        defined in ICU. The child elements listed below can be
113        in any order, except the 'index' element which logically
114        belongs to the end of the list. The stated tokenization,
115        transformation and charmapping instructions are performed
116        in order from top to bottom. 
117       </para>
118       <variablelist> <!-- Level 2 -->
119        <varlistentry><term>casemap</term>
120         <listitem>
121          <para>
122           The attribute 'rule' defines the direction of the
123           per-character casemapping, allowed values are "l"
124           (lower), "u" (upper), "t" (title).  
125          </para>
126         </listitem>
127        </varlistentry>
128        <varlistentry><term>transform</term>
129         <listitem>
130          <para>
131           Normalization and transformation of tokens follows
132           the rules defined in the 'rule' attribute. For
133           possible values we refer to the extensive ICU
134           documentation found at the 
135           <ulink url="&url.icu.transform;">ICU
136            transformation</ulink> home page. Set filtering
137           principles are explained at the 
138           <ulink url="&url.icu.unicode.set;">ICU set and
139            filtering</ulink> page.
140          </para>
141         </listitem>
142        </varlistentry>
143        <varlistentry><term>tokenize</term>
144         <listitem>
145          <para>
146           Tokenization is the only rule in the ICU chain
147           which splits one token into multiple tokens. The
148           'rule' attribute may have the following values:
149           "s" (sentence), "l" (line-break), "w" (word), and
150           "c" (character), the later probably not being
151           very useful in a pruning Pazpar2 installation. 
152          </para>
153         </listitem>
154        </varlistentry>
155       </variablelist>
156      </listitem>
157     </varlistentry>
158
159     <varlistentry>
160      <term>sort</term>
161      <listitem>
162       <para>
163        Specifies ICU tokenization and transformation rules
164        for tokens that are used in Pazpar2's sorting. The contents
165        is similar to that of <literal>relevance</literal>.
166       </para>
167      </listitem>
168     </varlistentry>
169     
170     <varlistentry>
171      <term>mergekey</term>
172      <listitem>
173       <para>
174        Specifies ICU tokenization and transformation rules
175        for tokens that are used in Pazpar2's mergekey. The contents
176        is similar to that of <literal>relevance</literal>.
177       </para>
178      </listitem>
179     </varlistentry>
180     
181     <varlistentry>
182      <term>service</term>
183      <listitem>
184       <para>
185        This nested element controls the behavior of Pazpar2 with
186        respect to your data model. In Pazpar2, incoming records are
187        normalized, using XSLT, into an internal representation.
188        The 'service' section controls the further processing and
189        extraction of data from the internal representation, primarily
190        through the 'metadata' sub-element.
191       </para>
192       
193       <variablelist> <!-- Level 2 -->
194        <varlistentry><term>metadata</term>
195         <listitem>
196          <para>
197           One of these elements is required for every data element in
198           the internal representation of the record (see
199           <xref linkend="data_model"/>. It governs
200           subsequent processing as pertains to sorting, relevance
201           ranking, merging, and display of data elements. It supports
202           the following attributes:
203          </para>
204          
205          <variablelist> <!-- level 3 -->
206           <varlistentry><term>name</term>
207            <listitem>
208             <para>
209              This is the name of the data element. It is matched
210              against the 'type' attribute of the
211              'metadata' element 
212              in the normalized record. A warning is produced if
213              metadata elements with an unknown name are
214              found in the 
215              normalized record. This name is also used to
216              represent 
217              data elements in the records returned by the
218              webservice API, and to name sort lists and browse
219              facets.
220             </para>
221            </listitem>
222           </varlistentry>
223           
224           <varlistentry><term>type</term>
225            <listitem>
226             <para>
227              The type of data element. This value governs any
228              normalization or special processing that might take
229              place on an element. Possible values are 'generic'
230              (basic string), 'year' (a range is computed if
231              multiple years are found in the record). Note: This
232              list is likely to increase in the future.
233             </para>
234            </listitem>
235           </varlistentry>
236           
237           <varlistentry><term>brief</term>
238            <listitem>
239             <para>
240              If this is set to 'yes', then the data element is
241              includes in brief records in the webservice API. Note
242              that this only makes sense for metadata elements that
243              are merged (see below). The default value is 'no'.
244             </para>
245            </listitem>
246           </varlistentry>
247           
248           <varlistentry><term>sortkey</term>
249            <listitem>
250             <para>
251              Specifies that this data element is to be used for
252              sorting. The possible values are 'numeric' (numeric
253              value), 'skiparticle' (string; skip common, leading
254              articles), and 'no' (no sorting). The default value is
255              'no'.
256             </para>
257            </listitem>
258           </varlistentry>
259           
260           <varlistentry><term>rank</term>
261            <listitem>
262             <para>
263              Specifies that this element is to be used to
264              help rank 
265              records against the user's query (when ranking is
266              requested). The value is an integer, used as a
267              multiplier against the basic TF*IDF score. A value of
268              1 is the base, higher values give additional
269              weight to 
270              elements of this type. The default is '0', which
271              excludes this element from the rank calculation.
272             </para>
273            </listitem>
274           </varlistentry>
275           
276           <varlistentry><term>termlist</term>
277            <listitem>
278             <para>
279              Specifies that this element is to be used as a
280              termlist, or browse facet. Values are tabulated from
281              incoming records, and a highscore of values (with
282              their associated frequency) is made available to the
283              client through the webservice API. 
284              The possible values
285              are 'yes' and 'no' (default).
286             </para>
287            </listitem>
288           </varlistentry>
289           
290           <varlistentry><term>merge</term>
291            <listitem>
292             <para>
293              This governs whether, and how elements are extracted
294              from individual records and merged into cluster
295              records. The possible values are: 'unique' (include
296              all unique elements), 'longest' (include only the
297              longest element (strlen), 'range' (calculate a range
298              of values across all matching records), 'all' (include
299              all elements), or 'no' (don't merge; this is the
300                           default);
301             </para>
302            </listitem>
303           </varlistentry>
304
305           <varlistentry><term>setting</term>
306            <listitem>
307             <para>
308               This attribute allows you to make use of static database
309               settings in the processing of records. Three possible values
310               are allowed. 'no' is the default and doesn't do anything.
311               'postproc' copies the value of a setting with the same name
312               into the output of the normalization stylesheet(s). 'parameter'
313               makes the value of a setting with the same name available 
314               as a parameter to the normalization stylesheet, so you
315               can further process the value inside of the stylesheet, or use
316               the value to decide how to deal with other data values.
317             </para>
318             <para>
319             </para>
320               The purpose of using settings in this way can either be to
321               control the behavior of normalization stylesheet in a database-
322               dependent way, or to easily make database-dependent values
323               available to display-logic in your user interface, without having
324               to implement complicated interactions between the user interface
325               and your configuration system.
326            </listitem>
327           </varlistentry>
328          </variablelist> <!-- attributes to metadata -->
329          
330         </listitem>
331        </varlistentry>
332       </variablelist>     <!-- Data elements in service directive -->
333      </listitem>
334     </varlistentry>
335    </variablelist>           <!-- Data elements in server directive -->
336   </refsect2>
337   
338  </refsect1>
339  
340  <refsect1><title>EXAMPLE</title>
341   <para>Below is a working example configuration:
342   <screen><![CDATA[
343 <?xml version="1.0" encoding="UTF-8"?>
344 <pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
345
346 <server>
347   <listen port="9004"/>
348   <proxy host="us1.indexdata.com" myurl="us1.indexdata.com"/>
349
350   <!-- optional ICU ranking configuration example -->
351   <!--
352   <icu_chain id="el:word" locale="el">
353     <normalize rule="[:Control:] Any-Remove"/>
354     <tokenize rule="l"/>
355     <normalize rule="[[:WhiteSpace:][:Punctuation:]] Remove"/>
356     <casemap rule="l"/>
357     <index/>
358   </icu_chain>
359   -->
360
361   <service>
362     <metadata name="title" brief="yes" sortkey="skiparticle" merge="longest" rank="6"/>
363     <metadata name="isbn" merge="unique"/>
364     <metadata name="date" brief="yes" sortkey="numeric" type="year" merge="range"
365             termlist="yes"/>
366     <metadata name="author" brief="yes" termlist="yes" merge="longest" rank="2"/>
367     <metadata name="subject" merge="unique" termlist="yes" rank="3"/>
368     <metadata name="url" merge="unique"/>
369   </service>
370 </server>
371
372 </pazpar2>
373 ]]></screen>
374   </para>
375  </refsect1> 
376  
377  <refsect1 id="target_settings"><title>TARGET SETTINGS</title>
378   <para>
379    Pazpar2 features a cunning scheme by which you can associate various
380    kinds of attributes, or settings with search targets. This can be done
381    through XML files which are read at startup; each file can associate
382    one or more settings with one or more targets. The file format is generic
383    in nature, designed to support a wide range of application requirements. The
384    settings can be purely technical things, like, how to perform a title
385    search against a given target, or it can associate arbitrary name=value
386    pairs with groups of targets -- for instance, if you would like to
387    place all commercial full-text bases in one group for selection
388    purposes, or you would like to control what targets are accessible
389    to users by default. Per-database settings values can even be used
390    to drive sorting, facet/termlist generation, or end-user interface display
391    logic.
392   </para>
393   
394   <para>
395    During startup, Pazpar2 will recursively read a specified directory
396    (can be identified in the pazpar2.cfg file or on the command line), and
397    process any settings files found therein.
398   </para>
399   
400   <para>
401    Clients of the Pazpar2 webservice interface can selectively override
402    settings for individual targets within the scope of one session. This
403    can be used in conjunction with an external authentication system to
404    determine which resources are to be accessible to which users. Pazpar2
405    itself has no notion of end-users, and so can be used in conjunction
406    with any type of authentication system. Similarly, the authentication
407    tokens submitted to access-controlled search targets can similarly be
408    overridden, to allow use of Pazpar2 in a consortial or multi-library
409    environment, where different end-users may need to be represented to
410    some search targets in different ways. This, again, can be managed
411    using an external database or other lookup mechanism. Setting overrides
412    can be performed either using the 'init' or the 'settings' webservice
413    command.
414   </para>
415   
416   <para>
417    In fact, every setting that applies to a database (except pz:id, which
418    can only be used for filtering targets to use for a search) can be overridden
419    on a per-session basis. This allows the client to override specific CCL fields
420    for searching, etc., to meet the needs of a session or user.
421   </para>
422   
423   <para>
424    Finally, as an extreme case of this, the webservice client can
425    introduce entirely new targets, on the fly, as part of the init or
426    settings command. This is useful if you desire to manage information
427    about your search targets in a separate application such as a database.
428    You do not need any static settings file whatsoever to run Pazpar2 -- as
429    long as the webservice client is prepared to supply the necessary
430    information at the beginning of every session.
431   </para>
432   
433   <note>
434    <para>
435     The following discussion of practical issues related to session and settings
436     management are cast in terms of a user interface based on Ajax/Javascript
437     technology. It would apply equally well to many other kinds of browser-based logic.
438    </para>
439   </note>
440   
441   <para>
442    Typically, a Javascript client is not allowed to  directly alter the parameters
443    of a session. There are two reasons for this. One has to do with access
444    to information; typically, information about a user will be stored in a
445    system on the server side, or it will be accessible in some way from the server.
446    However, since the Javascript client cannot be entirely trusted (some hostile
447    agent might in fact 'pretend' to be a regular ws client), it is more robust
448    to control session settings from scripting that you run as part of your
449    webserver. Typically, this can be handled during the session initialization,
450    as follows:
451   </para>
452   
453   <para>
454    Step 1: The Javascript client loads, and asks the webserver for a new Pazpar2
455    session ID. This can be done using a Javascript call, for instance. Note that
456    it is possible to submit Ajax HTTPXmlRequest calls either to Pazpar2 or to the
457    webserver that Pazpar2 is proxying for. See (XXX Insert link to Pazpar2 protocol).
458     </para>
459   
460   <para>
461    Step 2: Code on the webserver authenticates the user, by database lookup,
462    LDAP access, NCIP, etc. Determines which resources the user has access to,
463    and any user-specific parameters that are to be applied during this session.
464   </para>
465   
466   <para>
467    Step 3: The webserver initializes a new Pazpar2 settings, and sets user-specific
468    parameters as necessary, using the init webservice command. A new session ID is
469    returned.
470   </para>
471   
472   <para>
473    Step 4: The webserver returns this session ID to the Javascript client, which then
474    uses the session ID to submit searches, show results, etc.
475   </para>
476   
477   <para>
478    Step 5: When the Javascript client ceases to use the session, Pazpar2 destroys
479    any session-specific information.
480   </para>
481
482   <refsect2><title>SETTINGS FILE FORMAT</title>
483    <para>
484     Each file contains a root element named &lt;settings&gt;. It may
485     contain one or more &lt;set&gt; elements. The settings and set
486     elements may contain the following attributes. Attributes in the set node
487     overrides those in the setting root element. Each set node must
488     specify (directly, or inherited from the parent node) at least a
489     target, name, and value.
490    </para>
491    
492    <variablelist> 
493     <varlistentry>
494      <term>target</term>
495      <listitem>
496       <para>
497        This specifies the search target to which this setting should be
498        applied. Targets are identified by their Z39.50 URL, generally
499        including the host, port, and database name, (e.g.
500        <literal>bagel.indexdata.com:210/marc</literal>).
501        Two wildcard forms are accepted:
502        * (asterisk) matches all known targets;
503        <literal>bagel.indexdata.com:210/*</literal> matches all
504        known databases on the given host.
505       </para>
506       <para>
507        A precedence system determines what happens if there are
508        overlapping values for the same setting name for the same
509        target. A setting for a specific target name overrides a
510        setting which specifies target using a wildcard. This makes it
511        easy to set defaults for all targets, and then override them
512        for specific targets or hosts. If there are
513        multiple overlapping settings with the same name and target
514        value, the 'precedence' attribute determines what happens.
515       </para>
516      </listitem>
517     </varlistentry>
518     <varlistentry>
519      <term>name</term>
520      <listitem>
521       <para>
522        The name of the setting. This can be anything you like.
523        However, Pazpar2 reserves a number of setting names for
524        specific purposes, all starting with 'pz:', and it is a good
525        idea to avoid that prefix if you make up your own setting
526        names. See below for a list of reserved variables.
527       </para>
528      </listitem>
529     </varlistentry>
530     <varlistentry>
531      <term>value</term>
532      <listitem>
533       <para>
534        The value of the setting. Generally, this can be anything you
535        want -- however, some of the reserved settings may expect
536        specific kinds of values.
537       </para>
538      </listitem>
539     </varlistentry>
540     <varlistentry>
541      <term>precedence</term>
542      <listitem>
543       <para>
544        This should be an integer. If not provided, the default value
545        is 0. If two (or more) settings have the same content for
546        target and name, the precedence value determines the outcome.
547        If both settings have the same precedence value, they are both
548        applied to the target(s). If one has a higher value, then the
549        value of that setting is applied, and the other one is ignored.
550       </para>
551      </listitem>
552     </varlistentry>
553    </variablelist>
554    
555    <para>
556     By setting defaults for target, name, or value in the root
557     settings node, you can use the settings files in many different
558     ways. For instance, you can use a single file to set defaults for
559     many different settings, like search fields, retrieval syntaxes,
560     etc. You can have one file per server, which groups settings for
561     that server or target. You could also have one file which associates
562     a number of targets with a given setting, for instance, to associate
563     many databases with a given category or class that makes sense
564     within your application.
565    </para>
566    
567    <para>
568     The following examples illustrate uses of the settings system to
569     associate settings with targets to meet different requirements.
570    </para>
571    
572    <para>
573     The example below associates a set of default values that can be
574     used across many targets. Note the wildcard for targets.
575     This associates the given settings with all targets for which no
576     other information is provided.
577     <screen><![CDATA[
578 <settings target="*">
579
580   <!-- This file introduces default settings for pazpar2 -->
581
582   <!-- mapping for unqualified search -->
583   <set name="pz:cclmap:term" value="u=1016 t=l,r s=al"/>
584
585   <!-- field-specific mappings -->
586   <set name="pz:cclmap:ti" value="u=4 s=al"/>
587   <set name="pz:cclmap:su" value="u=21 s=al"/>
588   <set name="pz:cclmap:isbn" value="u=7"/>
589   <set name="pz:cclmap:issn" value="u=8"/>
590   <set name="pz:cclmap:date" value="u=30 r=r"/>
591
592   <!-- Retrieval settings -->
593
594   <set name="pz:requestsyntax" value="marc21"/>
595   <set name="pz:elements" value="F"/>
596
597   <!-- Query encoding -->
598   <set name="pz:queryencoding" value="iso-8859-1"/>
599
600   <!-- Result normalization settings -->
601
602   <set name="pz:nativesyntax" value="iso2709"/>
603   <set name="pz:xslt" value="../etc/marc21.xsl"/>
604
605 </settings>
606
607         ]]></screen>
608    </para>
609    
610    <para>
611     The next example shows certain settings overridden for one target,
612     one which returns XML records containing DublinCore elements, and
613     which furthermore requires a username/password.
614     <screen><![CDATA[
615 <settings target="funkytarget.com:210/db1">
616   <set name="pz:requestsyntax" value="xml"/>
617   <set name="pz:nativesyntax" value="xml"/>
618   <set name="pz:xslt" value="../etc/dublincore.xsl"/>
619
620   <set name="pz:authentication" value="myuser/password"/>
621 </settings>
622         ]]></screen>
623    </para>
624    
625    <para>
626     The following example associates a specific name/value combination
627     with a number of targets. The targets below are access-restricted,
628     and can only be used by users with special credentials.
629     <screen><![CDATA[
630 <settings name="pz:allow" value="0">
631   <set target="funkytarget.com:210/*"/>
632   <set target="commercial.com:2100/expensiveDb"/>
633 </settings>
634         ]]></screen>
635    </para>
636    
637   </refsect2>
638   
639   <refsect2><title>RESERVED SETTING NAMES</title>
640    <para>
641     The following setting names are reserved by Pazpar2 to control the
642     behavior of the client function.
643    </para>
644    
645    <variablelist>
646     <varlistentry>
647      <term>pz:cclmap:xxx</term>
648      <listitem>
649       <para>
650        This establishes a CCL field definition or other setting, for
651        the purpose of mapping end-user queries. XXX is the field or
652        setting name, and the value of the setting provides parameters
653        (e.g. parameters to send to the server, etc.). Please consult
654        the YAZ manual for a full overview of the many capabilities of
655        the powerful and flexible CCL parser.
656       </para>
657       <para>
658        Note that it is easy to establish a set of default parameters,
659        and then override them individually for a given target.
660       </para>
661      </listitem>
662     </varlistentry>
663     <varlistentry>
664      <term>pz:requestsyntax</term>
665      <listitem>
666       <para>
667        This specifies the record syntax to use when requesting
668        records from a given server. The value can be a symbolic name like
669        marc21 or xml, or it can be a Z39.50-style dot-separated OID.
670       </para>
671      </listitem>
672     </varlistentry>
673     <varlistentry>
674      <term>pz:elements</term>
675      <listitem>
676       <para>
677        The element set name to be used when retrieving records from a
678        server.
679       </para>
680      </listitem>
681     </varlistentry>
682     <varlistentry>
683      <term>pz:piggyback</term>
684      <listitem>
685       <para>
686        Piggybacking enables the server to retrieve records from the
687        server as part of the search response in Z39.50. Almost all
688        servers support this (or fail it gracefully), but a few
689        servers will produce undesirable results.
690        Set to '1' to enable piggybacking, '0' to disable it. Default
691        is 1 (piggybacking enabled).
692       </para>
693      </listitem>
694     </varlistentry>
695     <varlistentry>
696      <term>pz:nativesyntax</term>
697      <listitem>
698       <para>
699        The representation (syntax) of the retrieval records. Currently
700        recognized values are iso2709 and xml.
701       </para>
702       <para>
703        For iso2709, can also specify a native character set, e.g. "iso2709;latin-1".
704        If no character set is provided, MARC-8 is assumed.
705       </para>
706       <para>
707         If pz:nativesyntax is not specified, pazpar2 will attempt to determine
708         the value based on the response from the server.
709       </para>
710      </listitem>
711     </varlistentry>
712
713     <varlistentry>
714      <term>pz:queryencoding</term>
715      <listitem>
716       <para>
717         The encoding of the search terms that a target accepts. Most
718         targets do not honor UTF-8 in which case this needs to be specified.
719         Each term in a query will be converted if this setting is given.
720       </para>
721      </listitem>
722     </varlistentry>
723
724     <varlistentry>
725      <term>pz:xslt</term>
726      <listitem>
727       <para>
728        Provides the path of an XSLT stylesheet which will be used to
729        map incoming records to the internal representation.
730       </para>
731      </listitem>
732     </varlistentry>
733     <varlistentry>
734      <term>pz:authentication</term>
735      <listitem>
736       <para>
737        Sets an authentication string for a given server. See the section on
738        authorization and authentication for discussion.
739       </para>
740      </listitem>
741     </varlistentry>
742     <varlistentry>
743      <term>pz:allow</term>
744      <listitem>
745       <para>
746        Allows or denies access to the resources it is applied to. Possible
747        values are '0' and '1'. The default is '1' (allow access to this resource).
748        See the manual section on authorization and authentication for discussion
749        about how to use this setting.
750       </para>
751      </listitem>
752     </varlistentry>
753     <varlistentry>
754      <term>pz:maxrecs</term>
755      <listitem>
756       <para>
757        Controls the maximum number of records to be retrieved from a
758        server. The default is 100.
759       </para>
760      </listitem>
761     </varlistentry>
762     <varlistentry>
763      <term>pz:id</term>
764      <listitem>
765       <para>
766        This setting can't be 'set' -- it contains the ID (normally
767        ZURL) for a given target, and is useful for filtering --
768        specifically when you want to select one or more specific
769        targets in the search command.
770       </para>
771      </listitem>
772     </varlistentry>
773     <varlistentry>
774      <term>pz:zproxy</term>
775      <listitem>
776       <para>
777        The 'pz:zproxy' setting has the value syntax 
778        'host.internet.adress:port', it is used to tunnel Z39.50
779        requests through the named Z39.50 proxy.
780       </para>
781      </listitem>
782     </varlistentry>
783
784     <varlistentry>
785      <term>pz:apdulog</term>
786      <listitem>
787       <para>
788        If the 'pz:apdulog' setting is defined and has other value than 0,
789        then Z39.50 APDUs are written to the log.
790       </para>
791      </listitem>
792     </varlistentry>
793
794     <varlistentry>
795       <term>pz:sru</term>
796       <listitem>
797         <para>
798           This setting enables SRU/SRW support. It has three possible settings.
799           'get', enables SRU access through GET requests. 'post' enables SRU/POST
800           support, less commonly supported, but useful if very large requests are
801           to be submitted. 'srw' enables the SRW variation of the protocol.
802         </para>
803       </listitem>
804     </varlistentry>
805
806     <varlistentry>
807       <term>pz:sru_version</term>
808       <listitem>
809         <para>
810           This allows SRU version to be specified. If unset Pazpar2
811           will the default of YAZ (currently 1.2). Should be set
812           to 1.1 or 1.2.
813         </para>
814       </listitem>
815     </varlistentry>
816
817     <varlistentry>
818       <term>pz:pqf_prefix</term>
819       <listitem>
820         <para>
821           Allows you to specify an arbitrary PQF query language substring. The provided
822           string is prefixed the user's query after it has been normalized to PQF
823           internally in pazpar2. This allows you to attach complex 'filters' to
824           queries for a gien target, sometimes necessary to select sub-catalogs
825           in union catalog systems, etc.
826         </para>
827       </listitem>
828     </varlistentry>
829    </variablelist>
830   </refsect2>
831
832  </refsect1>
833  <refsect1><title>SEE ALSO</title>
834   <para>
835    <citerefentry>
836     <refentrytitle>pazpar2</refentrytitle>
837     <manvolnum>8</manvolnum>
838    </citerefentry>
839    <citerefentry>
840     <refentrytitle>yaz-icu</refentrytitle>
841     <manvolnum>1</manvolnum>
842    </citerefentry>
843    <citerefentry>
844     <refentrytitle>pazpar2_protocol</refentrytitle>
845     <manvolnum>7</manvolnum>
846    </citerefentry>
847   </para>
848  </refsect1>
849 </refentry>
850 <!-- Keep this comment at the end of the file
851 Local variables:
852 mode: sgml
853 sgml-omittag:t
854 sgml-shorttag:t
855 sgml-minimize-attributes:nil
856 sgml-always-quote-attributes:t
857 sgml-indent-step:1
858 sgml-indent-data:t
859 sgml-parent-document:nil
860 sgml-local-catalogs: nil
861 sgml-namecase-general:t
862 End:
863 -->