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:
parent
82dcb5cf54
commit
2e8a6a4b09
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue