|
Lines 201-221
if ($op eq "action") {
Link Here
|
| 201 |
} |
201 |
} |
| 202 |
if ( $completedJobID || !$runinbackground ) { |
202 |
if ( $completedJobID || !$runinbackground ) { |
| 203 |
# Once the job is done |
203 |
# Once the job is done |
| 204 |
# If we have a reasonable amount of items, we display them |
204 |
unless ($del) { |
| 205 |
if (scalar(@itemnumbers) <= ( C4::Context->preference("MaxItemsToDisplayForBatchDel") // 1000 ) ) { |
205 |
# If we have a reasonable amount of items, we display them |
| 206 |
$items_display_hashref=BuildItemsData(@itemnumbers); |
206 |
if (scalar(@itemnumbers) <= ( C4::Context->preference("MaxItemsToDisplayForBatchDel") // 1000 ) ) { |
| 207 |
} else { |
207 |
$items_display_hashref=BuildItemsData(@itemnumbers); |
| 208 |
# Else, we only display the barcode |
208 |
} else { |
| 209 |
my @simple_items_display = map { |
209 |
# Else, we only display the barcode |
| 210 |
my $itemnumber = $_; |
210 |
my @simple_items_display = map { |
| 211 |
my $item = Koha::Items->find($itemnumber); |
211 |
my $itemnumber = $_; |
| 212 |
{ |
212 |
my $item = Koha::Items->find($itemnumber); |
| 213 |
itemnumber => $itemnumber, |
213 |
{ |
| 214 |
barcode => $item ? ( $item->barcode // q{} ) : q{}, |
214 |
itemnumber => $itemnumber, |
| 215 |
biblionumber => $item ? $item->biblio->biblionumber : q{}, |
215 |
barcode => $item ? ( $item->barcode // q{} ) : q{}, |
| 216 |
}; |
216 |
biblionumber => $item ? $item->biblio->biblionumber : q{}, |
| 217 |
} @itemnumbers; |
217 |
}; |
| 218 |
$template->param("simple_items_display" => \@simple_items_display); |
218 |
} @itemnumbers; |
|
|
219 |
$template->param("simple_items_display" => \@simple_items_display); |
| 220 |
} |
| 219 |
} |
221 |
} |
| 220 |
|
222 |
|
| 221 |
if ($runinbackground) { |
223 |
if ($runinbackground) { |
| 222 |
- |
|
|