X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=C4%2FBreeding.pm;h=c588c64f8767f7154a52485b5b46e274cefdbee8;hb=1acf7a1fadfa2af2e18635c8b4251b120abcbfe3;hp=9003f9acb3dd7c2a25d8850ee43ad2aca2efa3e5;hpb=b06a289173d0f2e299b0c8652d59d47dc196062c;p=koha.git 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