[Koha-bugs] [Bug 30848] Introduce Koha::Filter::ExpandCodedFields
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 7 15:37:14 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30848
--- Comment #37 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 135770
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135770&action=edit
Bug 30848: Add an ExpandCodedFields RecordProcessor filter
This patch introduces a RecordProcessor filter for MARC::Record objects
that replaces Koha codes with descriptions in the MARC::Record passed to the
processor.
Target usage:
my $biblio = Koha::Biblios->find(
$biblio_id,
{ prefetch => [ metadata ] }
);
my $record = $biblio->metadata->record;
my $processor = Koha::RecordProcessor->new(
{
filters => ('ExpandCodedFields'),
options => {
interface => 'opac',
frameworkcode => $biblio->frameworkcode
}
}
);
$processor->process( $record );
Test plan
* Read the included unit test and confirm it makes sense and passes
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list