Bugzilla – Attachment 27923 Details for
Bug 12174
Zotero connection with Koha: problem with UTF-8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
file opac-export.pl is patched
0001-BUG-12174-This-patch-solves-the-bug-for-UTF-8-output.patch (text/plain), 1.58 KB, created by
Zeno Tajoli
on 2014-05-03 09:27:29 UTC
(
hide
)
Description:
file opac-export.pl is patched
Filename:
MIME Type:
Creator:
Zeno Tajoli
Created:
2014-05-03 09:27:29 UTC
Size:
1.58 KB
patch
obsolete
>From d89988fc479ea22f466fb8cd5562a83ff308fe53 Mon Sep 17 00:00:00 2001 >From: Zeno Tajoli <z.tajoli@cineca.it> >Date: Sat, 3 May 2014 11:09:25 +0200 >Subject: [PATCH] [BUG 12174]This patch solves the bug for UTF-8 output. MARC-8 > works only if you save it as a file. In fact the standard Internet stack > (browser, web server, etc.) doesn't know anything about MARC-8 or it's ISO > base (ISO 2022). > >To test the bug: >-- without the patch use Zotero on a recent Koha install with Apache. >You can use PTFS sandboxes. You can't use Biblibre sandboxes, they use Ngix. >-- Test a record with special chars. >-- Install the patch >-- Catch (using Zotero) the same record. >-- Test all directly download from Opac. >-- To check MARC-8, use a tool that support it. For example MarcEdit. >--- > opac/opac-export.pl | 15 +++++++++++---- > 1 file changed, 11 insertions(+), 4 deletions(-) > >diff --git a/opac/opac-export.pl b/opac/opac-export.pl >index 002c88e..8d76a1c 100755 >--- a/opac/opac-export.pl >+++ b/opac/opac-export.pl >@@ -91,8 +91,15 @@ if ($error){ > print $query->end_html(); > } > else { >- print $query->header( >- -type => 'application/octet-stream', >- -attachment=>"bib-$biblionumber.$format"); >- print $marc; >+ if ($format eq 'marc8'){ >+ print $query->header( >+ -type => 'application/marc', >+ -charset=>'ISO-2022', >+ -attachment=>"bib-$biblionumber.$format"); >+ }else{ >+ print $query->header( >+ -type => 'application/octet-stream', >+ -charset=>'utf-8', >+ -attachment=>"bib-$biblionumber.$format"); >+ } > } >-- >1.8.1.msysgit.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 12174
:
27923
|
27924
|
27925
|
29137
|
29138
|
30359
|
30360