View | Details | Raw Unified | Return to bug 13381
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-7 / +1 lines)
Lines 107-121 Link Here
107
                    <xsl:call-template name="subfieldSelect">
107
                    <xsl:call-template name="subfieldSelect">
108
                        <xsl:with-param name="codes">a</xsl:with-param>
108
                        <xsl:with-param name="codes">a</xsl:with-param>
109
                    </xsl:call-template>
109
                    </xsl:call-template>
110
                    <xsl:if test="marc:subfield[@code='b']">
111
                        <xsl:text> </xsl:text>
112
                        <xsl:call-template name="subfieldSelect">
113
                            <xsl:with-param name="codes">b</xsl:with-param>
114
                        </xsl:call-template>
115
                    </xsl:if>
116
                    <xsl:text> </xsl:text>
110
                    <xsl:text> </xsl:text>
117
                    <!-- 13381 add additional subfields-->
111
                    <!-- 13381 add additional subfields-->
118
                    <xsl:for-each select="marc:subfield[contains('chknps', @code)]">
112
                    <xsl:for-each select="marc:subfield[contains('bchknps', @code)]">
119
                        <xsl:choose>
113
                        <xsl:choose>
120
                            <xsl:when test="@code='h'">
114
                            <xsl:when test="@code='h'">
121
                                <!--  13381 Span class around subfield h so it can be suppressed via css -->
115
                                <!--  13381 Span class around subfield h so it can be suppressed via css -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-30 / +22 lines)
Lines 302-338 Link Here
302
        <xsl:attribute name="class">title</xsl:attribute>
302
        <xsl:attribute name="class">title</xsl:attribute>
303
303
304
        <xsl:if test="marc:datafield[@tag=245]">
304
        <xsl:if test="marc:datafield[@tag=245]">
305
        <xsl:for-each select="marc:datafield[@tag=245]">
305
            <xsl:for-each select="marc:datafield[@tag=245]">
306
            <xsl:variable name="title">
306
                <xsl:call-template name="subfieldSelect">
307
                     <xsl:call-template name="subfieldSelect">
307
                    <xsl:with-param name="codes">a</xsl:with-param>
308
                        <xsl:with-param name="codes">a</xsl:with-param>
309
                    </xsl:call-template>
310
                    <xsl:if test="marc:subfield[@code='h']">
311
                        <xsl:text> </xsl:text>
312
                        <xsl:call-template name="subfieldSelect">
313
                            <xsl:with-param name="codes">h</xsl:with-param>
314
                        </xsl:call-template>
315
                    </xsl:if>
316
                    <xsl:if test="marc:subfield[@code='b']">
317
                        <xsl:text> </xsl:text>
318
                        <xsl:call-template name="subfieldSelect">
319
                            <xsl:with-param name="codes">b</xsl:with-param>
320
                        </xsl:call-template>
321
                    </xsl:if>
322
                <xsl:text> </xsl:text>
323
                    <xsl:call-template name="subfieldSelect">
324
                        <xsl:with-param name="codes">fgknps</xsl:with-param>
325
                     </xsl:call-template>
326
            </xsl:variable>
327
            <xsl:variable name="titleChop">
328
                <xsl:call-template name="chopPunctuation">
329
                    <xsl:with-param name="chopString">
330
                        <xsl:value-of select="$title"/>
331
                    </xsl:with-param>
332
                </xsl:call-template>
308
                </xsl:call-template>
333
            </xsl:variable>
309
                <xsl:text> </xsl:text>
334
            <xsl:value-of select="$titleChop"/>
310
                <!-- 13381 add additional subfields-->
335
        </xsl:for-each>
311
                <xsl:for-each select="marc:subfield[contains('bchknps', @code)]">
312
                    <xsl:choose>
313
                        <xsl:when test="@code='h'">
314
                            <!--  13381 Span class around subfield h so it can be suppressed via css -->
315
                            <span class="title_medium"><xsl:apply-templates/> </span>
316
                        </xsl:when>
317
                        <xsl:when test="@code='c'">
318
                            <!--  13381 Span class around subfield c so it can be suppressed via css -->
319
                            <span class="title_resp_stmt"><xsl:apply-templates/> </span>
320
                        </xsl:when>
321
                        <xsl:otherwise>
322
                            <xsl:apply-templates/>
323
                            <xsl:text> </xsl:text>
324
                        </xsl:otherwise>
325
                    </xsl:choose>
326
                </xsl:for-each>
327
            </xsl:for-each>
336
        </xsl:if>
328
        </xsl:if>
337
    </a>
329
    </a>
