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

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2019-06-05 13:55:10 +00:00 committed by Martin Renvoize
parent 82dcb5cf54
commit 2e8a6a4b09
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -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>