Bugzilla – Attachment 5822 Details for
Bug 6996
Encoding problem in opac-showmarc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
patch.txt (text/plain), 1.12 KB, created by
Marcel de Rooy
on 2011-10-10 10:19:05 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2011-10-10 10:19:05 UTC
Size:
1.12 KB
patch
obsolete
>From 0edb69e5afd521a13a25490b6e34033416b97871 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 10 Oct 2011 11:59:54 +0200 >Subject: [PATCH] 6996 Encoding problem in opac-showmarc >Content-Type: text/plain; charset="utf-8" > >Need to decode the output coming back from xslt processor in opac-showmarc. >--- > opac/opac-showmarc.pl | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/opac/opac-showmarc.pl b/opac/opac-showmarc.pl >index 4475512..949d79a 100755 >--- a/opac/opac-showmarc.pl >+++ b/opac/opac-showmarc.pl >@@ -29,6 +29,7 @@ use warnings; > > # standard or CPAN modules used > use CGI; >+use Encode; > > # Koha modules used > use C4::Context; >@@ -78,7 +79,7 @@ if ($view eq 'card' || $view eq 'html') { > my $style_doc = $parser->parse_file($xslfile); > my $stylesheet = $xslt->parse_stylesheet($style_doc); > my $results = $stylesheet->transform($source); >- my $newxmlrecord = $stylesheet->output_string($results); >+ my $newxmlrecord = Encode::decode_utf8($stylesheet->output_string($results)); > print $input->header(), $newxmlrecord; > exit; > } else { >-- >1.6.0.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 6996
:
5822
|
5823
|
5827
|
5828
|
5831
|
5832
|
5850
|
5864
|
5956