[Koha-cvs] koha/acqui.simple addbiblio.pl [rel_2_2]
Henri-Damien LAURENT
laurenthdl at alinto.com
Thu Feb 15 19:28:59 CET 2007
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Henri-Damien LAURENT <hdl> 07/02/15 18:28:59
Modified files:
acqui.simple : addbiblio.pl
Log message:
Bug fixing : making multiple field adding work 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.58&r2=1.52.2.59
Patches:
Index: addbiblio.pl
===================================================================
RCS file: /sources/koha/koha/acqui.simple/Attic/addbiblio.pl,v
retrieving revision 1.52.2.58
retrieving revision 1.52.2.59
diff -u -b -r1.52.2.58 -r1.52.2.59
--- addbiblio.pl 3 Nov 2006 10:56:59 -0000 1.52.2.58
+++ addbiblio.pl 15 Feb 2007 18:28:59 -0000 1.52.2.59
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: addbiblio.pl,v 1.52.2.58 2006/11/03 10:56:59 hdl Exp $
+# $Id: addbiblio.pl,v 1.52.2.59 2007/02/15 18:28:59 hdl Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -501,7 +501,7 @@
# build indicator hash.
my @ind_tag = $input->param('ind_tag');
my @indicator = $input->param('indicator');
- if (C4::Context->preference('TemplateEncoding') eq "iso-8859-1") {
+ if (C4::Context->preference('marcflavour') eq "UNIMARC") {
my %indicators;
for (my $i=0;$i<=$#ind_tag;$i++) {
$indicators{$ind_tag[$i]} = $indicator[$i];
@@ -563,7 +563,7 @@
my @indicator = $input->param('indicator');
my $xml = MARChtml2xml(\@tags,\@subfields,\@values,\@indicator,\@ind_tag);
my $record;
- if (C4::Context->preference('TemplateEncoding') eq "iso-8859-1") {
+ if (C4::Context->preference('marcflavour') eq "UNIMARC") {
my %indicators;
for (my $i=0;$i<=$#ind_tag;$i++) {
$indicators{$ind_tag[$i]} = $indicator[$i];
More information about the Koha-cvs
mailing list