Bugzilla – Attachment 90336 Details for
Bug 23053
Local-Number cannot be used for authority matching due to non-existence of 'phrase' index
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23053: Add phrase index to authority Local-Number
Bug-23053-Add-phrase-index-to-authority-Local-Numb.patch (text/plain), 2.47 KB, created by
Nick Clemens
on 2019-06-05 14:01:05 UTC
(
hide
)
Description:
Bug 23053: Add phrase index to authority Local-Number
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2019-06-05 14:01:05 UTC
Size:
2.47 KB
patch
obsolete
>From 7d36088b728969b8d10e7314a0c85d0ca8a1f615 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 5 Jun 2019 13:55:10 +0000 >Subject: [PATCH] Bug 23053: Add phrase index to authority Local-Number > >To test: > 1 - Define a matching rule for authorities on field 001 index Local-Number > 2 - In koha-conf.xml raise the zebra_loglevels > <zebra_loglevels>none,fatal,warn,request,info</zebra_loglevels> > 3 - Export some authorities using the tools->export data > 4 - Import those authorities > 5 - Note no matches found > 6 - View the zebra output log, you should see lots of error 114 > 7 - Apply patch > 8 - Copy the indexdefs files to the installed versions > 9 - Reapply matchign rules to staged files >10 - Matches should now be found >11 - Logs should not have errors >--- > etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml | 1 + > etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > >diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml >index 52652bc76a..39b46025f7 100644 >--- a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml >@@ -24,6 +24,7 @@ authority-zebra-indexdefs.xsl` > <!-- Original record ID --> > <kohaidx:index_control_field tag="001"> > <kohaidx:target_index>Local-Number:w</kohaidx:target_index> >+ <kohaidx:target_index>Local-Number:p</kohaidx:target_index> > <kohaidx:target_index>Local-Number:n</kohaidx:target_index> > <kohaidx:target_index>Local-Number:s</kohaidx:target_index> > </kohaidx:index_control_field> >diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl >index b4bf51dc90..a6e472c8f8 100644 >--- a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl >@@ -53,7 +53,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:template> > <xslo:template match="marc:controlfield[@tag='001']"> >- <z:index name="Local-Number:w Local-Number:n Local-Number:s"> >+ <z:index name="Local-Number:w Local-Number:n Local-Number:s Local-Number:p"> > <xslo:value-of select="."/> > </z:index> > </xslo:template> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23053
:
90336
|
90412
|
90446
|
90530