Lines 289-295
if ( $query->param('place_reserve') ) {
Link Here
|
289 |
unless ( $can_place_hold_if_available_at_pickup ) { |
289 |
unless ( $can_place_hold_if_available_at_pickup ) { |
290 |
my $items_in_this_library = Koha::Items->search({ biblionumber => $biblioNum, holdingbranch => $branch }); |
290 |
my $items_in_this_library = Koha::Items->search({ biblionumber => $biblioNum, holdingbranch => $branch }); |
291 |
my $nb_of_items_issued = $items_in_this_library->search({ 'issue.itemnumber' => { not => undef }}, { join => 'issue' })->count; |
291 |
my $nb_of_items_issued = $items_in_this_library->search({ 'issue.itemnumber' => { not => undef }}, { join => 'issue' })->count; |
292 |
if ( $items_in_this_library->count > $nb_of_items_issued ) { |
292 |
my $nb_of_items_unavailable = $items_in_this_library->search({ -or => { lost => { '!=' => 0 }, damaged => { '!=' => 0 }, } }); |
|
|
293 |
if ( $items_in_this_library->count > $nb_of_items_issued + $nb_of_items_unavailable ) { |
293 |
$canreserve = 0 |
294 |
$canreserve = 0 |
294 |
} |
295 |
} |
295 |
} |
296 |
} |
296 |
- |
|
|