[Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2]

paul poulain paul at koha-fr.org
Fri Sep 22 17:49:50 CEST 2006


CVSROOT:	/cvsroot/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	paul poulain <tipaul>	06/09/22 15:49:50

Modified files:
	acqui.simple   : addbiblio.pl 

Log message:
	fixing indicator bugs for UNIMARC

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/acqui.simple/addbiblio.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.52.2.54&r2=1.52.2.55

Patches:
Index: addbiblio.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/Attic/addbiblio.pl,v
retrieving revision 1.52.2.54
retrieving revision 1.52.2.55
diff -u -b -r1.52.2.54 -r1.52.2.55
--- addbiblio.pl	13 Sep 2006 14:28:56 -0000	1.52.2.54
+++ addbiblio.pl	22 Sep 2006 15:49:50 -0000	1.52.2.55
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# $Id: addbiblio.pl,v 1.52.2.54 2006/09/13 14:28:56 tipaul Exp $
+# $Id: addbiblio.pl,v 1.52.2.55 2006/09/22 15:49:50 tipaul Exp $
 
 # Copyright 2000-2002 Katipo Communications
 #
@@ -563,7 +563,11 @@
 	my $xml = MARChtml2xml(\@tags,\@subfields,\@values,\@indicator,\@ind_tag);
     my $record;
 	if (C4::Context->preference('TemplateEncoding') eq "iso-8859-1") {
-		$record = MARChtml2marc($dbh,\@tags,\@subfields,\@values,\@indicator,\@ind_tag);
+        my %indicators;
+        for (my $i=0;$i<=$#ind_tag;$i++) {
+            $indicators{$ind_tag[$i]} = $indicator[$i];
+        }
+		$record = MARChtml2marc($dbh,\@tags,\@subfields,\@values,%indicators);
 	} else {
 		my $xml = MARChtml2xml(\@tags,\@subfields,\@values,\@indicator,\@ind_tag);
 		$record=MARC::Record->new_from_xml($xml,C4::Context->preference('TemplateEncoding'),C4::Context->preference('marcflavour'));





More information about the Koha-cvs mailing list