338
330
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-7 / +1 lines)
Lines 128-142 Link Here
128
                        <xsl:call-template name="subfieldSelect">
128
                        <xsl:call-template name="subfieldSelect">
129
                            <xsl:with-param name="codes">a</xsl:with-param>
129
                            <xsl:with-param name="codes">a</xsl:with-param>
130
                        </xsl:call-template>
130
                        </xsl:call-template>
131
                        <xsl:if test="marc:subfield[@code='b']">
132
                            <xsl:text> </xsl:text>
133
                            <xsl:call-template name="subfieldSelect">
134
                                <xsl:with-param name="codes">b</xsl:with-param>
135
                            </xsl:call-template>
136
                        </xsl:if>
137
                        <xsl:text> </xsl:text>
131
                        <xsl:text> </xsl:text>
138
                        <!-- 13381 add additional subfields-->
132
                        <!-- 13381 add additional subfields-->
139
                        <xsl:for-each select="marc:subfield[contains('chknps', @code)]">
133
                        <xsl:for-each select="marc:subfield[contains('bchknps', @code)]">
140
                            <xsl:choose>
134
                            <xsl:choose>
141
                                <xsl:when test="@code='h'">
135
                                <xsl:when test="@code='h'">
142
                                    <!--  13381 Span class around subfield h so it can be suppressed via css -->
136
                                    <!--  13381 Span class around subfield h so it can be suppressed via css -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-31 / +22 lines)
Lines 415-451 Link Here
415
        <xsl:attribute name="class">title</xsl:attribute>
415
        <xsl:attribute name="class">title</xsl:attribute>
416
416
417
        <xsl:if test="marc:datafield[@tag=245]">
417
        <xsl:if test="marc:datafield[@tag=245]">
418
        <xsl:for-each select="marc:datafield[@tag=245]">
418
            <xsl:for-each select="marc:datafield[@tag=245]">
419
            <xsl:variable name="title">
419
                <xsl:call-template name="subfieldSelect">
420
                     <xsl:call-template name="subfieldSelect">
420
                    <xsl:with-param name="codes">a</xsl:with-param>
421
                        <xsl:with-param name="codes">a</xsl:with-param>
422
                    </xsl:call-template>
423
                    <xsl:if test="marc:subfield[@code='h']">
424
                        <xsl:text> </xsl:text>
425
                        <xsl:call-template name="subfieldSelect">
426
                            <xsl:with-param name="codes">h</xsl:with-param>
427
                        </xsl:call-template>
428
                    </xsl:if>
429
                    <xsl:if test="marc:subfield[@code='b']">
430
                        <xsl:text> </xsl:text>
431
                        <xsl:call-template name="subfieldSelect">
432
                            <xsl:with-param name="codes">b</xsl:with-param>
433
                        </xsl:call-template>
434
                    </xsl:if>
435
                <xsl:text> </xsl:text>
436
                    <xsl:call-template name="subfieldSelect">
437
                        <xsl:with-param name="codes">fgknps</xsl:with-param>
438
                     </xsl:call-template>
439
            </xsl:variable>
440
            <xsl:variable name="titleChop">
441
                <xsl:call-template name="chopPunctuation">
442
                    <xsl:with-param name="chopString">
443
                        <xsl:value-of select="$title"/>
444
                    </xsl:with-param>
445
                </xsl:call-template>
421
                </xsl:call-template>
446
            </xsl:variable>
422
                <xsl:text> </xsl:text>
447
            <xsl:value-of select="$titleChop"/>
423
                <!-- 13381 add additional subfields-->
448
        </xsl:for-each>
424
                <xsl:for-each select="marc:subfield[contains('bchknps', @code)]">
425
                    <xsl:choose>
426
                        <xsl:when test="@code='h'">
427
                            <!--  13381 Span class around subfield h so it can be suppressed via css -->
428
                            <span class="title_medium"><xsl:apply-templates/> </span>
429
                        </xsl:when>
430
                        <xsl:when test="@code='c'">
431
                            <!--  13381 Span class around subfield c so it can be suppressed via css -->
432
                            <span class="title_resp_stmt"><xsl:apply-templates/> </span>
433
                        </xsl:when>
434
                        <xsl:otherwise>
435
                            <xsl:apply-templates/>
436
                            <xsl:text> </xsl:text>
437
                        </xsl:otherwise>
438
                    </xsl:choose>
439
                </xsl:for-each>
440
            </xsl:for-each>
449
        </xsl:if>
441
        </xsl:if>
450
    </a>
442
    </a>
451
    <p>
443
    <p>
452
- 

Return to bug 13381