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 263-335
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
263 |
<xsl:call-template name="get-target-indexes"/> |
275 |
<xsl:call-template name="get-target-indexes"/> |
264 |
</xsl:variable> |
276 |
</xsl:variable> |
265 |
|
277 |
|
266 |
<xsl:choose> |
278 |
<xslo:for-each select="marc:subfield"> |
267 |
<xsl:when test="@condition"> |
279 |
<xslo:if> |
268 |
<xslo:if> |
280 |
<xsl:attribute name="test"> |
269 |
<xsl:attribute name="test"> |
281 |
<xsl:text>contains('</xsl:text> |
270 |
<xsl:value-of select="@condition"/> |
282 |
<xsl:value-of select="@subfields"/> |
271 |
</xsl:attribute> |
283 |
<xsl:text>', @code)</xsl:text> |
272 |
<xslo:for-each select="marc:subfield"> |
284 |
</xsl:attribute> |
273 |
<xslo:if> |
285 |
<z:index> |
274 |
<xsl:attribute name="test"> |
286 |
<xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute> |
275 |
<xsl:text>contains('</xsl:text> |
287 |
<xslo:value-of> |
276 |
<xsl:value-of select="@subfields"/> |
288 |
<xsl:attribute name="select"> |
277 |
<xsl:text>', @code)</xsl:text> |
289 |
<xsl:choose> |
278 |
</xsl:attribute> |
290 |
<xsl:when test="@length"> |
279 |
<z:index> |
291 |
<xsl:text>substring(., </xsl:text> |
280 |
<xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute> |
292 |
<xsl:value-of select="$offset + 1" /> |
281 |
<xslo:value-of> |
293 |
<xsl:text>, </xsl:text> |
282 |
<xsl:attribute name="select"> |
294 |
<xsl:value-of select="$length"/> |
283 |
<xsl:choose> |
295 |
<xsl:text>)</xsl:text> |
284 |
<xsl:when test="@length"> |
296 |
</xsl:when> |
285 |
<xsl:text>substring(., </xsl:text> |
297 |
<xsl:otherwise> |
286 |
<xsl:value-of select="$offset + 1" /> |
298 |
<xsl:text>.</xsl:text> |
287 |
<xsl:text>, </xsl:text> |
299 |
</xsl:otherwise> |
288 |
<xsl:value-of select="$length"/> |
300 |
</xsl:choose> |
289 |
<xsl:text>)</xsl:text> |
|
|
290 |
</xsl:when> |
291 |
<xsl:otherwise> |
292 |
<xsl:text>.</xsl:text> |
293 |
</xsl:otherwise> |
294 |
</xsl:choose> |
295 |
</xsl:attribute> |
296 |
</xslo:value-of> |
297 |
</z:index> |
298 |
</xslo:if> |
299 |
</xslo:for-each> |
300 |
</xslo:if> |
301 |
</xsl:when> |
302 |
<xsl:otherwise> |
303 |
<xslo:for-each select="marc:subfield"> |
304 |
<xslo:if> |
305 |
<xsl:attribute name="test"> |
306 |
<xsl:text>contains('</xsl:text> |
307 |
<xsl:value-of select="@subfields"/> |
308 |
<xsl:text>', @code)</xsl:text> |
309 |
</xsl:attribute> |
301 |
</xsl:attribute> |
310 |
<z:index> |
302 |
</xslo:value-of> |
311 |
<xsl:attribute name="name"><xsl:value-of select="normalize-space($indexes)"/></xsl:attribute> |
303 |
</z:index> |
312 |
<xslo:value-of> |
304 |
</xslo:if> |
313 |
<xsl:attribute name="select"> |
305 |
</xslo:for-each> |
314 |
<xsl:choose> |
|
|
315 |
<xsl:when test="@length"> |
316 |
<xsl:text>substring(., </xsl:text> |
317 |
<xsl:value-of select="$offset + 1" /> |
318 |
<xsl:text>, </xsl:text> |
319 |
<xsl:value-of select="$length"/> |
320 |
<xsl:text>)</xsl:text> |
321 |
</xsl:when> |
322 |
<xsl:otherwise> |
323 |
<xsl:text>.</xsl:text> |
324 |
</xsl:otherwise> |
325 |
</xsl:choose> |
326 |
</xsl:attribute> |
327 |
</xslo:value-of> |
328 |
</z:index> |
329 |
</xslo:if> |
330 |
</xslo:for-each> |
331 |
</xsl:otherwise> |
332 |
</xsl:choose> |
333 |
</xsl:template> |
306 |
</xsl:template> |
334 |
|
307 |
|
335 |
<xsl:template name="handle-index-facets"> |
308 |
<xsl:template name="handle-index-facets"> |
336 |
- |
|
|