Playing with the zebra...
authortipaul <tipaul>
Thu, 11 Aug 2005 16:12:47 +0000 (16:12 +0000)
committertipaul <tipaul>
Thu, 11 Aug 2005 16:12:47 +0000 (16:12 +0000)
commit9a508fe3df249798ee2f1ea5205bcbcbc2a14be4
tree27cddd053425d451c515588491e931ff33141ab6
parent19e29e9245d013511f1788a97c5ab549fb949605
Playing with the zebra...

* go to koha cvs home directory
* in misc/zebra there is a unimarc directory. I suggest that marc21 libraries create a marc21 directory
* put your zebra.cfg files here & create your database.
* from koha cvs home directory, ln -s misc/zebra/marc21 zebra (I mean create a symbolic link to YOUR zebra directory)
* now, everytime you add/modify a biblio/item your zebra DB is updated correctly.

NOTE :
* this uses a system call in perl. CPU consumming, but we are waiting for indexdata Perl/zoom
* deletion still not work
* UNIMARC zebra config files are provided in misc/zebra/unimarc directory. The most important line being :
in zebra.cfg :
recordId: (bib1,Local-number)
storeKeys:1

in .abs file :
elm 090            Local-number            -
elm 090/?          Local-number            -
elm 090/?/9        Local-number            !:w

(090$9 being the field mapped to biblio.biblionumber in Koha)
C4/Biblio.pm
misc/zebra/unimarc/unimarc.abs
misc/zebra/unimarc/zebra.cfg