Bug 30879: Handle index/sorting for UNIMARC
Same as before, but test with UNIMARC setup Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
c8c51867c4
commit
fbf1c32a6f
3 changed files with 10 additions and 0 deletions
|
@ -9,6 +9,9 @@
|
||||||
<index_control_field tag="001">
|
<index_control_field tag="001">
|
||||||
<target_index>Local-number:n</target_index>
|
<target_index>Local-number:n</target_index>
|
||||||
</index_control_field>
|
</index_control_field>
|
||||||
|
<index_control_field tag="001" zeropad="1">
|
||||||
|
<target_index>Local-number:s</target_index>
|
||||||
|
</index_control_field>
|
||||||
<!--record.abs line 26: melm 009 Identifier-standard:w,Identifier-standard:n-->
|
<!--record.abs line 26: melm 009 Identifier-standard:w,Identifier-standard:n-->
|
||||||
<index_control_field tag="009">
|
<index_control_field tag="009">
|
||||||
<target_index>Identifier-standard:w</target_index>
|
<target_index>Identifier-standard:w</target_index>
|
||||||
|
|
|
@ -51,6 +51,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
|
||||||
<z:index name="Local-number:n">
|
<z:index name="Local-number:n">
|
||||||
<xslo:value-of select="."/>
|
<xslo:value-of select="."/>
|
||||||
</z:index>
|
</z:index>
|
||||||
|
<z:index name="Local-number:s">
|
||||||
|
<xslo:value-of select="format-number(.,"00000000000")"/>
|
||||||
|
</z:index>
|
||||||
</xslo:template>
|
</xslo:template>
|
||||||
<xslo:template match="marc:controlfield[@tag='009']">
|
<xslo:template match="marc:controlfield[@tag='009']">
|
||||||
<z:index name="Identifier-standard:w">
|
<z:index name="Identifier-standard:w">
|
||||||
|
|
|
@ -225,6 +225,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
|
||||||
<xsl:template name="handle-one-index-control-field">
|
<xsl:template name="handle-one-index-control-field">
|
||||||
<xsl:variable name="offset"><xsl:value-of select="@offset"/></xsl:variable>
|
<xsl:variable name="offset"><xsl:value-of select="@offset"/></xsl:variable>
|
||||||
<xsl:variable name="length"><xsl:value-of select="@length"/></xsl:variable>
|
<xsl:variable name="length"><xsl:value-of select="@length"/></xsl:variable>
|
||||||
|
<xsl:variable name="zeropad"><xsl:value-of select="@zeropad"/></xsl:variable>
|
||||||
<xsl:variable name="indexes">
|
<xsl:variable name="indexes">
|
||||||
<xsl:call-template name="get-target-indexes"/>
|
<xsl:call-template name="get-target-indexes"/>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
@ -240,6 +241,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
|
||||||
<xsl:value-of select="$length"/>
|
<xsl:value-of select="$length"/>
|
||||||
<xsl:text>)</xsl:text>
|
<xsl:text>)</xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
<xsl:when test="@zeropad">
|
||||||
|
<xsl:text>format-number(.,"00000000000")</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:text>.</xsl:text>
|
<xsl:text>.</xsl:text>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
|
|
Loading…
Reference in a new issue