- my ($batch_id, $num_valid, $num_items, @import_errors) = BatchStageMarcRecords($record_type, $encoding, $marcrecord, $filename, $comments, '', $parse_items, 0, 50, staging_progress_callback($job, $dbh));
-
- $dbh->commit();
+ my ( $batch_id, $num_valid, $num_items, @import_errors ) =
+ BatchStageMarcRecords(
+ $record_type, $encoding,
+ $marcrecord, $filename,
+ $marc_modification_template, $comments,
+ '', $parse_items,
+ 0, 50,
+ staging_progress_callback( $job, $dbh )
+ );