Bugzilla – Attachment 83754 Details for
Bug 22085
UNIMARC default XSLT broken by Bug 14716
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22085: fix UNIMARC default XSLT broken by Bug 14716
Bug-22085-fix-UNIMARC-default-XSLT-broken-by-Bug-1.patch (text/plain), 4.22 KB, created by
Fridolin Somers
on 2019-01-09 16:26:08 UTC
(
hide
)
Description:
Bug 22085: fix UNIMARC default XSLT broken by Bug 14716
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2019-01-09 16:26:08 UTC
Size:
4.22 KB
patch
obsolete
>From 777eb194b07243e167ab47bc7a77d782abe1d9a2 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 9 Jan 2019 15:51:48 +0100 >Subject: [PATCH] Bug 22085: fix UNIMARC default XSLT broken by Bug 14716 > >Bug 14716 added a call to encode-uri() and namespace str. >This namespace declaration is sometimes missing in UNIMARC default XSLT files. > >This patch adds namespace declaration also where encode-uri is not used because it may be used in the future. And those files are the base for home made custom files. > >Test plan : >1) Use a UNIMARC DB >2) Use default in all XSLT sysprefs >3) Apply patch >4) Perform a search on OPAC >5) Check display is OK >6) Click on a record for detail page >7) Check display is OK >8) Perform a search on staff interface >9) Check display is OK >10) Click on a record for detail page >11) Check display is OK >--- > .../intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl | 3 ++- > .../prog/en/xslt/UNIMARCslim2intranetResults.xsl | 4 +++- > .../opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl | 3 ++- > .../opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl | 3 ++- > 4 files changed, 9 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl >index 7cdffa0d96..26c8416258 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl >@@ -6,7 +6,8 @@ > xmlns:marc="http://www.loc.gov/MARC21/slim" > xmlns:items="http://www.koha-community.org/items" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >- exclude-result-prefixes="marc items"> >+ xmlns:str="http://exslt.org/strings" >+ exclude-result-prefixes="marc items str"> > > <xsl:import href="UNIMARCslimUtils.xsl"/> > <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl >index a6ba1c22c6..7155e16cdb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl >@@ -7,7 +7,9 @@ > xmlns:marc="http://www.loc.gov/MARC21/slim" > xmlns:items="http://www.koha-community.org/items" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >- exclude-result-prefixes="marc items"> >+ xmlns:str="http://exslt.org/strings" >+ exclude-result-prefixes="marc items str"> >+ > <xsl:import href="UNIMARCslimUtils.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"/> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl >index 8cb8bf922b..a9779b615b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl >@@ -6,7 +6,8 @@ > xmlns:marc="http://www.loc.gov/MARC21/slim" > xmlns:items="http://www.koha-community.org/items" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >- exclude-result-prefixes="marc items"> >+ xmlns:str="http://exslt.org/strings" >+ exclude-result-prefixes="marc items str"> > > <xsl:import href="UNIMARCslimUtils.xsl"/> > <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl >index 874cf99f2b..9d599f7752 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl >@@ -6,7 +6,8 @@ > xmlns:marc="http://www.loc.gov/MARC21/slim" > xmlns:items="http://www.koha-community.org/items" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >- exclude-result-prefixes="marc items"> >+ xmlns:str="http://exslt.org/strings" >+ exclude-result-prefixes="marc items str"> > > <xsl:import href="UNIMARCslimUtils.xsl"/> > <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> >-- >2.17.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 22085
:
83754
|
83862
|
84192