Bug 14453: kohaidx is missing for id in authority-koha-indexdefs.xml

In authority-koha-indexdefs.xml, all tags use the namespace "kohaidx" except the tag "id".

When re-generating authority-zebra-indexdefs.xsl, the line :
  <xslo:variable name="idfield" select="normalize-space(marc:controlfield[@tag='001'])"/>
is modified :
  <xslo:variable name="idfield" select="normalize-space()"/>
This is an error.

This patch adds kohaidx namespace to correct.

Test plan :
- Without patch
- go to etc/zebradb/marc_defs/marc21/authorities/
- run : xslproc xsltproc ../../../xsl/koha-indexdefs-to-zebra.xsl authority-koha-indexdefs.xml > authority-zebra-indexdefs.xsl
- read authority-zebra-indexdefs.xsl
=> the line has changed : <xslo:variable name="idfield" select="normalize-space()"/>
- Apply patch
- go to etc/zebradb/marc_defs/marc21/authorities/
- run : xslproc xsltproc ../../../xsl/koha-indexdefs-to-zebra.xsl authority-koha-indexdefs.xml > authority-zebra-indexdefs.xsl
- read authority-zebra-indexdefs.xsl
=> the line has not changed
(same for unimarc flavor)

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
As Mirko mentioned, the xslt's now generate the facet-processing templates in
the authority xslt's too. They are harmless because we don't define facets
for authority records. If we did, it would be harmless too.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2365537eea)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Fridolin Somers 2015-06-24 16:06:05 +02:00 committed by Chris Cormack
parent 833e532597
commit 9dae698bb9
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ run the following command:
authority-zebra-indexdefs.xsl`
-->
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs">
<id>marc:controlfield[@tag='001']</id>
<kohaidx:id>marc:controlfield[@tag='001']</kohaidx:id>
<!-- variables -->
<kohaidx:var name="form_subdivision_subfield">v</kohaidx:var>
<kohaidx:var name="general_subdivision_subfield">x</kohaidx:var>

View File

@ -6,7 +6,7 @@ run the following command:
authority-zebra-indexdefs.xsl`
-->
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs">
<id>marc:controlfield[@tag='001']</id>
<kohaidx:id>marc:controlfield[@tag='001']</kohaidx:id>
<!-- Original record ID -->
<kohaidx:index_control_field tag="001">
<kohaidx:target_index>Local-Number:w</kohaidx:target_index>