config-zoom: set element_transform to pz2
[metaproxy-moved-to-github.git] / etc / config-zoom.xml
index 2928c3b..e4b9ac2 100644 (file)
@@ -1,8 +1,5 @@
 <?xml version="1.0"?>
 <metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
-  <!-- Z39.50 proxy which relays to target specified in Init otherinfo 
-  (VAL_RPOXY). If no target is given, it relays to target
-  z3950.indexdata.dk -->
   <start route="start"/>
   <filters>
     <filter id="frontend" type="frontend_net">
@@ -11,9 +8,65 @@
     </filter>
     <filter id="backend" type="zoom">
       <torus
-            url="http://newmk2.indexdata.com/torus2/searchable.ebsco/records/?query=udb%3D%db"
+         url="http://newmk2.indexdata.com/torus2/searchable.ebsco/records/?query=udb%3D%db"
             xsldir="."
-      />
+            element_transform="pz2"
+            element_raw="raw"
+           >   
+       <records>
+         <record>
+           <piggyback>1</piggyback>
+           <queryEncoding>UTF-8</queryEncoding>
+           <udb>z-local</udb>
+           <cclmap_term>1=1016 s=al</cclmap_term>
+           <cclmap_ti>1=4 s=pw t=l,r</cclmap_ti>
+           <requestSyntax>usmarc</requestSyntax>
+           <transform>tmarc.xsl</transform>
+           <zurl>localhost:9999/db01</zurl>
+         </record>
+         <record>
+           <piggyback>1</piggyback>
+           <queryEncoding>UTF-8</queryEncoding>
+           <udb>sru-local</udb>
+           <cclmap_term>s=al</cclmap_term>
+           <cclmap_ti>1=title s=pw t=l,r</cclmap_ti>
+           <sru>get</sru>
+           <transform>tmarc.xsl</transform>
+           <zurl>localhost:9999/db01</zurl>
+         </record>
+       </records>
+      </torus>
+      <fieldmap cql="cql.anywhere"/>
+      <fieldmap cql="cql.serverChoice"/>
+      <fieldmap cql="dc.creator" ccl="au"/>
+      <fieldmap cql="dc.title" ccl="ti"/>
+      <fieldmap cql="dc.subject" ccl="su"/>
+      <fieldmap cql="bash.isbn" ccl="isbn"/>
+      <fieldmap cql="bash.issn" ccl="issn"/>
+      <fieldmap cql="dc.date" ccl="date"/>
+      <!-- 
+          I got some of the following CCL qualifier names from
+          http://catalog.pburglib.org/polaris/Help/PWbasicsearch6.html
+          These are marked with the comment POLARIS.
+          The others, I just made up.
+          (Mike, Wed Jun 15 22:50:18 BST 2011)
+       -->
+      <fieldmap cql="rec.identifier" ccl="ocn"/><!-- POLARIS -->
+      <fieldmap cql="net.path" ccl="db"/>
+      <fieldmap cql="dc.language" ccl="la"/><!-- POLARIS -->
+      <fieldmap cql="dc.format" ccl="tom"/><!-- POLARIS -->
+      <fieldmap cql="id.fullText" ccl="fullText"/>
+      <fieldmap cql="id.peerReviewed" ccl="peerReviewed"/>
+      <fieldmap cql="dc.description" ccl="desc"/>
+      <fieldmap cql="dc.source" ccl="src"/>
+      <fieldmap cql="dc.publisher" ccl="pub"/><!-- POLARIS -->
+      <fieldmap cql="id.seriesTitle" ccl="series-ti"/>
+
+      <cclmap>
+        <qual name="ocn">
+          <attr type="1" value="12"/>
+        </qual>
+      </cclmap>
     </filter>
   </filters>
   <routes>  
@@ -27,7 +80,7 @@
         <retrievalinfo   xmlns="http://indexdata.com/yaz" version="1.0">
           <retrieval syntax="xml" name="usi">
             <backend syntax="xml" name="pz2">
-              <xslt stylesheet="../xml/xslt/pz22usi.xsl"/>
+              <xslt stylesheet="pz22usi.xsl"/>
             </backend>
           </retrieval>
           <retrieval syntax="xml"/>
           <retrieval syntax="usmarc"/>
         </retrievalinfo>
       </filter>
+      <filter type="session_shared"/>
+      <filter type="log">
+        <message>B</message>
+       <category apdu="true"/>
+      </filter>
       <filter refid="backend"/>
       <filter type="bounce"/>
     </route>