Configuring Koha to expose Z39.50/SRU services
Hi, all! According to the documentation at http://koha.org/documentation/faq/could-someone-tell-me-the-exact-steps-i-ne... configuring Koha/Zebra to expose Z39.50/SRU services should be as simple as changing <!-- <listen id="publicserver" >tcp:@:9999</listen> --> to <listen id="publicserver" >tcp:@:9999</listen> in koha-conf.xml. In my experience it has not been that simple. Just doing the above gives a 404 not found message from Zebra. What I have found to work is to copy the server- and serverinfo-elements for biblioserver, and replacing biblioserver with publicserver, so I get both <server id="biblioserver" listenref="biblioserver"> <directory>/var/lib/koha/zebradb/biblios</directory> <config>/etc/koha/zebradb/zebra-biblios.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn> <!-- <docpath>xsl</docpath> --> <!-- <stylesheet>xsl/default.xsl</stylesheet> --> <!-- <maximumrecordsize>2000000</maximumrecordsize> --> <retrievalinfo> ... </retrievalinfo> <xi:include href="/etc/koha/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>localhost</host> <port>9998</port> <database>biblios</database> </serverInfo> </explain> </xi:fallback> </xi:include> </server> <serverinfo id="biblioserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>****</user> <password>****</password> </serverinfo> and <server id="publicserver" listenref="publicserver"> <directory>/var/lib/koha/zebradb/biblios</directory> <config>/etc/koha/zebradb/zebra-biblios.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn> <!-- <docpath>xsl</docpath> --> <!-- <stylesheet>xsl/default.xsl</stylesheet> --> <!-- <maximumrecordsize>2000000</maximumrecordsize> --> <retrievalinfo> ... </retrievalinfo> <xi:include href="/etc/koha/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>localhost</host> <port>9998</port> <database>biblios</database> </serverInfo> </explain> </xi:fallback> </xi:include> </server> <serverinfo id="publicserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>****</user> <password>****</password> </serverinfo> (Here are the same examples with a bit of formatting, if the above fails: http://wiki.biblab.no/index.php/Hvordan_aktivisere_Z39.50_og_SRU_i_Koha) Has anyone else had the same experience, or found some other workaround? Regards, Magnus libriotech.no
Thank you for sharing Magnus! That did the trick (Koha 3.0.5)!! Greetings, Stefan Magnus Enger schrieb:
Hi, all!
According to the documentation at http://koha.org/documentation/faq/could-someone-tell-me-the-exact-steps-i-ne... configuring Koha/Zebra to expose Z39.50/SRU services should be as simple as changing
<!-- <listen id="publicserver" >tcp:@:9999</listen> -->
to
<listen id="publicserver" >tcp:@:9999</listen>
in koha-conf.xml.
In my experience it has not been that simple. Just doing the above gives a 404 not found message from Zebra.
What I have found to work is to copy the server- and serverinfo-elements for biblioserver, and replacing biblioserver with publicserver, so I get both
<server id="biblioserver" listenref="biblioserver"> <directory>/var/lib/koha/zebradb/biblios</directory> <config>/etc/koha/zebradb/zebra-biblios.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn> <!-- <docpath>xsl</docpath> --> <!-- <stylesheet>xsl/default.xsl</stylesheet> --> <!-- <maximumrecordsize>2000000</maximumrecordsize> --> <retrievalinfo> ... </retrievalinfo> <xi:include href="/etc/koha/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>localhost</host> <port>9998</port> <database>biblios</database> </serverInfo> </explain> </xi:fallback> </xi:include> </server> <serverinfo id="biblioserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>****</user> <password>****</password> </serverinfo>
and
<server id="publicserver" listenref="publicserver"> <directory>/var/lib/koha/zebradb/biblios</directory> <config>/etc/koha/zebradb/zebra-biblios.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn> <!-- <docpath>xsl</docpath> --> <!-- <stylesheet>xsl/default.xsl</stylesheet> --> <!-- <maximumrecordsize>2000000</maximumrecordsize> --> <retrievalinfo> ... </retrievalinfo> <xi:include href="/etc/koha/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>localhost</host> <port>9998</port> <database>biblios</database> </serverInfo> </explain> </xi:fallback> </xi:include> </server> <serverinfo id="publicserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>****</user> <password>****</password> </serverinfo>
(Here are the same examples with a bit of formatting, if the above fails: http://wiki.biblab.no/index.php/Hvordan_aktivisere_Z39.50_og_SRU_i_Koha)
Has anyone else had the same experience, or found some other workaround?
Regards, Magnus libriotech.no _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Hi all, well with this method it works to expose Koha by SRU / Z39.50 but the search in the Koha OPAC (Extranet and Intranet) is down. There should be a way to make both services available ... Thank you, Stefan Magnus Enger schrieb:
Hi, all!
According to the documentation at http://koha.org/documentation/faq/could-someone-tell-me-the-exact-steps-i-ne... configuring Koha/Zebra to expose Z39.50/SRU services should be as simple as changing
<!-- <listen id="publicserver" >tcp:@:9999</listen> -->
to
<listen id="publicserver" >tcp:@:9999</listen>
in koha-conf.xml.
In my experience it has not been that simple. Just doing the above gives a 404 not found message from Zebra.
What I have found to work is to copy the server- and serverinfo-elements for biblioserver, and replacing biblioserver with publicserver, so I get both
<server id="biblioserver" listenref="biblioserver"> <directory>/var/lib/koha/zebradb/biblios</directory> <config>/etc/koha/zebradb/zebra-biblios.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn> <!-- <docpath>xsl</docpath> --> <!-- <stylesheet>xsl/default.xsl</stylesheet> --> <!-- <maximumrecordsize>2000000</maximumrecordsize> --> <retrievalinfo> ... </retrievalinfo> <xi:include href="/etc/koha/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>localhost</host> <port>9998</port> <database>biblios</database> </serverInfo> </explain> </xi:fallback> </xi:include> </server> <serverinfo id="biblioserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>****</user> <password>****</password> </serverinfo>
and
<server id="publicserver" listenref="publicserver"> <directory>/var/lib/koha/zebradb/biblios</directory> <config>/etc/koha/zebradb/zebra-biblios.cfg</config> <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn> <!-- <docpath>xsl</docpath> --> <!-- <stylesheet>xsl/default.xsl</stylesheet> --> <!-- <maximumrecordsize>2000000</maximumrecordsize> --> <retrievalinfo> ... </retrievalinfo> <xi:include href="/etc/koha/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>localhost</host> <port>9998</port> <database>biblios</database> </serverInfo> </explain> </xi:fallback> </xi:include> </server> <serverinfo id="publicserver"> <ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn> <user>****</user> <password>****</password> </serverinfo>
(Here are the same examples with a bit of formatting, if the above fails: http://wiki.biblab.no/index.php/Hvordan_aktivisere_Z39.50_og_SRU_i_Koha)
Has anyone else had the same experience, or found some other workaround?
Regards, Magnus libriotech.no _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On 7 March 2010 08:57, stefan <herrkandera@gmx.ch> wrote:
Hi all,
well with this method it works to expose Koha by SRU / Z39.50 but the search in the Koha OPAC (Extranet and Intranet) is down. There should be a way to make both services available ...
Thank you, Stefan
I have both running as long as they are both configured in the conf, the public server and the one Koha uses, it works. (They cant both run on the same port of course) Chris
participants (3)
-
Chris Cormack -
Magnus Enger -
stefan