X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=doc%2Fpazpar2_conf.xml;h=de76d9d7d5250eb83e053ce006690cab573bb641;hb=88f96194d5a63278eb57b32c814019dab51da9ff;hp=02adacfe2b931032366966ee1fbf86d04c6eee9d;hpb=2a6572e703ab4ca72316cec0fd2b0106fa3c6c65;p=pazpar2-moved-to-github.git diff --git a/doc/pazpar2_conf.xml b/doc/pazpar2_conf.xml index 02adacf..de76d9d 100644 --- a/doc/pazpar2_conf.xml +++ b/doc/pazpar2_conf.xml @@ -48,18 +48,33 @@ FORMAT - The configuration file is XML-structured. It must be valid XML. All + The configuration file is XML-structured. It must be well-formed XML. All elements specific to Pazpar2 should belong to the namespace http://www.indexdata.com/pazpar2/1.0 (this is assumed in the - following examples). The root element is named pazpar2. + following examples). The root element is named "pazpar2". Under the root element are a number of elements which group categories of information. The categories are described below. + threads + + This section is optional and is supported for Pazpar2 version 1.3.1 and + later . It is identified by element "threads" which + may include one attribute "number" which specifies + the number of worker-threads that the Pazpar2 instance is to use. + A value of 0 (zero) disables worker-threads (all work is carried out + in main thread). + + server - This section governs overall behavior of the server. The data + This section governs overall behavior of a server endpoint. It is identified + by the element "server" which takes an optional attribute, "id", which + identifies this particular Pazpar2 server. Any string value for "id" + may be given. + + The data elements are described below. From Pazpar2 version 1.2 this is a repeatable element. @@ -445,6 +460,7 @@ + @@ -779,7 +795,7 @@ - + pz:requestsyntax @@ -841,14 +857,37 @@ + pz:negotiation_charset + + + Sets character set for Z39.50 negotiation. Most targets do not support + this, and some will even close connection if set (crash on server + side or similar). If set, you probably want to set it to + UTF-8. + + + + + pz:xslt - Provides the path of an XSLT stylesheet which will be used to - map incoming records to the internal representation. + Is a comma separated list of of files that specifies + how to convert incoming records to the internal representation. + + + The suffix of each file specifies the kind of tranformation. + Suffix ".xsl" makes an XSL transform. Suffix + ".mmap" will use the MMAP transform (described below). + + + The special value "auto" will use a file + which is the pz:requestsyntax's + value followed by + '.xsl'. - When mapping MARC XML records, XSLT can be bypassed for increased + When mapping MARC records, XSLT can be bypassed for increased performance with the alternate "MARC map" format. Provide the path of a file with extension ".mmap" containing on each line: @@ -962,6 +1001,23 @@ + pz:pqf_strftime + + + Allows you to extend a query with dates and operators. + The provided string allows certain substitutions and serves as a + format string. + The special two character sequence '%%' gets converted to the + original query. Other characters leading with the percent sign are + conversions supported by strftime. + All other characters are copied verbatim. For example, the string + @and @attr 1=30 @attr 2=3 %Y %% + would search for current year combined with the original PQF (%%). + + + + + pz:sort @@ -970,7 +1026,22 @@ + + + pz:recordfilter + + + Specifies a filter which allows Pazpar2 to only include + records that meet a certain criteria in a result. Unmatched records + will be ignored. The filter takes the form name[~value] , which + will include only records with metadata element (name) that has the + substring (value) given. If value is omitted all records with the + metadata present will be included. + + + +