[Koha-bugs] [Bug 15187] Adding 880 Fields to index-list in order to Increase Search for ALL non-latin Scripts
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 2 04:52:13 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15187
--- Comment #10 from David Cook <dcook at prosentient.com.au> ---
Oh... actually this looks like it might be very difficult to do within the
community model without making substantial changes to
./etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl and
./etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml. These files
were designed with too simple a logic in mind.
I'm sorry but I don't have the resources to make those systematic architectural
changes.
I'm planning instead to locally customize
./etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl to have
customized "match" attributes.
For example:
Replacing the following:
<xslo:template mode="index_data_field" match="marc:datafield[@tag='245']">
With the following:
<xslo:template mode="index_data_field" match="marc:datafield[@tag='245' or
(@tag='880' and (marc:subfield[@code=6 and substring(text(),1,3)='245']))]">
While at a glance it's a very simple change, it's impossible to make that
change using ./etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl and
./etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml to create
./etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list