Lines 433-445
sub BatchStageMarcRecords {
Link Here
|
433 |
|
433 |
|
434 |
$num_valid++; |
434 |
$num_valid++; |
435 |
if ($record_type eq 'biblio') { |
435 |
if ($record_type eq 'biblio') { |
436 |
$import_record_id = AddBiblioToBatch($batch_id, $rec_num, $marc_record, $encoding, int(rand(99999)), 0); |
436 |
$import_record_id = AddBiblioToBatch($batch_id, $rec_num, $marc_record, $encoding, 0); |
437 |
if ($parse_items) { |
437 |
if ($parse_items) { |
438 |
my @import_items_ids = AddItemsToImportBiblio($batch_id, $import_record_id, $marc_record, 0); |
438 |
my @import_items_ids = AddItemsToImportBiblio($batch_id, $import_record_id, $marc_record, 0); |
439 |
$num_items += scalar(@import_items_ids); |
439 |
$num_items += scalar(@import_items_ids); |
440 |
} |
440 |
} |
441 |
} elsif ($record_type eq 'auth') { |
441 |
} elsif ($record_type eq 'auth') { |
442 |
$import_record_id = AddAuthToBatch($batch_id, $rec_num, $marc_record, $encoding, int(rand(99999)), 0, $marc_type); |
442 |
$import_record_id = AddAuthToBatch($batch_id, $rec_num, $marc_record, $encoding, 0, $marc_type); |
443 |
} |
443 |
} |
444 |
} |
444 |
} |
445 |
} |
445 |
} |
446 |
- |
|
|