[Koha-patches] [PATCH] Bug 6869 Batch item modification fails whit accented characters

Frédéric Demians f.demians at tamil.fr
Wed Sep 14 22:01:10 CEST 2011


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



More information about the Koha-patches mailing list