Lines 107-117
unless ( $patron and $patron->category->override_hidden_items ) {
Link Here
|
107 |
my $record = $biblio->metadata->record; |
107 |
my $record = $biblio->metadata->record; |
108 |
my $marcflavour = C4::Context->preference("marcflavour"); |
108 |
my $marcflavour = C4::Context->preference("marcflavour"); |
109 |
|
109 |
|
|
|
110 |
my @visible_items = $biblio->items->as_list; |
111 |
@visible_items = |
112 |
grep { !$_->hidden_in_opac( { rules => $opachiddenitems_rules } ) } |
113 |
@visible_items |
114 |
unless $patron and $patron->category->override_hidden_items; |
115 |
|
116 |
|
110 |
my $record_processor = Koha::RecordProcessor->new({ |
117 |
my $record_processor = Koha::RecordProcessor->new({ |
111 |
filters => 'ViewPolicy', |
118 |
filters => [ 'EmbedItems', 'ViewPolicy' ], |
112 |
options => { |
119 |
options => { |
113 |
interface => 'opac', |
120 |
interface => 'opac', |
114 |
frameworkcode => $biblio->frameworkcode |
121 |
frameworkcode => $biblio->frameworkcode, |
|
|
122 |
items => \@visible_items |
115 |
} |
123 |
} |
116 |
}); |
124 |
}); |
117 |
$record_processor->process($record); |
125 |
$record_processor->process($record); |
Lines 305-311
foreach my $field (@fields) {
Link Here
|
305 |
} |
313 |
} |
306 |
else { |
314 |
else { |
307 |
$item->{ $subf[$i][0] } .= GetAuthorisedValueDesc( $field->tag(), $subf[$i][0], |
315 |
$item->{ $subf[$i][0] } .= GetAuthorisedValueDesc( $field->tag(), $subf[$i][0], |
308 |
$subf[$i][1], '', $tagslib, '', 'opac' ); |
316 |
$subf[$i][1], '', $tagslib, '', 'opac' ) // ""; |
309 |
} |
317 |
} |
310 |
|
318 |
|
311 |
my $kohafield = $tagslib->{ $field->tag() }->{ $subf[$i][0] }->{kohafield}; |
319 |
my $kohafield = $tagslib->{ $field->tag() }->{ $subf[$i][0] }->{kohafield}; |
312 |
- |
|
|