[Koha-cvs] CVS: koha/acqui.simple additem.pl,1.33,1.34
Paul POULAIN
tipaul at users.sourceforge.net
Thu Sep 22 12:01:47 CEST 2005
Update of /cvsroot/koha/koha/acqui.simple
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6231/acqui.simple
Modified Files:
additem.pl
Log Message:
see mail on koha-devel : code cleaning on Search.pm + normalizing API + use of biblionumber everywhere (instead of bn, biblio, ...)
Index: additem.pl
===================================================================
RCS file: /cvsroot/koha/koha/acqui.simple/additem.pl,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** additem.pl 11 Aug 2005 09:00:07 -0000 1.33
--- additem.pl 22 Sep 2005 10:01:45 -0000 1.34
***************
*** 80,84 ****
# check for item barcode # being unique
my $addedolditem = MARCmarc2koha($dbh,$addeditem);
! my $exists = itemdata($addedolditem->{'barcode'});
push @errors,"barcode_not_unique" if($exists);
# if barcode exists, don't create, but report The problem.
--- 80,84 ----
# check for item barcode # being unique
my $addedolditem = MARCmarc2koha($dbh,$addeditem);
! my $exists = get_item_from_barcode($addedolditem->{'barcode'});
push @errors,"barcode_not_unique" if($exists);
# if barcode exists, don't create, but report The problem.
More information about the Koha-cvs
mailing list