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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-1 / +32 lines)
Lines 220-226 Link Here
220
        </xsl:for-each>
220
        </xsl:for-each>
221
        <!-- 490 Series traced, Ind1 = 1 -->
221
        <!-- 490 Series traced, Ind1 = 1 -->
222
        <xsl:if test="marc:datafield[@tag=490][@ind1=1]">
222
        <xsl:if test="marc:datafield[@tag=490][@ind1=1]">
223
            <xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811 or @tag=830]">
223
            <xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811]">
224
                <xsl:choose>
224
                <xsl:choose>
225
                    <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
225
                    <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
226
                        <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute>
226
                        <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute>
Lines 250-255 Link Here
250
                <xsl:value-of  select="marc:subfield[@code='v']" />
250
                <xsl:value-of  select="marc:subfield[@code='v']" />
251
            <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
251
            <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
252
            </xsl:for-each>
252
            </xsl:for-each>
253
254
            <xsl:for-each select="marc:datafield[@tag=830]">
255
                <xsl:choose>
256
                    <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
257
                        <a href="/cgi-bin/koha/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}">
258
                            <xsl:call-template name="chopPunctuation">
259
                                <xsl:with-param name="chopString">
260
                                    <xsl:call-template name="subfieldSelect">
261
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
262
                                    </xsl:call-template>
263
                                </xsl:with-param>
264
                            </xsl:call-template>
265
                        </a>
266
                    </xsl:when>
267
                    <xsl:otherwise>
268
                        <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
269
                            <xsl:call-template name="chopPunctuation">
270
                                <xsl:with-param name="chopString">
271
                                    <xsl:call-template name="subfieldSelect">
272
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
273
                                    </xsl:call-template>
274
                                </xsl:with-param>
275
                            </xsl:call-template>
276
                        </a>
277
                        <xsl:call-template name="part"/>
278
                    </xsl:otherwise>
279
                </xsl:choose>
280
                <xsl:text>: </xsl:text>
281
                <xsl:value-of  select="marc:subfield[@code='v']" />
282
            <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
283
            </xsl:for-each>
253
        </xsl:if>
284
        </xsl:if>
254
285
255
        </span>
286
        </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-2 / +31 lines)
Lines 245-251 Link Here
245
        </xsl:for-each>
245
        </xsl:for-each>
246
        <!-- 490 Series traced, Ind1 = 1 -->
246
        <!-- 490 Series traced, Ind1 = 1 -->
247
        <xsl:if test="marc:datafield[@tag=490][@ind1=1]">
247
        <xsl:if test="marc:datafield[@tag=490][@ind1=1]">
248
            <xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811 or @tag=830]">
248
            <xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811]">
249
                <xsl:choose>
249
                <xsl:choose>
250
                    <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
250
                    <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
251
                        <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute>
251
                        <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute>
Lines 275-280 Link Here
275
                <xsl:value-of  select="marc:subfield[@code='v']" />
275
                <xsl:value-of  select="marc:subfield[@code='v']" />
276
            <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
276
            <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
277
            </xsl:for-each>
277
            </xsl:for-each>
278
            <xsl:for-each select="marc:datafield[@tag=830]">
279
                <xsl:choose>
280
                    <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
281
                        <a href="/cgi-bin/koha/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}">
282
                            <xsl:call-template name="chopPunctuation">
283
                                <xsl:with-param name="chopString">
284
                                    <xsl:call-template name="subfieldSelect">
285
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
286
                                    </xsl:call-template>
287
                                </xsl:with-param>
288
                            </xsl:call-template>
289
                        </a>
290
                    </xsl:when>
291
                    <xsl:otherwise>
292
                        <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
293
                            <xsl:call-template name="chopPunctuation">
294
                                <xsl:with-param name="chopString">
295
                                    <xsl:call-template name="subfieldSelect">
296
                                        <xsl:with-param name="codes">a_t</xsl:with-param>
297
                                    </xsl:call-template>
298
                                </xsl:with-param>
299
                            </xsl:call-template>
300
                        </a>
301
                        <xsl:call-template name="part"/>
302
                    </xsl:otherwise>
303
                </xsl:choose>
304
                <xsl:text>: </xsl:text>
305
                <xsl:value-of  select="marc:subfield[@code='v']" />
306
            <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
307
            </xsl:for-each>
278
        </xsl:if>
308
        </xsl:if>
279
        </span>
309
        </span>
280
        </xsl:if>
310
        </xsl:if>
281
- 

Return to bug 21589