|
Lines 250-256
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 250 |
<xsl:text>']</xsl:text> |
250 |
<xsl:text>']</xsl:text> |
| 251 |
</xsl:attribute> |
251 |
</xsl:attribute> |
| 252 |
<xsl:for-each select="key('index_subfields_tag', @tag)"> |
252 |
<xsl:for-each select="key('index_subfields_tag', @tag)"> |
| 253 |
<xsl:call-template name="handle-one-index-subfields"/> |
253 |
<xsl:choose> |
|
|
254 |
<xsl:when test="@condition"> |
| 255 |
<xslo:if> |
| 256 |
<xsl:attribute name="test"> |
| 257 |
<xsl:value-of select="@condition"/> |
| 258 |
</xsl:attribute> |
| 259 |
<xsl:call-template name="handle-one-index-subfields" /> |
| 260 |
</xslo:if> |
| 261 |
</xsl:when> |
| 262 |
<xsl:otherwise> |
| 263 |
<xsl:call-template name="handle-one-index-subfields" /> |
| 264 |
</xsl:otherwise> |
| 265 |
</xsl:choose> |
| 254 |
</xsl:for-each> |
266 |
</xsl:for-each> |
| 255 |
</xslo:template> |
267 |
</xslo:template> |
| 256 |
</xsl:for-each> |
268 |
</xsl:for-each> |
|
Lines 262-295
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 262 |
<xsl:variable name="indexes"> |
274 |
<xsl:variable name="indexes"> |
| 263 |
<xsl:call-template name="get-target-indexes"/> |
275 |
<xsl:call-template name="get-target-indexes"/> |
| 264 |
</xsl:variable> |
276 |
</xsl:variable> |
| 265 |
<xslo:for-each select="marc:subfield"> |
277 |
|
| 266 |
<xslo:if> |
278 |
<xslo:for-each select="marc:subfield"> |
| 267 |
<xsl:attribute name="test"> |
279 |
<xslo:if> |
| 268 |
<xsl:text>contains('</xsl:text> |
280 |
<xsl:attribute name="test"> |
| 269 |
<xsl:value-of select="@subfields"/> |
281 |
<xsl:text>contains('</xsl:text> |
| 270 |
<xsl:text>', @code)</xsl:text> |
282 |
<xsl:value-of select="@subfields"/> |
| 271 |
</xsl:attribute> |
283 |
<xsl:text>', @code)</xsl:text> |
| 272 |
<z:index> |
284 |
</xsl:attribute> |
| 273 |
<xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute> |
285 |
<z:index> |
| 274 |
<xslo:value-of> |
286 |
<xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute> |
| 275 |
<xsl:attribute name="select"> |
287 |
<xslo:value-of> |
| 276 |
<xsl:choose> |
288 |
<xsl:attribute name="select"> |
| 277 |
<xsl:when test="@length"> |
289 |
<xsl:choose> |
| 278 |
<xsl:text>substring(., </xsl:text> |
290 |
<xsl:when test="@length"> |
| 279 |
<xsl:value-of select="$offset + 1" /> |
291 |
<xsl:text>substring(., </xsl:text> |
| 280 |
<xsl:text>, </xsl:text> |
292 |
<xsl:value-of select="$offset + 1" /> |
| 281 |
<xsl:value-of select="$length"/> |
293 |
<xsl:text>, </xsl:text> |
| 282 |
<xsl:text>)</xsl:text> |
294 |
<xsl:value-of select="$length"/> |
| 283 |
</xsl:when> |
295 |
<xsl:text>)</xsl:text> |
| 284 |
<xsl:otherwise> |
296 |
</xsl:when> |
| 285 |
<xsl:text>.</xsl:text> |
297 |
<xsl:otherwise> |
| 286 |
</xsl:otherwise> |
298 |
<xsl:text>.</xsl:text> |
| 287 |
</xsl:choose> |
299 |
</xsl:otherwise> |
| 288 |
</xsl:attribute> |
300 |
</xsl:choose> |
| 289 |
</xslo:value-of> |
301 |
</xsl:attribute> |
| 290 |
</z:index> |
302 |
</xslo:value-of> |
| 291 |
</xslo:if> |
303 |
</z:index> |
| 292 |
</xslo:for-each> |
304 |
</xslo:if> |
|
|
305 |
</xslo:for-each> |
| 293 |
</xsl:template> |
306 |
</xsl:template> |
| 294 |
|
307 |
|
| 295 |
<xsl:template name="handle-index-facets"> |
308 |
<xsl:template name="handle-index-facets"> |
| 296 |
- |
|
|