Appendix E: Example YAZ Proxy Configuration config.xml

<?xml version="1.0"?>
<proxy xmlns="http://indexdata.dk/yazproxy/schema/0.9/"
 xmlns:xi="http://www.w3.org/2001/XInclude"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://indexdata.dk/yazproxy/schema/0.9/yazproxy.xsd"
  >
<!-- Config can be checked with xerces-c++: PParse -n -s config.xml  -->
<!-- *******************************************************
            NEOS
***********************************************************-->
<!-- Defines service available at http://192.168.213.128:9000/neos -->
<target name="neos" database="Unicorn" default="1">
    <url>ualapp.library.ualberta.ca:2200</url>
    <target-timeout>240</target-timeout>
    <client-timeout>180</client-timeout>

    <!-- List of supported attributes -->
    <!-- use attributes -->
    <attribute type="1" 
       value="1-9,13,16,20,21,29-31,33,50,51,54,58,60,62,63,1003,1004,1016"/>
    <attribute type="1" value="*" error="114"/>

    <!-- relation attributes -->
    <attribute type="2" value="1,2,3,4,5" />
    <attribute type="2" value="*" error="117" />

    <!-- position attributes -->
    <attribute type="3" value="1,3" />
    <attribute type="3" value="*" error="119" />

    <!-- structure attributes -->
    <attribute type="4" value="1,2,4,6,101" />
    <attribute type="4" value="*" error="118" />

    <!-- truncation attributes -->
    <attribute type="5" value="1,100" />
    <attribute type="5" value="*" error="120" />

    <!-- completeness attributes -->
    <attribute type="6" value="1,3" />
    <attribute type="6" value="*" error="122" />

    <!-- other attributes -->
    <attribute type="*" value="*" error="113" />

    <!-- list of allowed record syntaxes / schema -->
    <syntax type="usmarc"/>
    <syntax type="none"/>
    <syntax type="xml" marcxml="1"
      identifier="info:srw/schema/1/marcxml-v1.1" >
      <name>marcxml</name>
    </syntax>
    <syntax type="xml" marcxml="1" 
