@@ -, +, @@ --- .../{ExpandAuthorizedValues.pm => ExpandCodedFields.pm} | 8 ++++---- t/db_dependent/Koha/Filter/ExpandAuthorizedValues.t | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename Koha/Filter/MARC/{ExpandAuthorizedValues.pm => ExpandCodedFields.pm} (94%) --- a/Koha/Filter/MARC/ExpandAuthorizedValues.pm +++ a/Koha/Filter/MARC/ExpandAuthorizedValues.pm @@ -1,4 +1,4 @@ -package Koha::Filter::MARC::ExpandAuthorizedValues; +package Koha::Filter::MARC::ExpandCodedFields; # Copyright 2022 PTFS Europe # @@ -19,7 +19,7 @@ package Koha::Filter::MARC::ExpandAuthorizedValues; =head1 NAME -Koha::Filter::MARC::ExpandAuthorizedValues - Replaces AV codes with descriptions in MARC::Record objects. +Koha::Filter::MARC::ExpandCodedFields - Replaces AV codes with descriptions in MARC::Record objects. =head1 SYNOPSIS @@ -32,7 +32,7 @@ Koha::Filter::MARC::ExpandAuthorizedValues - Replaces AV codes with descriptions my $record_processor = Koha::RecordProcessor->new( { - filters => ['ExpandAuthorizedValues'], + filters => ['ExpandCodedFields'], options => { interface => 'opac', } @@ -57,7 +57,7 @@ use Koha::Libraries; use Koha::ItemTypes; use base qw(Koha::RecordProcessor::Base); -our $NAME = 'ExpandAuthorizedValues'; +our $NAME = 'ExpandCodedFields'; =head2 filter --- a/t/db_dependent/Koha/Filter/ExpandAuthorizedValues.t +++ a/t/db_dependent/Koha/Filter/ExpandAuthorizedValues.t @@ -33,7 +33,7 @@ use Koha::RecordProcessor; my $schema = Koha::Database->schema(); my $builder = t::lib::TestBuilder->new(); -subtest 'ExpandAuthorizedValues tests' => sub { +subtest 'ExpandCodedFields tests' => sub { plan tests => 10; @@ -76,10 +76,10 @@ subtest 'ExpandAuthorizedValues tests' => sub { my $processor = Koha::RecordProcessor->new( { schema => 'MARC', - filters => ['ExpandAuthorizedValues'], + filters => ['ExpandCodedFields'], } ); - is( ref($processor), 'Koha::RecordProcessor', 'Created record processor with ExpandAuthorizedValues filter' ); + is( ref($processor), 'Koha::RecordProcessor', 'Created record processor with ExpandCodedFields filter' ); my $result = $processor->process( $record ); is( ref($result), 'MARC::Record', 'It returns a reference to a MARC::Record object' ); --