Bugzilla – Attachment 5431 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]
Patch ported from 3.2 to 3.4
0001-Bug-6869-Batch-item-modification-fails-whit-accented.patch (text/plain), 1.23 KB, created by
Frédéric Demians
on 2011-09-14 20:11:13 UTC
(
hide
)
Description:
Patch ported from 3.2 to 3.4
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2011-09-14 20:11:13 UTC
Size:
1.23 KB
patch
obsolete
>From 7f60b4f5a183d24f97a9ee5fc72721826850124b Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Wed, 14 Sep 2011 21:44:49 +0200 >Subject: [PATCH] Bug 6869 Batch item modification fails whit accented > characters >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Corrects a problem in batchMod.pl when accented characters are used. > >When modifying multiple items in batchMod.pl, the batch modification >fails if accented characters are used in any of the fields of the >modification form. > >This is a port of Frédérick Capovilla patch from 3.2 to 3.4 version >--- > tools/batchMod.pl | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/tools/batchMod.pl b/tools/batchMod.pl >index 9d4431b..04cfc87 100755 >--- a/tools/batchMod.pl >+++ b/tools/batchMod.pl >@@ -135,6 +135,7 @@ if ($op eq "action") { > my ( $itemtagfield, $itemtagsubfield) = &GetMarcFromKohaField("items.itemnumber", ""); > if ($values_to_modify){ > my $xml = TransformHtmlToXml(\@tags,\@subfields,\@values,\@indicator,\@ind_tag, 'ITEM'); >+ utf8::encode($xml); > $marcitem = MARC::Record::new_from_xml($xml, 'UTF-8'); > } > if ($values_to_blank){ >-- >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