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

(-)a/opac/opac-ISBDdetail.pl (-1 / +1 lines)
Lines 99-105 unless ( $patron and $patron->category->override_hidden_items ) { Link Here
99
}
99
}
100
100
101
my $record = $biblio->metadata->record;
101
my $record = $biblio->metadata->record;
102
my @items  = $biblio->items->filter_by_visible_in_opac({ patron => $patron })->as_list;
102
my @items  = $biblio->items->filter_by_visible_in_opac({ patron => $patron });
103
103
104
my $record_processor = Koha::RecordProcessor->new(
104
my $record_processor = Koha::RecordProcessor->new(
105
    {   filters => [ 'EmbedItems', 'ViewPolicy' ],
105
    {   filters => [ 'EmbedItems', 'ViewPolicy' ],
(-)a/opac/opac-reserve.pl (-2 / +1 lines)
Lines 461-467 foreach my $biblioNum (@biblionumbers) { Link Here
461
    my @notforloan_avs = Koha::AuthorisedValues->search_by_koha_field({ kohafield => 'items.notforloan', frameworkcode => $frameworkcode });
461
    my @notforloan_avs = Koha::AuthorisedValues->search_by_koha_field({ kohafield => 'items.notforloan', frameworkcode => $frameworkcode });
462
    my $notforloan_label_of = { map { $_->authorised_value => $_->opac_description } @notforloan_avs };
462
    my $notforloan_label_of = { map { $_->authorised_value => $_->opac_description } @notforloan_avs };
463
463
464
    my $visible_items = { map { $_->itemnumber => $_ } $biblio->items->filter_by_visible_in_opac( { patron => $patron } )->as_list };
464
    my $visible_items = { map { $_->itemnumber => $_ } $biblio->items->filter_by_visible_in_opac( { patron => $patron } ) };
465
465
466
    # Only keep the items that are visible in the opac (i.e. those in %visible_items)
466
    # Only keep the items that are visible in the opac (i.e. those in %visible_items)
467
    # FIXME: We should get rid of itemInfos altogether and use $visible_items
467
    # FIXME: We should get rid of itemInfos altogether and use $visible_items
468
- 

Return to bug 28906