Bugzilla – Attachment 114308 Details for
Bug 27178
OPAC results and lists pages contain invalid attributes (xmlns:str="http://exslt.org/strings")
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27178: Add 'str' namespace to exclude-result-prefixes
Bug-27178-Add-str-namespace-to-exclude-result-pref.patch (text/plain), 2.79 KB, created by
Martin Renvoize (ashimema)
on 2020-12-10 13:20:25 UTC
(
hide
)
Description:
Bug 27178: Add 'str' namespace to exclude-result-prefixes
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-12-10 13:20:25 UTC
Size:
2.79 KB
patch
obsolete
>From 2328a50a84fc888a839bfd20e62f4c55286c0920 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 10 Dec 2020 11:35:50 +0100 >Subject: [PATCH] Bug 27178: Add 'str' namespace to exclude-result-prefixes > >Some nodes in the generated HTML document contain the 'str' namespace. >For instance, at the OPAC on the search result list, you can see: ><a xmlns:str="http://exslt.org/strings" href="/cgi-bin/koha/opac-detail.pl?biblionumber=18566&query_desc=kw%2Cwrdl%3A%20spin" class="title"> > >The solution is to add 'str' to exclude-result-prefixes. >From https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/stylesheet >""" >Specifies any namespace used in this document that should not be sent to the output document. The list is whitespace separated. >""" > >Test plan: >0. Don't apply this patch >1. Launch a search at the OPAC >2. Inspect the title link for the records >=> Note the 'xmlns:str' attribute on tag "a" >3. Apply this patch >4. restart_all >5. Repeat 1. and 2. >=> Note that the attribute is gone now. > >QA will check that no other occurrences is missing (note that one >NORMARC xsl is missing it, but NORMARC is deprecated) > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl | 2 +- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >index aff65acb8a..84027021f2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl >@@ -4,7 +4,7 @@ > xmlns:marc="http://www.loc.gov/MARC21/slim" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:str="http://exslt.org/strings" >- exclude-result-prefixes="marc"> >+ exclude-result-prefixes="marc str"> > <xsl:include href="MARC21Languages.xsl"/> > <xsl:template name="datafield"> > <xsl:param name="tag"/> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index cb74d0ad69..04110e0c47 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -6,7 +6,7 @@ > xmlns:items="http://www.koha-community.org/items" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:str="http://exslt.org/strings" >- exclude-result-prefixes="marc items"> >+ exclude-result-prefixes="marc items str"> > <xsl:import href="MARC21slimUtils.xsl"/> > <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> > <xsl:key name="item-by-status" match="items:item" use="items:status"/> >-- >2.20.1
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 27178
:
114298
|
114308
|
114684