Bugzilla – Attachment 5864 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]
[SIGNED-OFF] Bug 6996: Encoding problem in opac-showmarc
SIGNED-OFF-Bug-6996-Encoding-problem-in-opac-showm.patch (text/plain), 1.30 KB, created by
Katrin Fischer
on 2011-10-12 20:55:07 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 6996: Encoding problem in opac-showmarc
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-10-12 20:55:07 UTC
Size:
1.30 KB
patch
obsolete
>From 020b8b313e4cb2626b0d30e2d594cb1946e9d985 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 12 Oct 2011 14:43:53 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 6996: Encoding problem in opac-showmarc > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >No more encoding problems spotted. >--- > opac/opac-showmarc.pl | 7 +++++-- > 1 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/opac/opac-showmarc.pl b/opac/opac-showmarc.pl >index 4475512..673069e 100755 >--- a/opac/opac-showmarc.pl >+++ b/opac/opac-showmarc.pl >@@ -27,8 +27,11 @@ > use strict; > use warnings; > >+use open OUT=>':utf8', ':std'; >+ > # standard or CPAN modules used > use CGI; >+use Encode; > > # Koha modules used > use C4::Context; >@@ -79,8 +82,8 @@ if ($view eq 'card' || $view eq 'html') { > my $stylesheet = $xslt->parse_stylesheet($style_doc); > my $results = $stylesheet->transform($source); > my $newxmlrecord = $stylesheet->output_string($results); >- print $input->header(), $newxmlrecord; >- exit; >+ $newxmlrecord = Encode::decode_utf8($newxmlrecord) unless utf8::is_utf8($newxmlrecord); >+ print $input->header(-charset => 'UTF-8'), $newxmlrecord; > } else { > $record =GetMarcBiblio($biblionumber) unless $record; > $template->param( MARC_FORMATTED => $record->as_formatted ); >-- >1.7.4.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 6996
:
5822
|
5823
|
5827
|
5828
|
5831
|
5832
|
5850
|
5864
|
5956