Lines 174-179
if ( $op eq "cud-action" ) {
Link Here
|
174 |
my $job_id = Koha::BackgroundJob::BatchUpdateItem->new->enqueue($params); |
174 |
my $job_id = Koha::BackgroundJob::BatchUpdateItem->new->enqueue($params); |
175 |
$nextop = 'enqueued'; |
175 |
$nextop = 'enqueued'; |
176 |
$template->param( job_id => $job_id, ); |
176 |
$template->param( job_id => $job_id, ); |
|
|
177 |
|
178 |
if ( $input->param('edit-serial-issues') ) { |
179 |
my @linked_serial_ids = $input->multi_param('linked_serial_id'); |
180 |
my $subscriptionid = Koha::Serials->find( $linked_serial_ids[0] )->subscriptionid; |
181 |
my $redirect_url = "/cgi-bin/koha/serials/serials-edit.pl?"; |
182 |
for my $serial_id (@linked_serial_ids) { |
183 |
$redirect_url .= "serialid=$serial_id&"; |
184 |
} |
185 |
$redirect_url .= "subscriptionid=$subscriptionid"; |
186 |
print $input->redirect($redirect_url); |
187 |
exit; |
188 |
} |
177 |
} catch { |
189 |
} catch { |
178 |
push @messages, |
190 |
push @messages, |
179 |
{ |
191 |
{ |
Lines 270-275
if ( $op eq "cud-show" || $op eq "show" ) {
Link Here
|
270 |
$template->param( itemnumbers_array => \@itemnumbers ); |
282 |
$template->param( itemnumbers_array => \@itemnumbers ); |
271 |
} |
283 |
} |
272 |
|
284 |
|
|
|
285 |
my @linked_serial_ids; |
286 |
foreach my $itemnumber (@itemnumbers) { |
287 |
my $item = Koha::Items->find($itemnumber); |
288 |
my $serial_item = $item->serial_item; |
289 |
push( @linked_serial_ids, $serial_item->serialid ) if $serial_item; |
290 |
} |
291 |
$template->param( linked_serial_ids => \@linked_serial_ids ); |
292 |
$template->param( linked_serials => 1 ) if scalar(@linked_serial_ids) > 0; |
293 |
|
273 |
# now, build the item form for entering a new item |
294 |
# now, build the item form for entering a new item |
274 |
|
295 |
|
275 |
# Getting list of subfields to keep when restricted batchmod edit is enabled |
296 |
# Getting list of subfields to keep when restricted batchmod edit is enabled |
276 |
- |
|
|