Lines 187-192
if ( $op eq "cud-action" ) {
Link Here
|
187 |
my $job_id = Koha::BackgroundJob::BatchUpdateItem->new->enqueue($params); |
187 |
my $job_id = Koha::BackgroundJob::BatchUpdateItem->new->enqueue($params); |
188 |
$nextop = 'enqueued'; |
188 |
$nextop = 'enqueued'; |
189 |
$template->param( job_id => $job_id, ); |
189 |
$template->param( job_id => $job_id, ); |
|
|
190 |
|
191 |
if ( $input->param('edit-serial-issues') ) { |
192 |
my @linked_serial_ids = $input->multi_param('linked_serial_id'); |
193 |
my $subscriptionid = Koha::Serials->find( $linked_serial_ids[0] )->subscriptionid; |
194 |
my $redirect_url = "/cgi-bin/koha/serials/serials-edit.pl?"; |
195 |
for my $serial_id (@linked_serial_ids) { |
196 |
$redirect_url .= "serialid=$serial_id&"; |
197 |
} |
198 |
$redirect_url .= "subscriptionid=$subscriptionid"; |
199 |
print $input->redirect($redirect_url); |
200 |
exit; |
201 |
} |
190 |
} catch { |
202 |
} catch { |
191 |
push @messages, |
203 |
push @messages, |
192 |
{ |
204 |
{ |
Lines 283-288
if ( $op eq "cud-show" || $op eq "show" ) {
Link Here
|
283 |
$template->param( itemnumbers_array => \@itemnumbers ); |
295 |
$template->param( itemnumbers_array => \@itemnumbers ); |
284 |
} |
296 |
} |
285 |
|
297 |
|
|
|
298 |
my @linked_serial_ids; |
299 |
foreach my $itemnumber (@itemnumbers) { |
300 |
my $item = Koha::Items->find($itemnumber); |
301 |
my $serial_item = $item->serial_item; |
302 |
push( @linked_serial_ids, $serial_item->serialid ) if $serial_item; |
303 |
} |
304 |
$template->param( linked_serial_ids => \@linked_serial_ids ); |
305 |
$template->param( linked_serials => 1 ) if scalar(@linked_serial_ids) > 0; |
306 |
|
286 |
# now, build the item form for entering a new item |
307 |
# now, build the item form for entering a new item |
287 |
|
308 |
|
288 |
# Getting list of subfields to keep when restricted batchmod edit is enabled |
309 |
# Getting list of subfields to keep when restricted batchmod edit is enabled |
289 |
- |
|
|