|
Lines 234-239
foreach my $biblionumber (@biblionumbers) {
Link Here
|
| 234 |
$template->param( $canReserve->{status} => 1 ); |
234 |
$template->param( $canReserve->{status} => 1 ); |
| 235 |
$biblioloopiter{ $canReserve->{status} } = 1; |
235 |
$biblioloopiter{ $canReserve->{status} } = 1; |
| 236 |
} |
236 |
} |
|
|
237 |
elsif ( $canReserve->{status} eq 'NoItems' ) { |
| 238 |
$template->param('noitems' => 1); |
| 239 |
$biblioloopiter{noitems} = 1; |
| 240 |
} |
| 237 |
else { |
241 |
else { |
| 238 |
$biblioloopiter{ $canReserve->{status} } = 1; |
242 |
$biblioloopiter{ $canReserve->{status} } = 1; |
| 239 |
} |
243 |
} |
|
Lines 305-316
foreach my $biblionumber (@biblionumbers) {
Link Here
|
| 305 |
|
309 |
|
| 306 |
my $items = Koha::Items->search({ -or => { biblionumber => $biblionumber, itemnumber => { in => \@itemnumbers } } }); |
310 |
my $items = Koha::Items->search({ -or => { biblionumber => $biblionumber, itemnumber => { in => \@itemnumbers } } }); |
| 307 |
|
311 |
|
| 308 |
unless ( $items->count ) { |
|
|
| 309 |
# FIXME Then why do we continue? |
| 310 |
$template->param('noitems' => 1); |
| 311 |
$biblioloopiter{noitems} = 1; |
| 312 |
} |
| 313 |
|
| 314 |
## Here we go backwards again to create hash of biblioitemnumber to itemnumbers, |
312 |
## Here we go backwards again to create hash of biblioitemnumber to itemnumbers, |
| 315 |
## when by definition all of the itemnumber have the same biblioitemnumber |
313 |
## when by definition all of the itemnumber have the same biblioitemnumber |
| 316 |
my ( $iteminfos_of ); |
314 |
my ( $iteminfos_of ); |