Lines 99-111
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 = grep { !$_->hidden_in_opac({ rules => $opachiddenitems_rules }) } @{$biblio->items->as_list} ; |
102 |
my $marcflavour = C4::Context->preference("marcflavour"); |
103 |
my $marcflavour = C4::Context->preference("marcflavour"); |
103 |
|
104 |
|
104 |
my $record_processor = Koha::RecordProcessor->new({ |
105 |
my $record_processor = Koha::RecordProcessor->new({ |
105 |
filters => 'ViewPolicy', |
106 |
filters => [ 'ViewPolicy', 'EmbedItems' ], |
106 |
options => { |
107 |
options => { |
107 |
interface => 'opac', |
108 |
interface => 'opac', |
108 |
frameworkcode => $biblio->frameworkcode |
109 |
frameworkcode => $biblio->frameworkcode, |
|
|
110 |
items => \@items |
109 |
} |
111 |
} |
110 |
}); |
112 |
}); |
111 |
$record_processor->process($record); |
113 |
$record_processor->process($record); |
112 |
- |
|
|