[Koha-patches] [PATCH] [SIGNED-OFF] Add entries so Z39.50 public server works
Magnus Enger
magnus at enger.priv.no
Tue May 3 08:33:39 CEST 2011
From: Tomas Cohen Arazi <tomascohen at gmail.com>
I added a comment on the file so the user uncomments the appropriate koha-conf.xml sections.
To+
Signed-off-by: Magnus Enger <magnus at enger.priv.no>
---
etc/koha-conf.xml | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 81 insertions(+), 2 deletions(-)
diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml
index 819cc55..686a15b 100644
--- a/etc/koha-conf.xml
+++ b/etc/koha-conf.xml
@@ -11,8 +11,13 @@
<listen id="biblioserver" >tcp:localhost:9998/bibliosocket</listen>
<listen id="authorityserver" >tcp:localhost:9999/authoritysocket</listen>
-->
-<!-- public server runs on tcp -->
-<!-- <listen id="publicserver" >tcp:@:9999</listen> -->
+
+<!-- Uncomment the following entry if you want to run the public Z39.50 server.
+ Also uncomment the <server> and <serverinfo> sections for id 'publicserver'
+ under PUBLICSERVER'S BIBLIOGRAPHIC RECORDS title-->
+<!--
+<listen id="publicserver" >tcp:@:__ZEBRA_SRU_BIBLIOS_PORT__</listen>
+-->
<!-- Settings for special biblio server instance for PazPar2.
Because PazPar2 only connects to a Z39.50 server using TCP/IP,
@@ -173,6 +178,80 @@ __PAZPAR2_TOGGLE_XML_POST__
<password>__ZEBRA_PASS__</password>
</serverinfo>
+<!-- PUBLICSERVER'S BIBLIOGRAPHIC RECORDS -->
+<!--
+<server id="publicserver" listenref="publicserver">
+ <directory>__ZEBRA_DATA_DIR__/biblios</directory>
+ <config>__ZEBRA_CONF_DIR__/zebra-biblios.cfg</config>
+ <cql2rpn>__ZEBRA_CONF_DIR__/pqf.properties</cql2rpn>
+ <retrievalinfo>
+ <retrieval syntax="usmarc" name="F"/>
+ <retrieval syntax="usmarc" name="B"/>
+ <retrieval syntax="xml" name="F"/>
+ <retrieval syntax="xml" name="B"/>
+ <retrieval syntax="xml" name="marcxml"
+ identifier="info:srw/schema/1/marcxml-v1.1">
+ <backend syntax="usmarc" name="F">
+ <marc inputformat="marc" outputformat="marcxml"
+ inputcharset="utf-8"/>
+ </backend>
+ </retrieval>
+ <retrieval syntax="xml" name="dc">
+ <backend syntax="usmarc" name="F">
+ <marc inputformat="marc" outputformat="marcxml"
+ inputcharset="utf-8"/>
+ <xslt stylesheet="__INTRANET_TMPL_DIR__/prog/en/xslt/MARC21slim2DC.xsl"/>
+ </backend>
+ </retrieval>
+ <retrieval syntax="xml" name="mods">
+ <backend syntax="usmarc" name="F">
+ <marc inputformat="marc" outputformat="marcxml"
+ inputcharset="utf-8"/>
+ <xslt stylesheet="__INTRANET_TMPL_DIR__/prog/en/xslt/MARC21slim2MODS.xsl"/>
+ </backend>
+ </retrieval>
+ <retrieval syntax="xml" name="rdfdc">
+ <backend syntax="usmarc" name="F">
+ <marc inputformat="marc" outputformat="marcxml"
+ inputcharset="utf-8"/>
+ <xslt stylesheet="__INTRANET_TMPL_DIR__/prog/en/xslt/MARC21slim2RDFDC.xsl"/>
+ </backend>
+ </retrieval>
+ <retrieval syntax="xml" name="rss2">
+ <backend syntax="usmarc" name="F">
+ <marc inputformat="marc" outputformat="marcxml"
+ inputcharset="utf-8"/>
+ <xslt stylesheet="__INTRANET_TMPL_DIR__/prog/en/xslt/MARC21slim2RSS2.xsl"/>
+ </backend>
+ </retrieval>
+ <retrieval syntax="xml" name="utils">
+ <backend syntax="usmarc" name="F">
+ <marc inputformat="marc" outputformat="marcxml"
+ inputcharset="utf-8"/>
+ <xslt stylesheet="__INTRANET_TMPL_DIR__/prog/en/xslt/MARC21slimUtils.xsl"/>
+ </backend>
+ </retrieval>
+ </retrievalinfo>
+ <xi:include href="__KOHA_CONF_DIR__/zebradb/explain-biblios.xml"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:fallback>
+ <explain xmlns="http://explain.z3950.org/dtd/2.0/">
+ <serverInfo>
+ <host>__ZEBRA_SRU_HOST__</host>
+ <port>__ZEBRA_SRU_BIBLIOS_PORT__</port>
+ <database>biblios</database>
+ </serverInfo>
+ </explain>
+ </xi:fallback>
+ </xi:include>
+</server>
+<serverinfo id="publicserver">
+ <ccl2rpn>__ZEBRA_CONF_DIR__/ccl.properties</ccl2rpn>
+ <user>__ZEBRA_USER__</user>
+ <password>__ZEBRA_PASS__</password>
+</serverinfo>
+-->
+
<!-- ADDITIONAL KOHA CONFIGURATION DIRECTIVE -->
<!-- db_scheme should follow the DBD driver name -->
<!-- port info: mysql:3306 Pg:5432 (5433 on Debian) -->
--
1.7.4.1
More information about the Koha-patches
mailing list