<<

NAME

Koha::Filter::MARC::EmbedItems - Appends item information on MARC::Record objects.

SYNOPSIS

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);

DESCRIPTION

Filter to embed items information into MARC::Record objects.

filter

Embed items into the MARC::Record object.

<<