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

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

Return to bug 34020