Allow local ccl maps to be given (as base)
[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
14             url="http://newmk2.indexdata.com/torus2/searchable.ebsco/records/?query=udb%3D%db"
15             xsldir="."
16       />
17       <fieldmap cql="cql.anywhere"/>
18       <fieldmap cql="cql.serverChoice"/>
19       <fieldmap cql="dc.creator" ccl="au"/>
20       <fieldmap cql="dc.title" ccl="ti"/>
21       <fieldmap cql="dc.subject" ccl="su"/>
22       <fieldmap cql="bash.isbn" ccl="isbn"/>
23       <fieldmap cql="bash.issn" ccl="issn"/>
24       <fieldmap cql="dc.date" ccl="date"/>
25       <!-- 
26            I got some of the following CCL qualifier names from
27            http://catalog.pburglib.org/polaris/Help/PWbasicsearch6.html
28            These are marked with the comment POLARIS.
29            The others, I just made up.
30            (Mike, Wed Jun 15 22:50:18 BST 2011)
31         -->
32       <fieldmap cql="rec.identifier" ccl="ocn"/><!-- POLARIS -->
33       <fieldmap cql="net.path" ccl="db"/>
34       <fieldmap cql="dc.language" ccl="la"/><!-- POLARIS -->
35       <fieldmap cql="dc.format" ccl="tom"/><!-- POLARIS -->
36       <fieldmap cql="id.fullText" ccl="fullText"/>
37       <fieldmap cql="id.peerReviewed" ccl="peerReviewed"/>
38       <fieldmap cql="dc.description" ccl="desc"/>
39       <fieldmap cql="dc.source" ccl="src"/>
40       <fieldmap cql="dc.publisher" ccl="pub"/><!-- POLARIS -->
41       <fieldmap cql="id.seriesTitle" ccl="series-ti"/>
42
43       <cclmap>
44         <qual name="ocn">
45           <attr type="1" value="12"/>
46         </qual>
47       </cclmap>
48     </filter>
49   </filters>
50   <routes>  
51     <route id="start">
52       <filter refid="frontend"/>
53       <filter type="log">
54         <message>F</message>
55       </filter>
56       <filter type="sru_z3950"/>
57       <filter type="record_transform">
58         <retrievalinfo   xmlns="http://indexdata.com/yaz" version="1.0">
59           <retrieval syntax="xml" name="usi">
60             <backend syntax="xml" name="pz2">
61               <xslt stylesheet="../xml/xslt/pz22usi.xsl"/>
62             </backend>
63           </retrieval>
64           <retrieval syntax="xml"/>
65           <retrieval syntax="json"/>
66           <retrieval syntax="usmarc"/>
67         </retrievalinfo>
68       </filter>
69       <filter type="session_shared"/>
70       <filter type="log">
71         <message>B</message>
72         <category apdu="true"/>
73       </filter>
74       <filter refid="backend"/>
75       <filter type="bounce"/>
76     </route>
77   </routes>
78 </metaproxy>
79