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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-19 / +22 lines)
Lines 100-129 Link Here
100
            </h1>
100
            </h1>
101
        </xsl:if>
101
        </xsl:if>
102
102
103
        <!--Bug 13381 -->
103
        <xsl:if test="marc:datafield[@tag=245]">
104
        <xsl:if test="marc:datafield[@tag=245]">
104
        <h1>
105
            <h1 class="title" property="name">
105
            <xsl:for-each select="marc:datafield[@tag=245]">
106
                <xsl:for-each select="marc:datafield[@tag=245]">
106
                    <xsl:call-template name="subfieldSelect">
107
                    <xsl:call-template name="subfieldSelect">
107
                        <xsl:with-param name="codes">a</xsl:with-param>
108
                        <xsl:with-param name="codes">a</xsl:with-param>
108
                    </xsl:call-template>
109
                    </xsl:call-template>
109
                    <xsl:if test="marc:subfield[@code='h']">
110
                        <xsl:text> </xsl:text>
111
                        <xsl:call-template name="subfieldSelect">
112
                            <xsl:with-param name="codes">h</xsl:with-param>
113
                        </xsl:call-template>
114
                    </xsl:if>
115
                    <xsl:if test="marc:subfield[@code='b']">
116
                        <xsl:text> </xsl:text>
117
                        <xsl:call-template name="subfieldSelect">
118
                            <xsl:with-param name="codes">b</xsl:with-param>
119
                        </xsl:call-template>
120
                    </xsl:if>
121
                    <xsl:text> </xsl:text>
110
                    <xsl:text> </xsl:text>
122
                    <xsl:call-template name="subfieldSelect">
111
                    <!-- 13381 add additional subfields-->
123
                        <xsl:with-param name="codes">fgknps</xsl:with-param>
112
                    <xsl:for-each select="marc:subfield[contains('bchknps', @code)]">
124
                    </xsl:call-template>
113
                        <xsl:choose>
125
            </xsl:for-each>
114
                            <xsl:when test="@code='h'">
126
        </h1>
115
                                <!--  13381 Span class around subfield h so it can be suppressed via css -->
116
                                <span class="title_medium"><xsl:apply-templates/> </span>
117
                            </xsl:when>
118
                            <xsl:when test="@code='c'">
119
                                <!--  13381 Span class around subfield c so it can be suppressed via css -->
120
                                <span class="title_resp_stmt"><xsl:apply-templates/> </span>
121
                            </xsl:when>
122
                            <xsl:otherwise>
123
                                <xsl:apply-templates/>
124
                                <xsl:text> </xsl:text>
125
                            </xsl:otherwise>
126
                        </xsl:choose>
127
                    </xsl:for-each>
128
                </xsl:for-each>
129
            </h1>
127
        </xsl:if>
130
        </xsl:if>
128
131
129
        <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
132
        <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
(-)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 (-22 / +26 lines)
Lines 121-151 Link Here
121
            </h1>
121
            </h1>
122
        </xsl:if>
122
        </xsl:if>
123
123
124
        <xsl:if test="marc:datafield[@tag=245]">
124
            <!--Bug 13381 -->
125
        <h1 class="title" property="name">
125
            <xsl:if test="marc:datafield[@tag=245]">
126
            <xsl:for-each select="marc:datafield[@tag=245]">
126
                <h1 class="title" property="name">
127
                    <xsl:call-template name="subfieldSelect">
127
                    <xsl:for-each select="marc:datafield[@tag=245]">
128
                        <xsl:with-param name="codes">a</xsl:with-param>
129
                    </xsl:call-template>
130
                    <xsl:if test="marc:subfield[@code='h']">
131
                        <xsl:text> </xsl:text>
132
                        <xsl:call-template name="subfieldSelect">
128
                        <xsl:call-template name="subfieldSelect">
133
                            <xsl:with-param name="codes">h</xsl:with-param>
129
                            <xsl:with-param name="codes">a</xsl:with-param>
134
                        </xsl:call-template>
130
                        </xsl:call-template>
135
                    </xsl:if>
136
                    <xsl:if test="marc:subfield[@code='b']">
137
                        <xsl:text> </xsl:text>
131
                        <xsl:text> </xsl:text>
138
                        <xsl:call-template name="subfieldSelect">
132
                        <!-- 13381 add additional subfields-->
139
                            <xsl:with-param name="codes">b</xsl:with-param>
133
                        <xsl:for-each select="marc:subfield[contains('bchknps', @code)]">
140
                        </xsl:call-template>
134
                            <xsl:choose>
141
                    </xsl:if>
135
                                <xsl:when test="@code='h'">
142
                <xsl:text> </xsl:text>
136
                                    <!--  13381 Span class around subfield h so it can be suppressed via css -->
143
                    <xsl:call-template name="subfieldSelect">
137
                                    <span class="title_medium"><xsl:apply-templates/> </span>
144
                        <xsl:with-param name="codes">fgknps</xsl:with-param>
138
                                </xsl:when>
145
                    </xsl:call-template>
139
                                <xsl:when test="@code='c'">
146
            </xsl:for-each>
140
                                    <!--  13381 Span class around subfield c so it can be suppressed via css -->
147
        </h1>
141
                                    <span class="title_resp_stmt"><xsl:apply-templates/> </span>
148
        </xsl:if>
142
                                </xsl:when>
143
                                <xsl:otherwise>
144
                                    <xsl:apply-templates/>
145
                                    <xsl:text> </xsl:text>
146
                                </xsl:otherwise>
147
                            </xsl:choose>
148
                        </xsl:for-each>
149
                    </xsl:for-each>
150
                </h1>
151
            </xsl:if>
152
149
153
150
        <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
154
        <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
151
        <xsl:if test="$display880">
155
        <xsl:if test="$display880">
(-)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