a6403190996a24ac21954f956f9056837c863edd
[pazpar2-moved-to-github.git] / etc / pazpar2.cfg
1 <?xml version="1.0" encoding="UTF-8"?>
2 <pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
3
4 <!-- NOTE: This is not yet a functional config file. It's meant as a scratchpad/
5      discussion area to figure out just how the heck to structure this kind of
6      configuration.
7 -->
8
9 <!-- thought... right now there is only one global 'service' in the code, but
10      it will be pretty simple to make this repeatable, and I think that should
11      be done at some point (this will eliminate most of the global parameters.
12      But it might be nice to have 'virtual' targets, so differrent sets of
13      configuration could live within one listener (on a single
14      port). -->
15
16 <server>
17   <listen port="9004"/>
18   <proxy host="localhost" port="80"/>
19
20   <service>
21     <!-- <metadata name="title"/> -->
22   </service>
23 </server>
24
25 <!-- Need to figure out where to get ZeeRex records for targets from -->
26
27 <!-- The 'profiles' below are repeatable, and tagged with an ID, so that they
28      can be linked with targets. -->
29
30 <!-- They can be generated dynamically using XSLT. -->
31
32 <queryprofile/>  <!-- Like a CCL profile? What else? -->
33
34 <!-- Select by target ID (pattern). What else???   -->
35
36 <retrievalprofile>
37   <requestsyntax>marc21</requestsyntax>
38   <charset>marc-8</charset>
39   <map type="iso2709" charset="marc-8" format="marcxml"/>
40   <map type="xslt" stylesheet="marc21.xsl"/>
41 </retrievalprofile>
42
43 </pazpar2>