stylesheet="/usr/local/share/yazproxy/MARC21slim2SRWDC.xsl"
      identifier="info:srw/schema/1/dc-v1.1">
      <title>Dublin Core</title>
      <name>dc</name>
    </syntax>
    <syntax type="xml" marcxml="1" 
      stylesheet="/usr/local/share/yazproxy/MARC21slim2MODS3.xsl"
      identifier="http://www.loc.gov/mods/v3">
      <title>MODS</title>
      <name>mods</name>
    </syntax>

    <!-- reject other syntax requests with an error message -->
    <syntax type="*" error="238"/>

    <!-- defines a minimum number of spare sessions -->
    <preinit>0</preinit>

    <!-- explain record -->
    <explain xmlns="http://explain.z3950.org/dtd/2.0/">
      
      <!-- metainfo about this explain record -->
      <metaInfo>
        <dateModified>2009-08-29</dateModified>
      </metaInfo>

      <!-- server connection information -->
      <serverInfo>
        <!-- host should normally contain a FQDN, not IP -->
        <host>192.168.213.128</host>
        <port>9000</port>
        <database>neos</database>
      </serverInfo>
      
      <!-- database information -->
      <databaseInfo>
        <title lang="en" primary="true">Demonstration SRU Server
        </title>
        <description>An SRU interface to the records of the NEOS 
          consortium hosted at the University of Alberta.
        </description>
        <agents>
          <agent type="creator">T. Michael Silver, michael.silver@ualberta.ca 
          </agent>
        </agents>
        
        <!-- software information -->
        <implementation 
          identifier="http://www.indexdata.com/yazproxy" version="1.3.4">
          <agents>
            <agent type="vendor">Index Data</agent>
            <agent type="contact">David Dorman, dorman@indexdata.com</agent>
          </agents>
          <title>YAZ proxy</title>
        </implementation>

        <!-- links information -->
        <links>
          <link type="www">http://www.library.ualberta.ca/</link>
          <link type="z39.50">                 
            z3950s://ualapp.library.ualberta.ca:2200/Unicorn
          </link>
        </links>
      </databaseInfo>

      <!-- info about access points -->
      <indexInfo>
        <set identifier="info:srw/cql-context-set/1/cql-v1.1" name="cql" />
        <set identifier="info:srw/cql-context-set/1/dc-v1.1" name="dc" />
        <set identifier="http://zing.z3950.org/cql/bath/2.0/" name="bath" />
        <index id="1">
          <title>personalName</title>
          <map><name set="bath">personalName</name></map>
        </index>
        <index id="2">
          <title>corporateName </title>
          <map><name set="bath">corporateName</name></map>
        </index>
        <index id="3">
          <title>conferenceName</title>
          <map><name set="bath">conferenceName</name></map>
        </index>
        <index id="4">
          <title>title</title>
          <map><name set="dc">title</name></map>
          <map><name set="bath">titleKeyword</name></map>
        </index>
        <index id="5">
          <title>series</title>
          <map><name set="local">series</name></map>
        </index>
        <index id="6">
          <title>uniformTitle</title>
          <map><name set="bath">uniformTitle</name></map>
        </index>
        <index id="7">
          <title>isbn</title>
          <map><name set="bath">isbn</name></map>
        </index>
        <index id="8">
          <title>issn</title>
          <map><name set="bath">issn</name></map>
        </index>
        <index id="9">
          <title>lccn</title>
          <map><name set="local">lccn</name></map>
        </index>
        <index id="13">
          <title>ddc</title>
          <map><name set="local">ddc</name></map>
        </index>
        <index id="16">
          <title>lcc</title>
          <map><name set="local">lcc</name></map>
        </index>
        <index id="20">
          <title>localClass</title>
          <map><name set="local">localClass</name></map>
        </index>
        <index id="21">
          <title>subject</title>
          <map><name set="bath">subject</name></map>
          <map><name set="dc">subject</name></map>
        </index>
        <index id="29">
          <title>localSubject</title>
          <map><name set="local">localSubject</name></map>
        </index>
        <index id="30">
          <title>date</title>
          <map><name set="dc">date</name></map>
        </index>
        <index id="31">
          <title>pubDate</title>
          <map><name set="bath">pubDate</name></map>
        </index>
        <index id="33">
          <title>keyTitle</title>
          <map><name set="bath">keyTitle</name></map>
        </index>
        <index id="50">
          <title>govPubNum</title>
          <map><name set="local">govPubNum</name></map>
        </index>
        <index id="51">
          <title>musicNum</title>
          <map><name set="local">musicNum</name></map>
        </index>
        <index id="54">
          <title>language</title>
          <map><name set="dc">language</name></map>
        </index>
        <index id="58">
          <title>geographicName</title>
          <map><name set="bath">geographicName</name></map>
        </index>
        <index id="60">
          <title>coden</title>
          <map><name set="local">coden</name></map>
        </index>
        <index id="62">
          <title>description</title>
          <map><name set="dc">description</name></map>
        </index>
        <index id="63">
          <title>notes</title>
          <map><name set="bath">notes</name></map>
        </index>
        <index id="1003">
          <title>author</title>
          <map><name set="bath">author</name></map>
          <map><name set="dc">author</name></map>
          <map><name set="dc">creator</name></map>
        </index>
        <index id="1004">
          <title>authorPersonalName</title>
          <map><name set="local">authorPersonalName</name></map>
        </index>
      </indexInfo>

      <!-- information on record schema -->
      <schemaInfo>
        <schema identifier="info:srw/schema/1/marcxml-v1.1"
          sort="false" name="marcxml">
          <title>MARCXML</title>
        </schema>
  
        <schema identifier="info:srw/schema/1/dc-v1.1"
          sort="false" name="dc">
          <title>Dublin Core</title>
        </schema>
  
        <schema identifier="info:srw/schema/1/mods-v3.0"
          sort="false" name="mods">
          <title>MODS v3</title>
        </schema>
      </schemaInfo>

      <!-- server configuration information -->
      <configInfo>
        <default type="index">1016</default>
      </configInfo>

    </explain>

    <!-- location of file mapping PQF to CQL notation -->
    <cql2rpn>/usr/local/share/yazproxy/pqf.properties</cql2rpn>

  </target>
  
  <max-clients>20</max-clients>
  <!-- <max-connect>10</max-connect> -->
  <!-- <period-connect>10</period-connect> -->
  <!-- <limit-connect>5</limit-connect> -->
  <log>client-ip</log>
  <docpath>doc</docpath>
</proxy>

Previous: Mercury Results Next: Using the Project Files