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