Added SRU holdings example config.
[metaproxy-moved-to-github.git] / etc / config-sru-holdings.xml
1 <?xml version="1.0"?>
2 <!-- $Id: config-sru-holdings.xml,v 1.1 2008-01-30 11:42:01 adam Exp $ -->
3
4 <!-- This an example of an SRU enabled server which allows holdings to
5 be fetched from Z39.50 OPAC records from a Z39.50 target. The virt_db
6 is NOT used and, thus, the database does not map to a Z93.50 target.
7 The Z39.50 is set, instead via the new x-target SRU parameter .
8 -->
9 <metaproxy 
10     xmlns="http://indexdata.com/metaproxy" 
11     version="1.0">
12   <start route="start"/>
13   <filters>
14     <filter id="frontend" type="frontend_net">
15       <threads>10</threads>
16       <port>@:9000</port>
17     </filter>
18     <filter id="sru" type="sru_z3950">
19       <database name="Default"/>
20     </filter>
21     <filter id="retrieve" type="record_transform">
22       <retrievalinfo  xmlns="http://indexdata.com/yaz" version="1.0">
23         <!-- Offer Dublin core from MARC -->
24         <retrieval syntax="xml" name="dc"
25                    identifier="info:srw/schema/1/dc-v1.1">
26           <backend syntax="usmarc" name="F">
27             <marc inputformat="marc" outputformat="marcxml"
28                   inputcharset="marc-8"/>
29             <xslt stylesheet="../xml/xslt/MARC21slim2DC.xsl"/>
30           </backend>
31         </retrieval>
32         <!-- Native OPAC.. Z39.50 only -->
33         <retrieval syntax="opac"/>
34         <!-- OPAC XML.. For SRU (recordSchema=opac) and Z39.50-->
35         <retrieval syntax="xml" name="opac">
36           <backend syntax="opac" name="F">
37           <marc inputformat="marc" outputformat="marcxml"
38                 inputcharset="marc-8"/>
39            <!-- XSLT transforms could be performed here -->
40           </backend>
41         </retrieval>
42       </retrievalinfo>
43     </filter>
44   </filters>
45   <routes>  
46     <route id="start">
47       <filter refid="frontend"/>
48       <filter type="log">
49         <message>HTTP</message>
50         <!-- <category apdu="true"/> -->
51       </filter>
52       <filter refid="sru"/>
53       <filter refid="retrieve"/>
54       <filter type="log">
55         <message>Z3950</message>
56       </filter>
57
58       <filter type="session_shared"/>
59       <filter type="z3950_client">
60         <timeout>30</timeout>
61       </filter>
62       <filter type="bounce"/>
63     </route>
64   </routes>
65 </metaproxy>
66