Lines 41-58
use Koha::BackgroundJob::BatchUpdateItem;
Link Here
|
41 |
use Koha::UI::Form::Builder::Item; |
41 |
use Koha::UI::Form::Builder::Item; |
42 |
use Koha::UI::Table::Builder::Items; |
42 |
use Koha::UI::Table::Builder::Items; |
43 |
|
43 |
|
44 |
my $input = CGI->new; |
44 |
my $input = CGI->new; |
45 |
my $dbh = C4::Context->dbh; |
45 |
my $dbh = C4::Context->dbh; |
46 |
my $error = $input->param('error'); |
46 |
my $error = $input->param('error'); |
47 |
my @itemnumbers = $input->multi_param('itemnumber'); |
47 |
my @itemnumbers = $input->multi_param('itemnumber'); |
48 |
my $biblionumber = $input->param('biblionumber'); |
48 |
my $biblionumber = $input->param('biblionumber'); |
49 |
my $op = $input->param('op'); |
49 |
my $op = $input->param('op'); |
50 |
my $del = $input->param('del'); |
50 |
my $del = $input->param('del'); |
51 |
my $del_records = $input->param('del_records'); |
51 |
my $del_records = $input->param('del_records'); |
52 |
my $src = $input->param('src'); |
52 |
my $del_serial_issues = $input->param('del_serial_issues'); |
53 |
my $use_default_values = $input->param('use_default_values'); |
53 |
my $src = $input->param('src'); |
|
|
54 |
my $use_default_values = $input->param('use_default_values'); |
54 |
my $exclude_from_local_holds_priority = $input->param('exclude_from_local_holds_priority'); |
55 |
my $exclude_from_local_holds_priority = $input->param('exclude_from_local_holds_priority'); |
55 |
my $mark_items_returned = $input->param('mark_items_returned'); |
56 |
my $mark_items_returned = $input->param('mark_items_returned'); |
56 |
|
57 |
|
57 |
my $template_name; |
58 |
my $template_name; |
58 |
my $template_flag; |
59 |
my $template_flag; |
Lines 91-98
if ( $op eq "cud-action" ) {
Link Here
|
91 |
if ($del) { |
92 |
if ($del) { |
92 |
try { |
93 |
try { |
93 |
my $params = { |
94 |
my $params = { |
94 |
record_ids => \@itemnumbers, |
95 |
record_ids => \@itemnumbers, |
95 |
delete_biblios => $del_records, |
96 |
delete_biblios => $del_records, |
|
|
97 |
delete_serial_issues => $del_serial_issues, |
96 |
}; |
98 |
}; |
97 |
my $job_id = |
99 |
my $job_id = |
98 |
Koha::BackgroundJob::BatchDeleteItem->new->enqueue($params); |
100 |
Koha::BackgroundJob::BatchDeleteItem->new->enqueue($params); |
99 |
- |
|
|