Bugzilla – Attachment 82677 Details for
Bug 21887
856$u link problem in XSLT result lists and detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21887: (For OPAC) 856 link problem in XSLT result lists and detail page
Bug-21887-For-OPAC-856-link-problem-in-XSLT-result.patch (text/plain), 3.77 KB, created by
Devinim
on 2018-11-27 15:29:09 UTC
(
hide
)
Description:
Bug 21887: (For OPAC) 856 link problem in XSLT result lists and detail page
Filename:
MIME Type:
Creator:
Devinim
Created:
2018-11-27 15:29:09 UTC
Size:
3.77 KB
patch
obsolete
>From 3e056b2d33a86393ea7d135de02d0bc40cc125f0 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Nazl=C4=B1=20=C3=87etin?= <nazli@devinim.com.tr> >Date: Tue, 27 Nov 2018 15:24:38 +0000 >Subject: [PATCH] Bug 21887: (For OPAC) 856 link problem in XSLT result lists > and detail page > >--- > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 17 ++++++++++++++++- > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 17 ++++++++++++++++- > 2 files changed, 32 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 9fe561d8cf..9f67ccf74e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -906,7 +906,22 @@ > <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute> > </xsl:when> > <xsl:otherwise> >- <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute> >+ <xsl:attribute name="href"> >+ <xsl:if test="not(contains(marc:subfield[@code='u'],'://'))"> >+ <xsl:choose> >+ <xsl:when test="@ind1=7"> >+ <xsl:value-of select="marc:subfield[@code='2']"/><xsl:text>://</xsl:text> >+ </xsl:when> >+ <xsl:when test="@ind1=1"> >+ <xsl:text>ftp://</xsl:text> >+ </xsl:when> >+ <xsl:otherwise> >+ <xsl:text>http://</xsl:text> >+ </xsl:otherwise> >+ </xsl:choose> >+ </xsl:if> >+ <xsl:value-of select="marc:subfield[@code='u']"/> >+ </xsl:attribute> > </xsl:otherwise> > </xsl:choose> > <xsl:if test="$OPACURLOpenInNewWindow='1'"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index b6c9ee7747..3319151f0c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1078,7 +1078,22 @@ > <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute> > </xsl:when> > <xsl:otherwise> >- <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute> >+ <xsl:attribute name="href"> >+ <xsl:if test="not(contains(marc:subfield[@code='u'],'://'))"> >+ <xsl:choose> >+ <xsl:when test="@ind1=7"> >+ <xsl:value-of select="marc:subfield[@code='2']"/><xsl:text>://</xsl:text> >+ </xsl:when> >+ <xsl:when test="@ind1=1"> >+ <xsl:text>ftp://</xsl:text> >+ </xsl:when> >+ <xsl:otherwise> >+ <xsl:text>http://</xsl:text> >+ </xsl:otherwise> >+ </xsl:choose> >+ </xsl:if> >+ <xsl:value-of select="marc:subfield[@code='u']"/> >+ </xsl:attribute> > </xsl:otherwise> > </xsl:choose> > <xsl:choose> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21887
:
82674
|
82675
|
82676
|
82677
|
90041
|
90042
|
90097
|
90098