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