Bugzilla – Attachment 5430 Details for
Bug 6869
Batch item modification fails if accented characters are used in the modification form.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Signed-off patch for 3.2
0001-SIGNED-OFF-3.2-Corrects-a-problem-in-batchMod.pl-whe.patch (text/plain), 1.20 KB, created by
Frédéric Demians
on 2011-09-14 20:10:21 UTC
(
hide
)
Description:
Signed-off patch for 3.2
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2011-09-14 20:10:21 UTC
Size:
1.20 KB
patch
obsolete
>From 9465c544a9e8b2218317d8f270ce9416b2b6e683 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= > <frederick.capovilla@sys-tech.net> >Date: Wed, 14 Sep 2011 15:20:33 -0400 >Subject: [PATCH] [SIGNED-OFF] [3.2] Corrects a problem in batchMod.pl when > accented characters are used. >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >The batch modification failed with a XML parsing error if any of the >modified fields contains accented characters. > >To be applied on 3.2 if this branch isn't orphean. > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> >--- > tools/batchMod.pl | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/tools/batchMod.pl b/tools/batchMod.pl >index c400ae9..aa683ad 100755 >--- a/tools/batchMod.pl >+++ b/tools/batchMod.pl >@@ -145,6 +145,7 @@ if ($op eq "action") { > } else { > if ($something_to_modify) { > my $xml = TransformHtmlToXml(\@tags,\@subfields,\@values,\@indicator,\@ind_tag, 'ITEM'); >+ utf8::encode($xml); > my $marcitem = MARC::Record::new_from_xml($xml, 'UTF-8'); > my $localitem = TransformMarcToKoha( $dbh, $marcitem, "", 'items' ); > my $localmarcitem=Item2Marc($itemdata); >-- >1.7.6.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 6869
:
5428
| 5430 |
5431