Bug 7832

Summary: Server Z39.50 for Unimarc
Product: Koha Reporter: Serhij Dubyk <dubyk>
Component: Z39.50 / SRU / OpenSearch ServersAssignee: Galen Charlton <gmcharlt>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P5 - low CC: dubyk, f.demians, katrin.fischer
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 3087    
Bug Blocks:    

Description Serhij Dubyk 2012-03-27 15:35:54 UTC
I try to setup Z39-50 server for our library with Unimarc-records.
But in result was broken a normal search.

Step by step:

1) Used links as guide:

* [Koha-patches] [PATCH] Bug #3087 - Improve z39.50 server Unimarc support
(http://lists.koha-community.org/pipermail/koha-patches/2009-April/008573.html)

* how to use z39.50 ? 
(http://koha.1045719.n5.nabble.com/how-to-use-z39-50-td3057672.html)

* [Zebralist] Problems with Koha/Zebra as Z39.50 server
(http://lists.indexdata.dk/pipermail/zebralist/2009-March/002138.html)

* Troubleshooting Koha as a Z39.50 server
(http://wiki.koha-community.org/wiki/Troubleshooting_Koha_as_a_Z39.50_server)

2) In /etc/koha/koha-conf.xml uncomment
<listen id="publicserver" >tcp:@:9998</listen>

and 

<server id="publicserver"  listenref="publicserver">.
...
</server>

and

<serverinfo id="publicserver">
...
</serverinfo>


3) Also in file /etc/koha/koha-conf.xml
replace usmarc -> unimarc

4) Create /etc/koha/zebradb/etc/unimarc.mar
with content:

name unimarc
reference Unimarc

5) Replace in  /etc/koha/zebradb/marc_defs/unimarc/biblios/record.abs
as follows:

name unimarc
...
marc unimarc.mar

6) /etc/init.d/koha-zebra-demon restart

7) yaz-client -c /etc/koha/zebradb/ccl.properties localhost:9998/biblios
Connecting...OK.
Sent initrequest.
Connection accepted by v3 target.
ID     : 81
Name   : Zebra Information Server/GFS/YAZ
Version: 4.0.11 e8ca42e680c5e5a644481e5d0b75a0e57c6d3e92
Options: search present delSet triggerResourceCtrl scan sort extendedServices namedResultSets
Elapsed: 0.001831

7) Look: http://koha.tntu.edu.ua:9998/biblios

8) Try to test with http://www.loc.gov/z3950/test.html
(Enter Term 1: .... [Any])
If port 9998 opened in firewall, we will see something:

Search Results
924 records matched your query [2005].

9) But in OPAC we have

Error:
Can't call method "raw" on an undefined value at /usr/share/koha/lib/C4/Search.pm line 460. 

on any search.
Comment 1 Katrin Fischer 2014-11-02 10:46:04 UTC
I believe this was a configuration issue, as we know that Z39.50-download for UNIMARC libraries works.