Lines 40-46
use C4::Biblio qw( GetFrameworkCode );
Link Here
|
40 |
use C4::Charset qw( StripNonXmlChars ); |
40 |
use C4::Charset qw( StripNonXmlChars ); |
41 |
use Koha::XSLT::Base; |
41 |
use Koha::XSLT::Base; |
42 |
use Koha::Biblios; |
42 |
use Koha::Biblios; |
43 |
use Koha::Filter::MARC::EmbedSeeFromHeadings; |
|
|
44 |
|
43 |
|
45 |
use MARC::Record; |
44 |
use MARC::Record; |
46 |
|
45 |
|
Lines 196-202
sub get_biblio_marcxml {
Link Here
|
196 |
$record = $biblio->metadata->record_strip_nonxml( { embed_items => $with_items, opac => 1 } ); |
195 |
$record = $biblio->metadata->record_strip_nonxml( { embed_items => $with_items, opac => 1 } ); |
197 |
} |
196 |
} |
198 |
if ($record) { |
197 |
if ($record) { |
199 |
Koha::Filter::MARC::EmbedSeeFromHeadings->filter($record) if $embedseefromheadings; |
198 |
if ( $embedseefromheadings ) { |
|
|
199 |
my $record_processor = Koha::RecordProcessor->new( |
200 |
{ |
201 |
filters => [ 'EmbedSeeFromHeadings' ], |
202 |
} |
203 |
); |
204 |
$record_processor->process($record); |
205 |
} |
200 |
my $rules = C4::Context->yaml_preference('OpacHiddenItems') // {}; |
206 |
my $rules = C4::Context->yaml_preference('OpacHiddenItems') // {}; |
201 |
if ( $biblio->hidden_in_opac( { rules => $rules } ) ) { |
207 |
if ( $biblio->hidden_in_opac( { rules => $rules } ) ) { |
202 |
return; |
208 |
return; |
203 |
- |
|
|