[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Koha-devel] koha 3.0 & zebra
From: |
Henri-Damien LAURENT |
Subject: |
Re: [Koha-devel] koha 3.0 & zebra |
Date: |
Fri, 16 Feb 2007 10:56:21 +0100 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20061206) |
long_sam.tw a écrit :
> hi,programers
>
> i set up rel_3_0 and use zebra(unimarc),
> my opac operl script & opac_tmpl(prog) use rel_3_0.
> database execute updatedatabase.
>
> koha.xml
> ---------------------------------------------
> <yazgfs>
> <listen id="biblioserver" >tcp:@:9900</listen>
> <server id="biblioserver" listenref="biblioserver">
> <directory>/home/zebra/zebradb/biblios</directory>
>
> <config>/home/laxendion/tools/cvs/dev_week/koha/zebraplugin/etc/zebra.cfg</config>
> <cql2rpn>/home/laxendion/tools/cvs/dev_week/koha/zebraplugin/etc/pqf.properties</cql2rpn>
> </server>
> <config>
> <database>Koha</database>
> -------------------------------------------
> it means mysql database name or zebra databae name.
> i can't sure which that?
>
mysqldatabase.
> --------------------------------------------
> <hostname>localhost</hostname>
> <user>koha</user>
> <pass>dion0104</pass>
> <biblioserver>default</biblioserver>
> <biblioservershadow>0</biblioservershadow>
> <authorityserver>default</authorityserver>
> <authorityservershadow>0</authorityservershadow>
> <intranetdir>/usr/loca/koha/intranet</intranetdir>
> <opacdir>/usr/local/koha/opac</opacdir>
> <opachtdocs>/usr/local/koha/opac/htdocs/opac-tmpl</opachtdocs>
> <intrahtdocs>/usr/local/koha/intranet/htdocs/intranet-tmpl</intrahtdocs>
> <includes>/usr/local/koha/intranet/htdocs/intranet-tmpl/default/en/includes/</includes>
> </config>
> </yazgfs>
> -----------------------------------------------------------------------
> i import some biblios. i use yaz-client
>
> address@hidden:~# yaz-client @:9900/biblios
> Connecting...OK.
> Sent initrequest.
> Connection accepted by v3 target.
> ID : 81
> Name : Zebra Information Server/GFS/YAZ
> Version: Zebra 2.0.6/1.108/2.1.46
> Options: search present delSet triggerResourceCtrl scan sort extendedServices
> namedResultSets
> Elapsed: 0.052761
> Z> find @attr 1=1016 perl
> Sent searchRequest.
> Received SearchResponse.
> Search was a success.
> Number of hits: 1, setno 1
> SearchResult-1: term=perl cnt=1
> records returned: 0
> Elapsed: 0.208630
> ----------------------------------------------------
> show 1
> Z> show 1
> Sent presentRequest (1+1).
> Records: 1
> [biblios]Record type: USmarc
> 01051 2200217 4500
> 010 $a 96007074 //r96
> 020 $a 1571690581
> 082 $a 005.13/3
> 090 $c 15 $d 15
> 100 1 $a Glover, Mike.
> 245 10 $a Perl 5 how-to / $c Mike Glover, Aidan Humphreys, Ed Weiss.
> 260 $a Corte Madera, Calif. : $b Waite Group Press, $c c1996.
> 300 $a xxiii, 860 p. : $b ill. ; $c 23 cm. + $e 1 computer laser optical
> disc (4 3/4 in.)
> 500 $a "The definitive perl programming problem-solver."--Cover.
> 538 $a System requirements for accompanying computer disc: IBM PC or UNIX
> workstation; DOS 3.3 or greater; Windows 3.1 or greater; Windows 95;
> UNIX-compatible operating system with Perl port; recommended: CD-ROM drive
> and Internet access.
> 650 0 $a Perl (Computer program language)
> 650 0 $a Object-oriented programming (Computer science)
> 700 1 $a Humphreys, Aidan.
> 700 1 $a Weiss, Ed.
> 942 $c BOOK
> 995 $b 輔仁大學圖書資訊學系資訊組織 $c 輔仁大學圖書資訊學系資訊組織 $e 西文書庫 $f 11 $j 11 $k 123.34 $o 0
> $9 12
>
> nextResultSetPosition = 2
> Elapsed: 0.052356
> --------------------------------------------------------------------------
> and then my koha.conf
>
>
koha.conf is not needed any longer.
KOHA_CONF must contain path to koha.xml !!!
It now decodes xml file to get values.
> i run opac-search.pl but it can't work
>
> error log
> --------------------------------------------
> error :
>
> Can't call method "_conn" on an undefined value at
> /usr/local/lib/perl/5.8.7/ZOOM.pm line 123.
>
> [Fri Feb 16 09:43:10 2007] [error] [client 127.0.0.1] Start tag expected, '<'
> not found at /usr/local/lib/perl/5.8.7/XML/LibXML/SAX.pm line 64
> [Fri Feb 16 09:43:10 2007] [error] [client 127.0.0.1] at
> /usr/local/share/perl/5.8.7/XML/Simple.pm line 291
> -----------------------------------------------------
>
>
> laxendion
>
>
Happy Koha-ing.
--
Henri-Damien LAURENT