Added .cvsignore files.
[yazproxy-moved-to-github.git] / etc / helka.xml
1 <?xml version="1.0"?>
2 <!-- $Id: helka.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     <url>193.166.7.193:7590</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="finmarc" backendtype="usmarc"/>
64     <syntax type="usmarc" backendtype="canmarc"/>
65     <syntax type="none"/>
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="*" error="238"/>
94
95     <!-- keep this number of spare sessions for future sessions -->
96     <preinit>0</preinit>
97
98     <explain xmlns="http://explain.z3950.org/dtd/2.0/">
99       <serverInfo>
100         <host>indexdata.dk</host>
101         <port>9000</port>
102         <database>voyager</database>
103       </serverInfo>
104       
105       <databaseInfo>
106         <title>LoC gateway</title>
107         <description lang="en" primary="true">
108           SRW/SRU/Z39.50 Gateway to HELKA (The OPAC of the Helsinki University Libraries)
109         </description>
110       </databaseInfo>
111       
112       <indexInfo>
113         <set identifier="info:srw/cql-context-set/1/cql-v1.1"
114           name="cql"/>
115         <set identifier="info:srw/cql-context-set/1/dc-v1.1"
116           name="dc"/>
117         <set identifier="http://zing.z3950.org/cql/bath/2.0/"
118           name="bath"/>
119         
120         <index id="4">
121           <title>title</title>
122           <map><name set="dc">title</name></map>
123         </index>
124         <index id="21">
125           <title>subject</title>
126           <map><name set="dc">subject</name></map>
127         </index>
128         <index id="1003">
129           <title>creator</title>
130           <map><name set="dc">creator</name></map>
131           <map><name set="dc">author</name></map>
132         </index>
133         
134         <index id="1020">
135           <title>editor</title>
136           <map><name set="dc">editor</name></map>
137         </index>
138         
139         <index id="1018">
140           <title>publisher</title>
141           <map><name set="dc">publisher</name></map>
142         </index>
143         
144         <index id="62">
145           <title>description</title>
146           <map><name set="dc">description</name></map>
147         </index>
148         
149         <index id="30">
150           <title>date</title>
151           <map><name set="dc">date</name></map>
152         </index>
153         
154         <index id="1002">
155           <title>name</title>
156           <map><name set="bath">name</name></map>
157         </index>
158         
159         <index id="7">
160           <title>isbn</title>
161           <map><name set="bath">isbn</name></map>
162         </index>
163         <index id="8">
164           <title>issn</title>
165           <map><name set="bath">issn</name></map>
166         </index>
167       </indexInfo>
168
169       <schemaInfo>
170         <schema identifier="info:srw/schema/1/marcxml-v1.1"
171           sort="false" name="marcxml">
172           <title>MARCXML</title>
173         </schema>
174         
175         <schema identifier="info:srw/schema/1/dc-v1.1"
176           sort="false" name="dc">
177           <title>Dublin Core</title>
178         </schema>
179         
180         <schema identifier="http://www.loc.gov/mods"
181           sort="false" name="mods2">
182           <title>MODS v2</title>
183         </schema>
184
185         <schema identifier="info:srw/schema/1/mods-v3.0"
186           sort="false" name="mods">
187           <title>MODS v3</title>
188         </schema>
189
190       </schemaInfo>
191
192       <configInfo>
193         <default type="numberOfRecords">0</default>
194       </configInfo>
195     </explain>
196    <cql2rpn>pqf.properties</cql2rpn>
197   </target>
198
199
200   <!-- maximum number of client sessions. Remember to allow for
201      at least max-clients*2+5 sockets. Use 'ulimit -n 1040' on bash -->
202   <max-clients>500</max-clients>
203   
204   <!-- what we log. Allowed tokens: client-apdu, server-apdu,
205   client-requests, server-requests -->
206   <log>client-requests server-requests</log>
207 </proxy>