[Koha-bugs] [Bug 7818] support DOM mode for Zebra indexing of bibliographic records

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 6 19:45:07 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7818

--- Comment #29 from Paul Poulain <paul.poulain at biblibre.com> ---
I can't make it work properly, so I need to understand what I made wrong...

Here are the steps I followed on an existing (UNIMARC) setup:
 * Edit etc/zebradb/zebra-biblios.cfg file:
    - update profilePath: line by appending xsl path: 
        :$KOHA/etc/zebradb/xsl
    - comment the following line:
         marcxml.recordType:grs.sgml
    - add after the commented line:
         recordtype: dom.$KOHA/etc/zebradb/biblios/etc/dom-config.xml
         marcxml.recordtype: dom.$KOHA/etc/zebradb/biblios/etc/dom-config.xml
         iso2709.recordtype:
dom.$KOHA/etc/zebradb/biblios/etc/dom-config-marc.xml
    - if your $KOHA setup is not where your koha code is, you must copy 2 new
files: cp $KOHAGIT/etc/zebradb/biblios/etc/*.xml $KOHA/etc/zebradb/biblios/etc/
    - generate xsl configuration: 
        $KOHA/misc/maintenance/make_zebra_dom_cfg_from_record_abs --input
$ZEBRADIR/zebradb/marc_defs/unimarc/biblios/record.abs --output
$ZEBRADIR/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xml
        xsltproc $ZEBRADIR/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl
$ZEBRADIR/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xml
>zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl

Once I've made that, if I try to reindex:
19:41 ~/koha.dev/installs/koha-community/etc$
~/koha.dev/koha-community/misc/migration_tools/rebuild_zebra.pl -b -v
--offset=0 --length=10 -r -x -k
Zebra configuration information
================================
Zebra biblio directory      =
/home/paul/koha.dev/installs/koha-community/var/lib/zebradb/biblios
Zebra authorities directory =
/home/paul/koha.dev/installs/koha-community/var/lib/zebradb/authorities
Koha directory              = /home/paul/koha.dev/koha-community
BIBLIONUMBER in :     001$@
BIBLIOITEMNUMBER in : 090$a
================================
skipping authorities
====================
exporting biblio
====================
1.........
Records exported: 10
====================
REINDEXING zebra
====================
Entity: line 741: parser error : Extra content at the end of the document
<record
^
19:43:10-06/06 zebraidx(12791) [warn] extract error: generic
====================
CLEANING
====================


I've checked that the XML file looks good, it does. If I remove the -x flag, it
works.

Any help/hint welcomed, I spent a lot of time on this setup, and will continue

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list