Now compiles and generates doc
[yazproxy-moved-to-github.git] / etc / voyager.xml
1 <?xml version="1.0"?>
2 <!-- $Id: voyager.xml,v 1.1 2004-04-11 11:37:01 adam Exp $ -->
3 <proxy>
4   <!-- define default target and name it voyager -->
5   <target default="1" name="voyager">
6     <!-- all backend addresses as seen from this proxy .. -->
7     <url>z3950.loc.gov:7090</url>
8
9     <!-- set session timeout between proxy and backend target -->
10     <target-timeout>300</target-timeout>
11
12     <!-- set session timeout between client and proxy.
13     Should be lower than target-timeout -->
14     <client-timeout>180</client-timeout>
15
16     <!-- if either bandwidth or pdu limit is reached the session is no
17     longer kept alive -->
18     <keepalive>
19       <bandwidth>500000</bandwidth>
20       <pdu>500</pdu>
21     </keepalive>
22
23     <!-- client limits .. -->
24     <limit>
25       <bandwidth>200000</bandwidth>
26       <pdu>31</pdu>
27       <retrieve>50</retrieve>
28     </limit>
29
30     <!-- use attributes -->
31     <attribute type="1" value="1-11,13-1010,1013-1023,1025-1030"/>
32     <attribute type="1" value="*" error="114"/>
33
34     <!-- relation attributes -->
35     <attribute type="2" value="1,2,3,4,5,6"/>
36     <attribute type="2" value="*" error="117"/>
37     
38     <!-- position attributes -->
39     <attribute type="3" value="1,2,3"/>
40     <attribute type="3" value="*" error="119"/>
41
42     <!-- structure attributes -->
43     <attribute type="4" value="1,2,3,4,5,6"/>
44     <attribute type="4" value="*" error="118"/>
45
46     <!-- truncation attributes -->
47     <attribute type="5" value="1,100"/>
48     <attribute type="5" value="*" error="120"/>
49
50     <!-- completeness attributes -->
51     <attribute type="6" value="1,2,3"/>
52     <attribute type="6" value="*" error="122"/>
53
54     <!-- other types -->
55     <attribute type="*" value="*" error="113"/>
56
57     <!-- list allowed record syntaxes and possible schemas (if any);
58     reject all others at the end -->
59     <syntax type="opac"/>
60     <syntax type="usmarc"/>
61     <syntax type="none"/>
62     
63     <syntax type="xml" marcxml="1"
64       identifier="info:srw/schema/1/marcxml-v1.1"
65       >
66       <title>MARCXML</title>
67       <name>marcxml</name>
68     </syntax>
69     <syntax type="xml" marcxml="1" stylesheet="MARC21slim2SRWDC.xsl"
70       identifier="info:srw/schema/1/dc-v1.1"
71       >
72       <title>Dublin Core</title>
73       <name>dc</name>
74     </syntax>
75     <syntax type="xml" marcxml="1" stylesheet="MARC21slim2MODS.xsl"
76       identifier="http://www.loc.gov/mods"
77       >
78       <title>MODS v2</title>
79       <name>mods2</name>
80     </syntax>
81     <syntax type="xml" marcxml="1" stylesheet="MARC21slim2MODS3.xsl"
82       identifier="info:srw/schema/1/mods-v3.0"
83       >
84       <title>MODS v3</title>
85       <name>mods3</name>
86       <name>mods</name>
87     </syntax>
88
89     <syntax type="*" error="238"/>
90
91     <!-- keep this number of spare sessions for future sessions -->
92     <preinit>2</preinit>
93
94     <explain xmlns="http://explain.z3950.org/dtd/2.0/">
95       <serverInfo>
96         <host>indexdata.dk</host>
97         <port>9000</port>
98         <database>voyager</database>
99       </serverInfo>
100       
101       <databaseInfo>
102         <title>LoC gateway</title>
103         <description lang="en" primary="true">
104           SRW/SRU/Z39.50 Gateway to Library of Congress' Z39.50 server
105         </description>
106       </databaseInfo>
107       
108       <indexInfo>
109         <set identifier="info:srw/cql-context-set/1/cql-v1.1"
110           name="cql"/>
111         <set identifier="info:srw/cql-context-set/1/dc-v1.1"
112           name="dc"/>
113         <set identifier="http://zing.z3950.org/cql/bath/2.0/"
114           name="bath"/>
115         
116         <index id="4">
117           <title>title</title>
118           <map><name set="dc">title</name></map>
119         </index>
120         <index id="21">
121           <title>subject</title>
122           <map><name set="dc">subject</name></map>
123         </index>
124         <index id="1003">
125           <title>creator</title>
126           <map><name set="dc">creator</name></map>
127           <map><name set="dc">author</name></map>
128         </index>
129         
130         <index id="1020">
131           <title>editor</title>
132           <map><name set="dc">editor</name></map>
133         </index>
134         
135         <index id="1018">
136           <title>publisher</title>
137           <map><name set="dc">publisher</name></map>
138         </index>
139         
140         <index id="62">
141           <title>description</title>
142           <map><name set="dc">description</name></map>
143         </index>
144         
145         <index id="30">
146           <title>date</title>
147           <map><name set="dc">date</name></map>
148         </index>
149         
150         <index id="1002">
151           <title>name</title>
152           <map><name set="bath">name</name></map>
153         </index>
154         
155         <index id="7">
156           <title>isbn</title>
157           <map><name set="bath">isbn</name></map>
158         </index>
159         <index id="8">
160           <title>issn</title>
161           <map><name set="bath">issn</name></map>
162         </index>
163       </indexInfo>
164
165       <schemaInfo>
166         <schema identifier="info:srw/schema/1/marcxml-v1.1"
167           sort="false" name="marcxml">
168           <title>MARCXML</title>
169         </schema>
170         
171         <schema identifier="info:srw/schema/1/dc-v1.1"
172           sort="false" name="dc">
173           <title>Dublin Core</title>
174         </schema>
175         
176         <schema identifier="http://www.loc.gov/mods"
177           sort="false" name="mods2">
178           <title>MODS v2</title>
179         </schema>
180
181         <schema identifier="info:srw/schema/1/mods-v3.0"
182           sort="false" name="mods">
183           <title>MODS v3</title>
184         </schema>
185
186       </schemaInfo>
187
188       <configInfo>
189         <default type="numberOfRecords">0</default>
190       </configInfo>
191     </explain>
192    <cql2rpn>pqf.properties</cql2rpn>
193   </target>
194
195
196   <!-- maximum number of client sessions. Remember to allow for
197      at least max-clients*2+5 sockets. Use 'ulimit -n 1040' on bash -->
198   <max-clients>500</max-clients>
199   
200   <!-- what we log. Allowed tokens: client-apdu, server-apdu,
201   client-requests, server-requests -->
202   <log>client-requests server-requests</log>
203 </proxy>