Bug 7818: utility to generate DOM indexing configs
authorGalen Charlton <gmc@esilibrary.com>
Mon, 26 Mar 2012 05:05:58 +0000 (01:05 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 25 Jun 2012 21:15:28 +0000 (09:15 +1200)
commitc75eefd1aceacc31590d7b905a9472466c3e5246
tree1e18c93b8afec9857592aa769b3b9213810bce21
parent1d68c95a9fc88826783c231873296c52c53ac41b
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>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Koha/Indexer/Utils.pm [new file with mode: 0644]
misc/maintenance/make_zebra_dom_cfg_from_record_abs [new file with mode: 0755]