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 144-150 my $is_available; Link Here
144
my $items = $biblio->items;
144
my $items = $biblio->items;
145
145
146
while ( my $item = $items->next ) {
146
while ( my $item = $items->next ) {
147
    $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch)
147
    my $default_hold_pickup_location_pref = C4::Context->preference('DefaultHoldPickupLocation');
148
    my $pickup_branch;
149
    if( $default_hold_pickup_location_pref eq 'homebranch' ){
150
        $pickup_branch = $item->{homebranch} ? $item->{homebranch} : undef;
151
    } elsif ( $default_hold_pickup_location_pref eq 'holdingbranch' ){
152
        $pickup_branch = $item->{holdingbranch} ? $item->{holdingbranch} : undef;
153
    } else {
154
        $pickup_branch = $currentbranch;
155
    }
156
    $is_available = IsAvailableForItemLevelRequest($item, $patron, $pickup_branch)
148
      unless $is_available;
157
      unless $is_available;
149
}
158
}
150
159
(-)a/opac/opac-detail.pl (-2 / +10 lines)
Lines 686-692 else { Link Here
686
        $item_info->{holding_library_info} = $opac_info_holding->content if $opac_info_holding;
686
        $item_info->{holding_library_info} = $opac_info_holding->content if $opac_info_holding;
687
        $item_info->{home_library_info} = $opac_info_home->content if $opac_info_home;
687
        $item_info->{home_library_info} = $opac_info_home->content if $opac_info_home;
688
688
689
        $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch)
689
        my $default_hold_pickup_location_pref = C4::Context->preference('DefaultHoldPickupLocation');
690
        my $pickup_branch;
691
        if( $default_hold_pickup_location_pref eq 'homebranch' ){
692
            $pickup_branch = $item->homebranch ? $item->homebranch : undef;
693
        } elsif ( $default_hold_pickup_location_pref eq 'holdingbranch' ){
694
            $pickup_branch = $item->holdingbranch ? $item->holdingbranch : undef;
695
        } else {
696
            $pickup_branch = $currentbranch;
697
        }
698
        $is_available = IsAvailableForItemLevelRequest($item, $patron, $pickup_branch)
690
          unless $is_available;
699
          unless $is_available;
691
700
692
        # get collection code description, too
701
        # get collection code description, too
693
- 

Return to bug 30556