Bugzilla – Attachment 98539 Details for
Bug 24605
Series link from 830 is not uri encoded
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24605: Fix unencoded series link
Bug-24605-Fix-unencoded-series-link.patch (text/plain), 1.61 KB, created by
Nick Clemens (kidclamp)
on 2020-02-06 17:50:45 UTC
(
hide
)
Description:
Bug 24605: Fix unencoded series link
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-02-06 17:50:45 UTC
Size:
1.61 KB
patch
obsolete
>From 1eedc1b5e6dc6fcfe0c29103ef2a7bf76ea98df8 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 6 Feb 2020 17:45:07 +0000 >Subject: [PATCH] Bug 24605: Fix unencoded series link > >To test: >1 - Add an 830 to a record with a volume subfield separated by a semicolon > 830$aThe series ;$vvol 8. >2 - View the record in the opac >3 - Click the series link, no results >4 - View the link url - the semicolon is not encoded >5 - Apply patch >6 - link works >7 - URL is corrrectly encoded >--- > koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 152b0b5a76..2b0eca3be2 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -319,7 +319,7 @@ > </a> > </xsl:when> > <xsl:otherwise> >- <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> >+ <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >-- >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 24605
:
98539
|
99509
|
99553