]> git.koha-community.org Git - koha.git/commit
Bug 7818: utility to generate DOM indexing configs
authorGalen Charlton <gmc@esilibrary.com>
Mon, 26 Mar 2012 05:05:58 +0000 (01:05 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Sat, 9 Jun 2012 09:44:00 +0000 (11:44 +0200)
commit4559fa3a27a9c9f8a0def5ecd180dc6deb5f4a63
tree38b16901c13381ba2981322b8a02c639491f51af
parentf3e516011181b4a850610b66d952ea1120a0dd90
Bug 7818: utility to generate DOM indexing configs

misc/maintenance/make_zebra_dom_cfg_from_record_abs:
  generate a DOM filter Zebra index config from a GRS-1 config

Given a Zebra record.abs file containing a set of index definitions for
Zebra's GRS-1 filter, write an equivalent DOM filter configuration.

To generate the XSLT that is to be used by Zebra, run something like
the following on the output of this utility:

xsltproc ZEBRA_CFG_DIR/xsl/koha-indexdefs-to-zebra.xsl \
  biblio-koha-indexdefs.xml \
  > ZEBRA_CFG_DIR/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl

The above example assumes that the output of the program was named
biblio-koha-indexdefs.xsl.

This commit also introduces Koha::Indexer::Utils, a new package for
misceallenous routines that support Koha's indexing definitions.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Koha/Indexer/Utils.pm [new file with mode: 0644]
misc/maintenance/make_zebra_dom_cfg_from_record_abs [new file with mode: 0755]