Windows: use Boost 1.59, msvc 14.0
[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         <retrieval syntax="xml" name="marcxml"
42                    identifier="info:srw/schema/1/marcxml-v1.1">
43           <backend syntax="usmarc" name="F">
44             <marc inputformat="marc" outputformat="marcxml"
45                   inputcharset="marc-8"/>
46           </backend>
47         </retrieval>
48       </retrievalinfo>
49     </filter>
50   </filters>
51   <routes>
52     <route id="start">
53       <filter refid="frontend"/>
54       <filter type="log">
55         <message>HTTP</message>
56         <!-- <category apdu="true"/> -->
57       </filter>
58       <filter refid="sru"/>
59       <filter type="log">
60         <message>FrontendZ3950</message>
61       </filter>
62       <filter refid="retrieve"/>
63
64       <filter type="session_shared"/>
65       <filter type="log">
66         <message>BackendZ3950</message>
67       </filter>
68       <filter type="z3950_client">
69         <timeout>30</timeout>
70       </filter>
71       <filter type="bounce"/>
72     </route>
73   </routes>
74 </metaproxy>
75