Lines 106-112
if ($op eq "") {
Link Here
|
106 |
add_saved_job_results_to_template($template, $completedJobID); |
106 |
add_saved_job_results_to_template($template, $completedJobID); |
107 |
} else { |
107 |
} else { |
108 |
my $framework = $input->param('framework'); |
108 |
my $framework = $input->param('framework'); |
109 |
commit_batch($template, $import_batch_id, $framework); |
109 |
my $overlay_framework = $input->param('overlay_framework'); |
|
|
110 |
commit_batch($template, $import_batch_id, $framework, $overlay_framework); |
110 |
} |
111 |
} |
111 |
import_records_list($template, $import_batch_id, $offset, $results_per_page); |
112 |
import_records_list($template, $import_batch_id, $offset, $results_per_page); |
112 |
} elsif ($op eq "revert-batch") { |
113 |
} elsif ($op eq "revert-batch") { |
Lines 237-243
sub import_batches_list {
Link Here
|
237 |
} |
238 |
} |
238 |
|
239 |
|
239 |
sub commit_batch { |
240 |
sub commit_batch { |
240 |
my ($template, $import_batch_id, $framework) = @_; |
241 |
my ($template, $import_batch_id, $framework, $overlay_framework) = @_; |
241 |
|
242 |
|
242 |
my $job = undef; |
243 |
my $job = undef; |
243 |
$dbh->{AutoCommit} = 0; |
244 |
$dbh->{AutoCommit} = 0; |
Lines 247-253
sub commit_batch {
Link Here
|
247 |
$callback = progress_callback($job, $dbh); |
248 |
$callback = progress_callback($job, $dbh); |
248 |
} |
249 |
} |
249 |
my ($num_added, $num_updated, $num_items_added, $num_items_replaced, $num_items_errored, $num_ignored) = |
250 |
my ($num_added, $num_updated, $num_items_added, $num_items_replaced, $num_items_errored, $num_ignored) = |
250 |
BatchCommitRecords($import_batch_id, $framework, 50, $callback); |
251 |
BatchCommitRecords($import_batch_id, $framework, $overlay_framework, 50, $callback); |
251 |
$dbh->commit(); |
252 |
$dbh->commit(); |
252 |
|
253 |
|
253 |
my $results = { |
254 |
my $results = { |
254 |
- |
|
|