Bugzilla – Attachment 12988 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]
Bug 8872 Add UTF-8 encoding to opac xslt files
Bug-8872-Add-UTF-8-encoding-to-opac-xslt-files.patch (text/plain), 6.01 KB, created by
Jared Camins-Esakov
on 2012-10-21 15:30:43 UTC
(
hide
)
Description:
Bug 8872 Add UTF-8 encoding to opac xslt files
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-10-21 15:30:43 UTC
Size:
6.01 KB
patch
obsolete
>From 64d1b43dbb14b04c0623173eb21a08936725ea21 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 > >Does also fix head and body tags in MARC21slim2OPACMARCdetail.xsl. > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >--- > .../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 299dfee..88b503e 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 d7d8423..2c3597e 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.9.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 8872
:
12755
|
12756
|
12757
|
12758
|
12759
|
12986
|
12987
| 12988 |
12989
|
12990
|
13171
|
13172
|
13173
|
13244
|
13245
|
13248