6db2ce8932a7d8efbae4cc51eb03675dc6c73d8c
[yazproxy-moved-to-github.git] / etc / fennica.xml
1 <?xml version="1.0"?>
2 <!-- $Id: fennica.xml,v 1.1 2004-08-10 09:02:16 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     <xurl>193.166.7.194:11390</xurl>
11     <url>localhost:9999</url>
12
13     <!-- set session timeout between proxy and backend target -->
14     <target-timeout>300</target-timeout>
15
16     <!-- set session timeout between client and proxy.
17     Should be lower than target-timeout -->
18     <client-timeout>180</client-timeout>
19
20     <!-- if either bandwidth or pdu limit is reached the session is no
21     longer kept alive -->
22     <keepalive>
23       <bandwidth>500000</bandwidth>
24       <pdu>500</pdu>
25     </keepalive>
26
27     <!-- client limits .. -->
28     <limit>
29       <bandwidth>200000</bandwidth>
30       <pdu>31</pdu>
31       <retrieve>50</retrieve>
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="finmarc" backendtype="usmarc"/>
65     <zsyntax type="usmarc"/>
66     <syntax type="usmarc" backendtype="canmarc"/>
67     <syntax type="none"/>
68     
69     <syntax type="xml" marcxml="1"
70       identifier="info:srw/schema/1/marcxml-v1.1"
71       >
72       <title>MARCXML</title>
73       <name>marcxml</name>
74     </syntax>
75     <syntax type="xml" marcxml="1" stylesheet="MARC21slim2SRWDC.xsl"
76       identifier="info:srw/schema/1/dc-v1.1"
77       >
78       <title>Dublin Core</title>
79       <name>dc</name>
80     </syntax>
81     <syntax type="xml" marcxml="1" stylesheet="MARC21slim2MODS.xsl"
82       identifier="http://www.loc.gov/mods"
83       >
84       <title>MODS v2</title>
85       <name>mods2</name>
86     </syntax>
87     <syntax type="xml" marcxml="1" stylesheet="MARC21slim2MODS3.xsl"
88       identifier="info:srw/schema/1/mods-v3.0"
89       >
90       <title>MODS v3</title>
91       <name>mods3</name>
92       <name>mods</name>
93     </syntax>
94
95     <syntax type="*" error="238"/>
96
97     <!-- keep this number of spare sessions for future sessions -->
98     <preinit>0</preinit>
99
100     <explain xmlns="http://explain.z3950.org/dtd/2.0/">
101       <serverInfo>
102         <host>indexdata.dk</host>
103         <port>9000</port>
104         <database>voyager</database>
105       </serverInfo>
106       
107       <databaseInfo>
108         <title>LoC gateway</title>
109         <description lang="en" primary="true">
110           SRW/SRU/Z39.50 Gateway to HELKA (The OPAC of the Helsinki University Libraries)
111         </description>
112       </databaseInfo>
113       
114       <indexInfo>
115         <set identifier="info:srw/cql-context-set/1/cql-v1.1"
116           name="cql"/>
117         <set identifier="info:srw/cql-context-set/1/dc-v1.1"
118           name="dc"/>
119         <set identifier="http://zing.z3950.org/cql/bath/2.0/"
120           name="bath"/>
121         
122         <index id="4">
123           <title>title</title>
124           <map><name set="dc">title</name></map>
125         </index>
126         <index id="21">
127           <title>subject</title>
128           <map><name set="dc">subject</name></map>
129         </index>
130         <index id="1003">
131           <title>creator</title>
132           <map><name set="dc">creator</name></map>
133           <map><name set="dc">author</name></map>
134         </index>
135         
136         <index id="1020">
137           <title>editor</title>
138           <map><name set="dc">editor</name></map>
139         </index>
140         
141         <index id="1018">
142           <title>publisher</title>
143           <map><name set="dc">publisher</name></map>
144         </index>
145         
146         <index id="62">
147           <title>description</title>
148           <map><name set="dc">description</name></map>
149         </index>
150         
151         <index id="30">
152           <title>date</title>
153           <map><name set="dc">date</name></map>
154         </index>
155         
156         <index id="1002">
157           <title>name</title>
158           <map><name set="bath">name</name></map>
159         </index>
160         
161         <index id="7">
162           <title>isbn</title>
163           <map><name set="bath">isbn</name></map>
164         </index>
165         <index id="8">
166           <title>issn</title>
167           <map><name set="bath">issn</name></map>
168         </index>
169       </indexInfo>
170
171       <schemaInfo>
172         <schema identifier="info:srw/schema/1/marcxml-v1.1"
173           sort="false" name="marcxml">
174           <title>MARCXML</title>
175         </schema>
176         
177         <schema identifier="info:srw/schema/1/dc-v1.1"
178           sort="false" name="dc">
179           <title>Dublin Core</title>
180         </schema>
181         
182         <schema identifier="http://www.loc.gov/mods"
183           sort="false" name="mods2">
184           <title>MODS v2</title>
185         </schema>
186
187         <schema identifier="info:srw/schema/1/mods-v3.0"
188           sort="false" name="mods">
189           <title>MODS v3</title>
190         </schema>
191
192       </schemaInfo>
193
194       <configInfo>
195         <default type="numberOfRecords">0</default>
196       </configInfo>
197     </explain>
198    <cql2rpn>pqf.properties</cql2rpn>
199   </target>
200
201
202   <!-- maximum number of client sessions. Remember to allow for
203      at least max-clients*2+5 sockets. Use 'ulimit -n 1040' on bash -->
204   <max-clients>500</max-clients>
205   
206   <!-- what we log. Allowed tokens: client-apdu, server-apdu,
207   client-requests, server-requests -->
208   <log>client-requests server-requests</log>
209 </proxy>