X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FBreeding.pm;h=c588c64f8767f7154a52485b5b46e274cefdbee8;hb=5d4d33b22d72e16a4f6a4579ea4c2d98dfa091ab;hp=9003f9acb3dd7c2a25d8850ee43ad2aca2efa3e5;hpb=76d52d89e4b5a25454a65198e50f2fe0475566bd;p=koha_gimpoz diff --git a/C4/Breeding.pm b/C4/Breeding.pm index 9003f9acb3..c588c64f87 100644 --- a/C4/Breeding.pm +++ b/C4/Breeding.pm @@ -76,13 +76,7 @@ sub ImportBreeding { my $dbh = C4::Context->dbh; - my $batch_id = 0; - if ($batch_type eq 'z3950') { - $batch_id = GetZ3950BatchId($filename); - } else { - # create a new one - $batch_id = AddImportBatch('create_new', 'staging', 'batch', $filename, ''); - } + my $batch_id = GetZ3950BatchId($filename); my $searchisbn = $dbh->prepare("select biblioitemnumber from biblioitems where isbn=?"); my $searchissn = $dbh->prepare("select biblioitemnumber from biblioitems where issn=?"); # FIXME -- not sure that this kind of checking is actually needed