<?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">
<port>@:9000</port>
</filter>
<filter id="backend" type="zoom">
- <records>
- <record>
- <layer>
- <id>z-local</id>
- <zurl>localhost:9999/db01</zurl>
- <queryEncoding>iso-8859-1</queryEncoding>
- <elementSet>F</elementSet>
- <requestSyntax>MARC21</requestSyntax>
- <recordEncoding>MARC-8</recordEncoding>
- <transform>tmarc.xsl</transform>
- <authentication>a/b</authentication>
- <cclmap_term>u=1016 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_term>
- <cclmap_au>u=1003 2=3 s=al s=pw t=l,r 6=1</cclmap_au>
- <cclmap_ti>u=4 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_ti>
- <cclmap_su>u=21 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_su>
- </layer>
- </record>
- <record>
- <layer>
- <id>sru-local</id>
- <zurl>localhost:9999/db02</zurl>
- <sru>get</sru>
- <queryEncoding>iso-8859-1</queryEncoding>
- </layer>
- </record>
- <record>
- <layer>
- <id>z-unknown</id>
- <zurl>localhost:9999/unknown</zurl>
- <queryEncoding>iso-8859-1</queryEncoding>
- </layer>
- </record>
- </records>
+ <torus
+ url="http://usi.indexdata.com/torus2/%realm/records/?query=udb%3D%3D%db"
+ realm="searchable.usi-test"
+ 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>
+ <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>
+ <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_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:9998/db01</zurl>
+ <sortStrategy>embed</sortStrategy>
+ <sortmap_title>dc.title</sortmap_title>
+ </record>
+
+ <!-- jstor1 -->
+ <record>
+ <piggyback>1</piggyback>
+ <queryEncoding>UTF-8</queryEncoding>
+ <udb>jstor1</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>
+ <literalTransform><?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ This stylesheet expects oai/dc records
+-->
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:dcterms="http://purl.org/dc/terms/">
+
+ <xsl:output indent="yes"
+ method="xml"
+ version="1.0"
+ encoding="UTF-8"/>
+
+ <xsl:param name="medium" />
+
+ <xsl:template match="/*">
+ <pz:record>
+
+ <pz:metadata type="id">
+ <xsl:value-of select="dc:identifier"/>
+ </pz:metadata>
+
+ <xsl:for-each select="dc:title">
+ <pz:metadata type="title">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:for-each>
+
+ <xsl:for-each select="dc:date">
+ <pz:metadata type="date">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:for-each>
+
+ <xsl:for-each select="dc:subject">
+ <pz:metadata type="subject">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:for-each>
+
+ <xsl:for-each select="dc:creator">
+ <pz:metadata type="author">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:for-each>
+
+ <xsl:for-each select="dc:description">
+ <pz:metadata type="description">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:for-each>
+
+ <xsl:for-each select="dc:identifier">
+ <pz:metadata type="electronic-url">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:for-each>
+
+ <xsl:for-each select="dc:type">
+ <pz:metadata type="medium">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:for-each>
+
+ <xsl:for-each select="dcterms:bibliographicCitation">
+ <pz:metadata type="citation">
+ <xsl:value-of select="."/>
+ </pz:metadata>
+ </xsl:for-each>
+
+ <pz:metadata type="medium">
+ <xsl:value-of select="$medium" />
+ </pz:metadata>
+
+ </pz:record>
+ </xsl:template>
+
+ <xsl:template match="text()"/>
+
+</xsl:stylesheet></literalTransform>
+ <zurl>dfr.jstor.org/sru</zurl>
+ </record>
+
+ <!-- jstor2 -->
+ <record>
+ <piggyback>1</piggyback>
+ <queryEncoding>UTF-8</queryEncoding>
+ <udb>jstor2</udb>
+ <cclmap_term>s=al</cclmap_term>
+ <cclmap_ti>1=title s=pw t=l,r</cclmap_ti>
+ <elementSet>info:srw/schema/srw_jstor</elementSet>
+ <sru>get</sru>
+ <transform>jstor-pz2.xsl</transform>
+ <zurl>dfr.jstor.org/sru</zurl>
+ </record>
+
+
+ <!-- cf connector -->
+ <record>
+ <piggyback>1</piggyback>
+ <queryEncoding>UTF-8</queryEncoding>
+ <udb>cf-local</udb>
+ <cclmap_term>1=1016 s=al</cclmap_term>
+ <cclmap_ti>1=4 s=pw t=l,r</cclmap_ti>
+ <requestSyntax>xml</requestSyntax>
+ <transform>cf.xsl</transform>
+ <zurl>localhost:9999/db01</zurl>
+ <cfAuth>cfuser/cfpassword</cfAuth>
+ <cfProxy>localhost:3128</cfProxy>
+ <cfSubDB>mysub</cfSubDB>
+ </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="bath.isbn" ccl="isbn"/>
+ <fieldmap cql="bath.issn" ccl="issn"/>
+ <fieldmap cql="dc.date" ccl="date"/>
+ <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>
<route id="start">
<filter refid="frontend"/>
<filter type="log">
- <message>log</message>
+ <message>F</message>
+ </filter>
+ <filter type="sru_z3950"/>
+ <filter type="session_shared"/>
+ <filter type="log">
+ <message>B</message>
+ <category apdu="true"/>
</filter>
<filter refid="backend"/>
<filter type="bounce"/>