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