Koha::Filter::MARC::EmbedItems - Appends item information on MARC::Record objects.
my $biblio = Koha::Biblios->find( $biblio_id, { prefetch => [ items, metadata ] } );
my $patron = Koha::Patrons->find($loggedinuser);
my $record = $biblio->metadata->record; my @items = $biblio->items->filter_by_visible_in_opac({ patron => $patron })->as_list;
my $record_processor = Koha::RecordProcessor->new( { filters => ['EmbedItems'], options => { interface => 'opac', items => \@items } } );
$record_processor->process($record);
Filter to embed items information into MARC::Record objects.
Embed items into the MARC::Record object.