Bug 23000 - Running xsltproc for authority index definitions adds unwanted changes
Summary: Running xsltproc for authority index definitions adds unwanted changes
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Zebra (show other bugs)
Version: master
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-28 18:44 UTC by Katrin Fischer
Modified: 2019-05-28 18:44 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2019-05-28 18:44:47 UTC
When running the xsptproc process for generating the authority zebra index configuration, there are unwanted changes added to the files:

xsltproc /etc/koha/zebradb/xsl/koha-indexdefs-to-zebra.xsl authority-koha-indexdefs.xml > authority-zebra-indexdefs.xsl

Generates:

  <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
    <xslo:variable name="chop">
      <xslo:choose>
        <xslo:when test="not(number(@ind2))">0</xslo:when>
        <xslo:otherwise>
          <xslo:value-of select="number(@ind2)"/>
        </xslo:otherwise>
      </xslo:choose>
    </xslo:variable>
    <z:index name="Title:s">
      <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
    </z:index>
  </xslo:template>

I think this is only meant for the bibliographic file.