For Torus record fetch, proxy may be given
[metaproxy-moved-to-github.git] / etc / config-zoom.xml
index 6985f85..dbb72f6 100644 (file)
@@ -8,12 +8,16 @@
     </filter>
     <filter id="backend" type="zoom">
       <torus
-         url="http://newmk2.indexdata.com/torus2/searchable.ebsco/records/?query=udb%3D%db"
+         url="http://mk2.indexdata.com/torus2/searchable.usi-test/records/?query=udb%3D%db"
             xsldir="."
             element_transform="pz2"
             element_raw="raw"
+           proxy="localhost:3128"
            >   
+        <!-- these records are examples only -->
        <records>
+
+          <!-- local z-target and content connector -->
          <record>
            <piggyback>1</piggyback>
            <queryEncoding>UTF-8</queryEncoding>
            <cclmap_ti>1=4 s=pw t=l,r</cclmap_ti>
            <requestSyntax>usmarc</requestSyntax>
            <transform>tmarc.xsl</transform>
-           <zurl>localhost:9999/db01</zurl>
+           <urlRecipe>http://sever.com?title=${md-title[\s+/+/g]}</urlRecipe>
+           <zurl>localhost:9998/db01</zurl>
+           <contentConnector>heikki/content1</contentConnector>
          </record>
          <record>
+           <udb>heikki/content1</udb>
+           <zurl>localhost:9999/heikki/content1</zurl>
+           <cfAuth>cfuser/cfpassword</cfAuth>
+         </record>
+
+          <!-- sru local connector -->
+         <record>
            <piggyback>1</piggyback>
            <queryEncoding>UTF-8</queryEncoding>
            <udb>sru-local</udb>
            <cclmap_ti>1=title s=pw t=l,r</cclmap_ti>
            <sru>get</sru>
            <transform>tmarc.xsl</transform>
-           <zurl>localhost:9999/db01</zurl>
+           <zurl>localhost:9998/db01</zurl>
+         </record>
+
+          <!-- jstor -->
+         <record>
+           <piggyback>1</piggyback>
+           <queryEncoding>UTF-8</queryEncoding>
+           <udb>jstor-local</udb>
+           <cclmap_term>s=al</cclmap_term>
+           <cclmap_ti>1=title s=pw t=l,r</cclmap_ti>
+           <sru>get</sru>
+           <transform>dc.xsl</transform>
+           <zurl>dfr.jstor.org/sru</zurl>
          </record>
+
+          <!-- cf connector -->
          <record>
            <piggyback>1</piggyback>
            <queryEncoding>UTF-8</queryEncoding>
       <fieldmap cql="dc.subject" ccl="su"/>
       <fieldmap cql="bath.isbn" ccl="isbn"/>
       <fieldmap cql="bath.issn" ccl="issn"/>
-      <fieldmap cql="bash.isbn" ccl="isbn"/><!-- ### deprecated erroneous synonym -->
-      <fieldmap cql="bash.issn" ccl="issn"/><!-- ### deprecated erroneous synonym -->
       <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>
+      <contentProxy
+         server="hpxy.indexdata.com"
+         tmp_file="/tmp/cf.XXXXXX.p"
+      />
+      <log apdu="true"/>
     </filter>
   </filters>
   <routes>  
         <message>F</message>
       </filter>
       <filter type="sru_z3950"/>
-      <filter type="record_transform">
-        <retrievalinfo   xmlns="http://indexdata.com/yaz" version="1.0">
-          <retrieval syntax="xml" name="usi">
-            <backend syntax="xml" name="pz2">
-              <xslt stylesheet="pz22usi.xsl"/>
-            </backend>
-          </retrieval>
-          <retrieval syntax="xml"/>
-          <retrieval syntax="json"/>
-          <retrieval syntax="usmarc"/>
-        </retrievalinfo>
-      </filter>
       <filter type="session_shared"/>
       <filter type="log">
         <message>B</message>