Bugzilla – Attachment 178089 Details for
Bug 39088
If OPACURLOpenInNewWindow is enabled, URLs without http are broken in OPAC results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39088: Correctly prefix url with protocol when OPACURLOpenInNewWindow on the OPAC result page
Bug-39088-Correctly-prefix-url-with-protocol-when-.patch (text/plain), 2.23 KB, created by
Marcel de Rooy
on 2025-02-14 09:06:52 UTC
(
hide
)
Description:
Bug 39088: Correctly prefix url with protocol when OPACURLOpenInNewWindow on the OPAC result page
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-02-14 09:06:52 UTC
Size:
2.23 KB
patch
obsolete
>From 6eab24e964a1a6db14b3b311bf2e8bdf46383409 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 11 Feb 2025 13:40:06 +0100 >Subject: [PATCH] Bug 39088: Correctly prefix url with protocol when > OPACURLOpenInNewWindow on the OPAC result page >Content-Type: text/plain; charset=utf-8 > >There is certainly something better to do as the xsl for the OPACDetail >is calling it only once, but it needs more work. > >Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 17676f19a5..f2099aea75 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -1245,7 +1245,15 @@ > <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:call-template name="AddMissingProtocol"> >+ <xsl:with-param name="resourceLocation" select="marc:subfield[@code='u']"/> >+ <xsl:with-param name="indicator1" select="@ind1"/> >+ <xsl:with-param name="accessMethod" select="marc:subfield[@code='2']"/> >+ </xsl:call-template> >+ <xsl:value-of select="marc:subfield[@code='u']"/> >+ </xsl:attribute> >+ > </xsl:otherwise> > </xsl:choose> > <xsl:choose> >-- >2.39.5
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 39088
:
177713
|
177729
|
177734
| 178089