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.