View | Details | Raw Unified | Return to bug 26632
Collapse All | Expand All

(-)a/C4/ImportBatch.pm (-3 / +2 lines)
Lines 375-387 sub BatchStageMarcRecords { Link Here
375
375
376
            $num_valid++;
376
            $num_valid++;
377
            if ($record_type eq 'biblio') {
377
            if ($record_type eq 'biblio') {
378
                $import_record_id = AddBiblioToBatch($batch_id, $rec_num, $marc_record, $encoding, int(rand(99999)), 0);
378
                $import_record_id = AddBiblioToBatch($batch_id, $rec_num, $marc_record, $encoding, 0);
379
                if ($parse_items) {
379
                if ($parse_items) {
380
                    my @import_items_ids = AddItemsToImportBiblio($batch_id, $import_record_id, $marc_record, 0);
380
                    my @import_items_ids = AddItemsToImportBiblio($batch_id, $import_record_id, $marc_record, 0);
381
                    $num_items += scalar(@import_items_ids);
381
                    $num_items += scalar(@import_items_ids);
382
                }
382
                }
383
            } elsif ($record_type eq 'auth') {
383
            } elsif ($record_type eq 'auth') {
384
                $import_record_id = AddAuthToBatch($batch_id, $rec_num, $marc_record, $encoding, int(rand(99999)), 0, $marc_type);
384
                $import_record_id = AddAuthToBatch($batch_id, $rec_num, $marc_record, $encoding, 0, $marc_type);
385
            }
385
            }
386
        }
386
        }
387
    }
387
    }
388
- 

Return to bug 26632