zoom: Use udb and query only one searchable
[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       <torus url="http://newmk2.indexdata.com/torus2/searchable.ebsco/records/?query=udb%3D%db"/>
14       <records>
15          <record>
16            <layer>
17              <id>z-local</id>
18              <zurl>localhost:9999/db01</zurl>
19              <queryEncoding>iso-8859-1</queryEncoding>
20              <elementSet>F</elementSet>
21              <requestSyntax>MARC21</requestSyntax>
22              <recordEncoding>MARC-8</recordEncoding>
23              <transform>tmarc.xsl</transform>
24              <authentication>a/b</authentication>
25              <cclmap_term>u=1016 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_term>
26              <cclmap_au>u=1003 2=3 s=al s=pw t=l,r 6=1</cclmap_au>
27              <cclmap_ti>u=4 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_ti>
28              <cclmap_su>u=21 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_su>
29            </layer>
30          </record>
31          <record>
32            <layer>
33              <id>sru-local</id>
34              <zurl>localhost:9999/db02</zurl>
35              <sru>get</sru>
36              <queryEncoding>iso-8859-1</queryEncoding>
37            </layer>
38          </record>
39          <record>
40            <layer>
41              <id>cf-local</id>
42              <zurl>localhost:9999/db03</zurl>
43              <authentication>a/b</authentication>
44              <cfAuth>mycfuser/mycfpassword</cfAuth>
45              <cfSubDb>mycfsub</cfSubDb>
46              <cclmap_term>u=1016 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_term>
47              <cclmap_au>u=1003 2=3 s=al s=pw t=l,r 6=1</cclmap_au>
48              <cclmap_ti>u=4 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_ti>
49              <cclmap_su>u=21 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_su>
50            </layer>
51          </record>
52          <record>
53            <layer>
54              <id>z-unknown</id>
55              <zurl>localhost:9999/unknown</zurl>
56              <queryEncoding>iso-8859-1</queryEncoding>
57            </layer>
58          </record>
59       </records> 
60     </filter>
61   </filters>
62   <routes>  
63     <route id="start">
64       <filter refid="frontend"/>
65       <filter type="log">
66         <message>log</message>
67       </filter>
68       <filter refid="backend"/>
69       <filter type="bounce"/>
70     </route>
71   </routes>
72 </metaproxy>
73