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

(-)a/opac/opac-ISBDdetail.pl (-1 / +10 lines)
Lines 179-185 my $res = GetISBDView({ Link Here
179
my $items = $biblio->items;
179
my $items = $biblio->items;
180
while ( my $item = $items->next ) {
180
while ( my $item = $items->next ) {
181
181
182
    $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch)
182
    my $default_hold_pickup_location_pref = C4::Context->preference('DefaultHoldPickupLocation');
183
    my $pickup_branch;
184
    if( $default_hold_pickup_location_pref eq 'homebranch' ){
185
        $pickup_branch = $item->{homebranch} ? $item->{homebranch} : undef;
186
    } elsif ( $default_hold_pickup_location_pref eq 'holdingbranch' ){
187
        $pickup_branch = $item->{holdingbranch} ? $item->{holdingbranch} : undef;
188
    } else {
189
        $pickup_branch = $currentbranch;
190
    }
191
    $is_available = IsAvailableForItemLevelRequest($item, $patron, $pickup_branch)
183
      unless $is_available;
192
      unless $is_available;
184
}
193
}
185
194
(-)a/opac/opac-MARCdetail.pl (-1 / +10 lines)
Lines 141-147 my $is_available; Link Here
141
$items->reset;
141
$items->reset;
142
142
143
while ( my $item = $items->next ) {
143
while ( my $item = $items->next ) {
144
    $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch)
144
    my $default_hold_pickup_location_pref = C4::Context->preference('DefaultHoldPickupLocation');
145
    my $pickup_branch;
146
    if( $default_hold_pickup_location_pref eq 'homebranch' ){
147
        $pickup_branch = $item->{homebranch} ? $item->{homebranch} : undef;
148
    } elsif ( $default_hold_pickup_location_pref eq 'holdingbranch' ){
149
        $pickup_branch = $item->{holdingbranch} ? $item->{holdingbranch} : undef;
150
    } else {
151
        $pickup_branch = $currentbranch;
152
    }
153
    $is_available = IsAvailableForItemLevelRequest($item, $patron, $pickup_branch)
145
      unless $is_available;
154
      unless $is_available;
146
}
155
}
147
156
(-)a/opac/opac-detail.pl (-2 / +10 lines)
Lines 682-688 else { Link Here
682
        $item_info->{holding_library_info} = $opac_info_holding->content if $opac_info_holding;
682
        $item_info->{holding_library_info} = $opac_info_holding->content if $opac_info_holding;
683
        $item_info->{home_library_info} = $opac_info_home->content if $opac_info_home;
683
        $item_info->{home_library_info} = $opac_info_home->content if $opac_info_home;
684
684
685
        $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch)
685
        my $default_hold_pickup_location_pref = C4::Context->preference('DefaultHoldPickupLocation');
686
        my $pickup_branch;
687
        if( $default_hold_pickup_location_pref eq 'homebranch' ){
688
            $pickup_branch = $item->homebranch ? $item->homebranch : undef;
689
        } elsif ( $default_hold_pickup_location_pref eq 'holdingbranch' ){
690
            $pickup_branch = $item->holdingbranch ? $item->holdingbranch : undef;
691
        } else {
692
            $pickup_branch = $currentbranch;
693
        }
694
        $is_available = IsAvailableForItemLevelRequest($item, $patron, $pickup_branch)
686
          unless $is_available;
695
          unless $is_available;
687
696
688
        # get collection code description, too
697
        # get collection code description, too
689
- 

Return to bug 30556