View | Details | Raw Unified | Return to bug 33224
Collapse All | Expand All

(-)a/opac/opac-reserve.pl (-7 / +6 lines)
Lines 492-504 foreach my $biblioNum (@biblionumbers) { Link Here
492
                $biblioLoopIter{force_hold} = 1 if $opac_hold_policy eq 'F';
492
                $biblioLoopIter{force_hold} = 1 if $opac_hold_policy eq 'F';
493
            }
493
            }
494
            $numCopiesAvailable++;
494
            $numCopiesAvailable++;
495
        }
495
496
496
            unless ( $can_place_hold_if_available_at_pickup ) {
497
        unless ( $can_place_hold_if_available_at_pickup ) {
497
                my $items_in_this_library = Koha::Items->search({ biblionumber => $item->biblionumber, holdingbranch => $item->holdingbranch, notforloan => 0 });
498
            my $items_in_this_library = Koha::Items->search({ biblionumber => $item->biblionumber, holdingbranch => $item->holdingbranch, notforloan => 0 });
498
                my $nb_of_items_issued = $items_in_this_library->search({ 'issue.itemnumber' => { not => undef }}, { join => 'issue' })->count;
499
            my $nb_of_items_issued = $items_in_this_library->search({ 'issue.itemnumber' => { not => undef }}, { join => 'issue' })->count;
499
                if ( $items_in_this_library->count > $nb_of_items_issued ) {
500
            if ( $items_in_this_library->count > $nb_of_items_issued ) {
500
                    push @not_available_at, $item->holdingbranch;
501
                push @not_available_at, $item->holdingbranch;
501
                }
502
            }
502
            }
503
        }
503
        }
504
504
505
- 

Return to bug 33224