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

(-)a/opac/opac-ISBDdetail.pl (-1 / +3 lines)
Lines 183-189 my $can_holds_be_placed = $patron ? 0 : $holdable_items; Link Here
183
if ($patron) {
183
if ($patron) {
184
    my $items = $biblio->items;
184
    my $items = $biblio->items;
185
    while ( my $item = $items->next ) {
185
    while ( my $item = $items->next ) {
186
        $can_holds_be_placed = $can_holds_be_placed || IsAvailableForItemLevelRequest( $item, $patron, undef );
186
        $can_holds_be_placed = $can_holds_be_placed
187
            || ( IsAvailableForItemLevelRequest( $item, $patron, undef )
188
            && CanItemBeReserved( $patron, $item, undef ) );
187
    }
189
    }
188
}
190
}
189
191
(-)a/opac/opac-MARCdetail.pl (-1 / +3 lines)
Lines 146-152 my $can_holds_be_placed = $patron ? 0 : $holdable_items; Link Here
146
if ($patron) {
146
if ($patron) {
147
    $items->reset;
147
    $items->reset;
148
    while ( my $item = $items->next ) {
148
    while ( my $item = $items->next ) {
149
        $can_holds_be_placed = $can_holds_be_placed || IsAvailableForItemLevelRequest( $item, $patron, undef );
149
        $can_holds_be_placed = $can_holds_be_placed
150
            || ( IsAvailableForItemLevelRequest( $item, $patron, undef )
151
            && CanItemBeReserved( $patron, $item, undef ) );
150
    }
152
    }
151
}
153
}
152
154
(-)a/opac/opac-detail.pl (-3 / +4 lines)
Lines 694-701 else { Link Here
694
694
695
        # We only need to check if we haven't determined holds can be placed
695
        # We only need to check if we haven't determined holds can be placed
696
        # and if we don't have patron, we have already decided
696
        # and if we don't have patron, we have already decided
697
        $can_holds_be_placed =
697
        $can_holds_be_placed = $can_holds_be_placed
698
            $can_holds_be_placed || $patron && IsAvailableForItemLevelRequest( $item, $patron, undef );
698
            || ( $patron
699
            && IsAvailableForItemLevelRequest( $item, $patron, undef )
700
            && CanItemBeReserved( $patron, $item, undef ) );
699
701
700
        # get collection code description, too
702
        # get collection code description, too
701
        my $ccode = $item->ccode;
703
        my $ccode = $item->ccode;
702
- 

Return to bug 32702