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

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

Return to bug 33224