Reinstate misspelled index names, but mark as deprecated.
[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   <start route="start"/>
4   <filters>
5     <filter id="frontend" type="frontend_net">
6       <threads>10</threads>
7       <port>@:9000</port>
8     </filter>
9     <filter id="backend" type="zoom">
10       <torus
11           url="http://newmk2.indexdata.com/torus2/searchable.ebsco/records/?query=udb%3D%db"
12             xsldir="."
13             element_transform="pz2"
14             element_raw="raw"
15             >   
16         <records>
17           <record>
18             <piggyback>1</piggyback>
19             <queryEncoding>UTF-8</queryEncoding>
20             <udb>z-local</udb>
21             <cclmap_term>1=1016 s=al</cclmap_term>
22             <cclmap_ti>1=4 s=pw t=l,r</cclmap_ti>
23             <requestSyntax>usmarc</requestSyntax>
24             <transform>tmarc.xsl</transform>
25             <zurl>localhost:9999/db01</zurl>
26           </record>
27           <record>
28             <piggyback>1</piggyback>
29             <queryEncoding>UTF-8</queryEncoding>
30             <udb>sru-local</udb>
31             <cclmap_term>s=al</cclmap_term>
32             <cclmap_ti>1=title s=pw t=l,r</cclmap_ti>
33             <sru>get</sru>
34             <transform>tmarc.xsl</transform>
35             <zurl>localhost:9999/db01</zurl>
36           </record>
37           <record>
38             <piggyback>1</piggyback>
39             <queryEncoding>UTF-8</queryEncoding>
40             <udb>cf-local</udb>
41             <cclmap_term>1=1016 s=al</cclmap_term>
42             <cclmap_ti>1=4 s=pw t=l,r</cclmap_ti>
43             <requestSyntax>xml</requestSyntax>
44             <transform>cf.xsl</transform>
45             <zurl>localhost:9999/db01</zurl>
46             <cfAuth>cfuser/cfpassword</cfAuth>
47             <cfProxy>localhost:3128</cfProxy>
48             <cfSubDb>mysub</cfSubDb>
49           </record>
50         </records>
51       </torus>
52       <fieldmap cql="cql.anywhere"/>
53       <fieldmap cql="cql.serverChoice"/>
54       <fieldmap cql="dc.creator" ccl="au"/>
55       <fieldmap cql="dc.title" ccl="ti"/>
56       <fieldmap cql="dc.subject" ccl="su"/>
57       <fieldmap cql="bath.isbn" ccl="isbn"/>
58       <fieldmap cql="bath.issn" ccl="issn"/>
59       <fieldmap cql="bash.isbn" ccl="isbn"/><-- ### deprecated erroneous synonym -->
60       <fieldmap cql="bash.issn" ccl="issn"/><-- ### deprecated erroneous synonym -->
61       <fieldmap cql="dc.date" ccl="date"/>
62       <!-- 
63            I got some of the following CCL qualifier names from
64            http://catalog.pburglib.org/polaris/Help/PWbasicsearch6.html
65            These are marked with the comment POLARIS.
66            The others, I just made up.
67            (Mike, Wed Jun 15 22:50:18 BST 2011)
68         -->
69       <fieldmap cql="rec.identifier" ccl="ocn"/><!-- POLARIS -->
70       <fieldmap cql="net.path" ccl="db"/>
71       <fieldmap cql="dc.language" ccl="la"/><!-- POLARIS -->
72       <fieldmap cql="dc.format" ccl="tom"/><!-- POLARIS -->
73       <fieldmap cql="id.fullText" ccl="fullText"/>
74       <fieldmap cql="id.peerReviewed" ccl="peerReviewed"/>
75       <fieldmap cql="dc.description" ccl="desc"/>
76       <fieldmap cql="dc.source" ccl="src"/>
77       <fieldmap cql="dc.publisher" ccl="pub"/><!-- POLARIS -->
78       <fieldmap cql="id.seriesTitle" ccl="series-ti"/>
79
80       <cclmap>
81         <qual name="ocn">
82           <attr type="1" value="12"/>
83         </qual>
84       </cclmap>
85     </filter>
86   </filters>
87   <routes>  
88     <route id="start">
89       <filter refid="frontend"/>
90       <filter type="log">
91         <message>F</message>
92       </filter>
93       <filter type="sru_z3950"/>
94       <filter type="record_transform">
95         <retrievalinfo   xmlns="http://indexdata.com/yaz" version="1.0">
96           <retrieval syntax="xml" name="usi">
97             <backend syntax="xml" name="pz2">
98               <xslt stylesheet="pz22usi.xsl"/>
99             </backend>
100           </retrieval>
101           <retrieval syntax="xml"/>
102           <retrieval syntax="json"/>
103           <retrieval syntax="usmarc"/>
104         </retrievalinfo>
105       </filter>
106       <filter type="session_shared"/>
107       <filter type="log">
108         <message>B</message>
109         <category apdu="true"/>
110       </filter>
111       <filter refid="backend"/>
112       <filter type="bounce"/>
113     </route>
114   </routes>
115 </metaproxy>
116