Bugzilla – Attachment 12757 Details for
Bug 8872
Improve encoding for xslt files, showmarc and opac-showmarc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch 3 for opac xslt
patch.txt (text/plain), 5.99 KB, created by
Marcel de Rooy
on 2012-10-10 13:57:54 UTC
(
hide
)
Description:
Patch 3 for opac xslt
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2012-10-10 13:57:54 UTC
Size:
5.99 KB
patch
obsolete
>From 75db871818569d95b018ee14a38bd61f426bbf06 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 4 Oct 2012 12:05:10 +0200 >Subject: [PATCH] Bug 8872 Add UTF-8 encoding to opac xslt files >Content-Type: text/plain; charset="utf-8" > >Does also fix head and body tags in MARC21slim2OPACMARCdetail.xsl. >--- > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 2 +- > .../prog/en/xslt/MARC21slim2OPACMARCdetail.xsl | 7 +++++-- > .../prog/en/xslt/MARC21slim2OPACResults.xsl | 2 +- > .../prog/en/xslt/NORMARCslim2OPACDetail.xsl | 2 +- > .../prog/en/xslt/NORMARCslim2OPACResults.xsl | 2 +- > .../prog/en/xslt/UNIMARCslim2OPACDetail.xsl | 2 +- > .../prog/en/xslt/UNIMARCslim2OPACResults.xsl | 2 +- > 7 files changed, 11 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index 7917c0b..64afc0b 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -7,7 +7,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="MARC21slimUtils.xsl"/> >- <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> > <xsl:template match="/"> > <xsl:apply-templates/> > </xsl:template> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACMARCdetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACMARCdetail.xsl >index fe18b80..fb8a07e 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACMARCdetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACMARCdetail.xsl >@@ -1,11 +1,14 @@ > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> > <xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> >- <xsl:output method="html"/> >+ <xsl:output method="html" encoding="UTF-8"/> > > <xsl:template match="/"> > <html> >- <xsl:apply-templates/> >+ <head><title>MARC View</title></head> >+ <body> >+ <xsl:apply-templates/> >+ </body> > </html> > </xsl:template> > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >index 4f0acd3..cdc803e 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >@@ -7,7 +7,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="MARC21slimUtils.xsl"/> >- <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> >+ <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"/> > <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl >index 2d6d65f..ee57fc0 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACDetail.xsl >@@ -9,7 +9,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="NORMARCslimUtils.xsl"/> >- <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> >+ <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> > <xsl:template match="/"> > <xsl:apply-templates/> > </xsl:template> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >index 3645174..ce889f7 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl >@@ -9,7 +9,7 @@ > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > exclude-result-prefixes="marc items"> > <xsl:import href="NORMARCslimUtils.xsl"/> >- <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> >+ <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"/> > <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl >index 6fee4fb..cb365d9 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl >@@ -9,7 +9,7 @@ > exclude-result-prefixes="marc items"> > > <xsl:import href="UNIMARCslimUtils.xsl"/> >-<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> >+<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/> > <xsl:template match="/"> > <xsl:apply-templates/> > </xsl:template> >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >index 2b416fb..fe500a6 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl >@@ -9,7 +9,7 @@ > exclude-result-prefixes="marc items"> > > <xsl:import href="UNIMARCslimUtils.xsl"/> >-<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" /> >+<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"/> > <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> > >-- >1.7.7.6 >
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 8872
:
12755
|
12756
|
12757
|
12758
|
12759
|
12986
|
12987
|
12988
|
12989
|
12990
|
13171
|
13172
|
13173
|
13244
|
13245
|
13248