Added retrieval handling support in Generic Frontend Server to support
[yaz-moved-to-github.git] / etc / yazgfs.xml
1 <!-- $Id: yazgfs.xml,v 1.3 2006-05-07 14:48:24 adam Exp $ -->
2 <!-- sample YAZ GFS config file .. see 
3   http://indexdata.dk/yaz/doc/server.vhosts.tkl -->
4 <yazgfs>
5   <listen id="public1">tcp:@:9000</listen>
6   <server id="server1" listenref="public1">
7      <directory>.</directory> <!-- directory where backend is running -->
8      <config>zebra.cfg</config>
9      <cql2rpn>pqf.properties</cql2rpn>
10      <docpath>xsl</docpath>
11      <stylesheet>xsl/default.xsl</stylesheet>
12      <retrievalinfo>
13        <retrieval syntax="usmarc" schema="F"/>
14        <retrieval syntax="usmarc" schema="B"/>
15        <retrieval syntax="xml" schema="marcxml"
16                   identifier="info:srw/schema/1/marcxml-v1.1"
17                   backendsyntax="usmarc" backendschema="F">
18          <convert>
19            <marc inputformat="marc" outputformat="marcxml"
20                  inputcharset="marc-8"/>
21          </convert>
22        </retrieval>
23        <retrieval syntax="xml" schema="danmarc"
24                   backendsyntax="usmarc" backendschema="F">
25          <convert>
26            <marc inputformat="marc" outputformat="marcxchange"
27                  inputcharset="marc-8"/>
28          </convert>
29        </retrieval>
30        <retrieval syntax="xml" schema="dc"
31                   identifier="info:srw/schema/1/dc-v1.1"
32                   backendsyntax="usmarc" backendschema="F">
33          <convert>
34            <marc inputformat="marc" outputformat="marcxml"
35                  inputcharset="marc-8"/>
36            <xslt stylesheet="../etc/MARC21slim2DC.xsl"/>
37          </convert>
38        </retrieval>
39      </retrievalinfo>
40      <explain xmlns="http://explain.z3950.org/dtd/2.0/">
41         <serverInfo>
42            <host>myserver.org</host>
43            <port>9000</port>
44            <database>Default</database>
45         </serverInfo>
46     </explain>
47   </server>
48 </yazgfs>
49