|
Lines 253-258
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 253 |
</xsl:template> |
253 |
</xsl:template> |
| 254 |
|
254 |
|
| 255 |
<xsl:template name="handle-one-index-subfields"> |
255 |
<xsl:template name="handle-one-index-subfields"> |
|
|
256 |
<xsl:variable name="offset"><xsl:value-of select="@offset"/></xsl:variable> |
| 257 |
<xsl:variable name="length"><xsl:value-of select="@length"/></xsl:variable> |
| 256 |
<xsl:variable name="indexes"> |
258 |
<xsl:variable name="indexes"> |
| 257 |
<xsl:call-template name="get-target-indexes"/> |
259 |
<xsl:call-template name="get-target-indexes"/> |
| 258 |
</xsl:variable> |
260 |
</xsl:variable> |
|
Lines 265-271
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 265 |
</xsl:attribute> |
267 |
</xsl:attribute> |
| 266 |
<z:index> |
268 |
<z:index> |
| 267 |
<xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute> |
269 |
<xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute> |
| 268 |
<xslo:value-of select="."/> |
270 |
<xslo:value-of> |
|
|
271 |
<xsl:attribute name="select"> |
| 272 |
<xsl:choose> |
| 273 |
<xsl:when test="@length"> |
| 274 |
<xsl:text>substring(., </xsl:text> |
| 275 |
<xsl:value-of select="$offset + 1" /> |
| 276 |
<xsl:text>, </xsl:text> |
| 277 |
<xsl:value-of select="$length"/> |
| 278 |
<xsl:text>)</xsl:text> |
| 279 |
</xsl:when> |
| 280 |
<xsl:otherwise> |
| 281 |
<xsl:text>.</xsl:text> |
| 282 |
</xsl:otherwise> |
| 283 |
</xsl:choose> |
| 284 |
</xsl:attribute> |
| 285 |
</xslo:value-of> |
| 269 |
</z:index> |
286 |
</z:index> |
| 270 |
</xslo:if> |
287 |
</xslo:if> |
| 271 |
</xslo:for-each> |
288 |
</xslo:for-each> |
| 272 |
- |
|
|