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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl (-33 / +26 lines)
Lines 281-321 Link Here
281
                </xsl:when>
281
                </xsl:when>
282
            </xsl:choose>
282
            </xsl:choose>
283
283
284
            <xsl:if test="$field/marc:subfield[@code='a']">
284
            <xsl:for-each select="marc:subfield">
285
                <xsl:call-template name="subfieldSelect">
285
                <xsl:if test="@code='a'">
286
                    <xsl:with-param name="codes">a</xsl:with-param>
286
                    <xsl:value-of select="current()"/>
287
                </xsl:call-template>
287
                </xsl:if>
288
            </xsl:if>
288
                    <xsl:if test="@code='b'">
289
            <xsl:text> </xsl:text>
289
                        <xsl:choose>
290
290
                            <xsl:when test="$url='1'">
291
            <xsl:choose>
291
                                     <a>
292
                <xsl:when test="$url='1'">
292
                                     <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Provider:<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
293
                    <xsl:if test="$field/marc:subfield[@code='b']">
293
                                     <xsl:value-of select="current()"/>
294
                         <a>
294
                                     </a>
295
                         <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Provider:<xsl:value-of select="str:encode-uri($field/marc:subfield[@code='b'], true())"/></xsl:attribute>
295
                            </xsl:when>
296
                         <xsl:call-template name="subfieldSelect">
296
                            <xsl:otherwise>
297
                             <xsl:with-param name="codes">b</xsl:with-param>
297
                                    <xsl:value-of select="current()"/>
298
                         </xsl:call-template>
298
                            </xsl:otherwise>
299
                         </a>
299
                        </xsl:choose>
300
                    </xsl:if>
301
                </xsl:when>
302
                <xsl:otherwise>
303
                    <xsl:if test="$field/marc:subfield[@code='b']">
304
                        <xsl:call-template name="subfieldSelect">
305
                            <xsl:with-param name="codes">b</xsl:with-param>
306
                        </xsl:call-template>
307
                    </xsl:if>
300
                    </xsl:if>
308
                </xsl:otherwise>
301
                <xsl:if test="@code='c'">
309
            </xsl:choose>
302
                    <xsl:call-template name="chopPunctuation">
310
            <xsl:text> </xsl:text>
303
                        <xsl:with-param name="chopString">
311
            <xsl:call-template name="chopPunctuation">
304
                            <xsl:value-of select="current()"/>
312
                <xsl:with-param name="chopString">
305
                        </xsl:with-param>
313
                    <xsl:call-template name="subfieldSelect">
314
                        <xsl:with-param name="codes">c</xsl:with-param>
315
                    </xsl:call-template>
306
                    </xsl:call-template>
316
                </xsl:with-param>
307
                </xsl:if>
317
            </xsl:call-template>
308
                <xsl:if test="position() != last()">
318
309
                    <xsl:text> </xsl:text>
310
                </xsl:if>
311
            </xsl:for-each>
319
        </span>
312
        </span>
320
    </xsl:template>
313
    </xsl:template>
321
314
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slimUtils.xsl (-33 / +26 lines)
Lines 279-318 Link Here
279
                </xsl:when>
279
                </xsl:when>
280
            </xsl:choose>
280
            </xsl:choose>
281
281
282
            <xsl:if test="$field/marc:subfield[@code='a']">
282
            <xsl:for-each select="marc:subfield">
283
                <xsl:call-template name="subfieldSelect">
283
                <xsl:if test="@code='a'">
284
                    <xsl:with-param name="codes">a</xsl:with-param>
284
                    <xsl:value-of select="current()"/>
285
                </xsl:call-template>
285
                </xsl:if>
286
            </xsl:if>
286
                    <xsl:if test="@code='b'">
287
            <xsl:text> </xsl:text>
287
                        <xsl:choose>
288
288
                            <xsl:when test="$url='1'">
289
            <xsl:choose>
289
                                     <a>
290
                <xsl:when test="$url='1'">
290
                                     <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Provider:<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
291
                    <xsl:if test="$field/marc:subfield[@code='b']">
291
                                     <xsl:value-of select="current()"/>
292
                         <a>
292
                                     </a>
293
                         <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Provider:<xsl:value-of select="str:encode-uri($field/marc:subfield[@code='b'], true())"/></xsl:attribute>
293
                            </xsl:when>
294
                         <xsl:call-template name="subfieldSelect">
294
                            <xsl:otherwise>
295
                             <xsl:with-param name="codes">b</xsl:with-param>
295
                                    <xsl:value-of select="current()"/>
296
                         </xsl:call-template>
296
                            </xsl:otherwise>
297
                         </a>
297
                        </xsl:choose>
298
                    </xsl:if>
299
                </xsl:when>
300
                <xsl:otherwise>
301
                    <xsl:if test="$field/marc:subfield[@code='b']">
302
                        <xsl:call-template name="subfieldSelect">
303
                            <xsl:with-param name="codes">b</xsl:with-param>
304
                        </xsl:call-template>
305
                    </xsl:if>
298
                    </xsl:if>
306
                </xsl:otherwise>
299
                <xsl:if test="@code='c'">
307
            </xsl:choose>
300
                    <xsl:call-template name="chopPunctuation">
308
            <xsl:text> </xsl:text>
301
                        <xsl:with-param name="chopString">
309
            <xsl:call-template name="chopPunctuation">
302
                            <xsl:value-of select="current()"/>
310
                <xsl:with-param name="chopString">
303
                        </xsl:with-param>
311
                    <xsl:call-template name="subfieldSelect">
312
                        <xsl:with-param name="codes">c</xsl:with-param>
313
                    </xsl:call-template>
304
                    </xsl:call-template>
314
                </xsl:with-param>
305
                </xsl:if>
315
            </xsl:call-template>
306
                <xsl:if test="position() != last()">
307
                    <xsl:text> </xsl:text>
308
                </xsl:if>
309
            </xsl:for-each>
316
        </span>
310
        </span>
317
    </xsl:template>
311
    </xsl:template>
318
312
319
- 

Return to bug 34020