zoom filter: honor cclmap_*-fields
[metaproxy-moved-to-github.git] / etc / config-zoom.xml
1 <?xml version="1.0"?>
2 <metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
3   <!-- Z39.50 proxy which relays to target specified in Init otherinfo 
4   (VAL_RPOXY). If no target is given, it relays to target
5   z3950.indexdata.dk -->
6   <start route="start"/>
7   <filters>
8     <filter id="frontend" type="frontend_net">
9       <threads>10</threads>
10       <port>@:9000</port>
11     </filter>
12     <filter id="backend" type="zoom">
13       <records>
14          <record>
15            <layer>
16              <id>z-local</id>
17              <zurl>localhost:9999/db01</zurl>
18              <queryEncoding>iso-8859-1</queryEncoding>
19              <useTurboMarc>1</useTurboMarc>
20              <elementSet>F</elementSet>
21              <requestSyntax>MARC21</requestSyntax>
22              <recordEncoding>MARC-8</recordEncoding>
23              <transform>tmarc.xsl</transform>
24              <cclmap_term>u=1016 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_term>
25              <cclmap_au>u=1003 2=3 s=al s=pw t=l,r 6=1</cclmap_au>
26              <cclmap_ti>u=4 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_ti>
27              <cclmap_su>u=21 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_su>
28            </layer>
29          </record>
30          <record>
31            <layer>
32              <id>sru-local</id>
33              <zurl>localhost:9999/db02</zurl>
34              <sru>get</sru>
35              <queryEncoding>iso-8859-1</queryEncoding>
36            </layer>
37          </record>
38          <record>
39            <layer>
40              <id>z-unknown</id>
41              <zurl>localhost:9999/unknown</zurl>
42              <queryEncoding>iso-8859-1</queryEncoding>
43            </layer>
44          </record>
45       </records> 
46     </filter>
47   </filters>
48   <routes>  
49     <route id="start">
50       <filter refid="frontend"/>
51       <filter type="log">
52         <message>log</message>
53       </filter>
54       <filter refid="backend"/>
55       <filter type="bounce"/>
56     </route>
57   </routes>
58 </metaproxy>
59