From 82771a77f28f0c2fd1e9d1db12fd231aa4afdf15 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 6 Jun 2022 11:29:56 +0100 Subject: [PATCH] Bug 30848: Rename to ExpandCodedFields --- .../{ExpandAuthorizedValues.pm => ExpandCodedFields.pm} | 8 ++++---- .../{ExpandAuthorizedValues.t => ExpandCodedFields.t} | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename Koha/Filter/MARC/{ExpandAuthorizedValues.pm => ExpandCodedFields.pm} (94%) rename t/db_dependent/Koha/Filter/{ExpandAuthorizedValues.t => ExpandCodedFields.t} (96%) diff --git a/Koha/Filter/MARC/ExpandAuthorizedValues.pm b/Koha/Filter/MARC/ExpandCodedFields.pm similarity index 94% rename from Koha/Filter/MARC/ExpandAuthorizedValues.pm rename to Koha/Filter/MARC/ExpandCodedFields.pm index 6c7b2a6837..a0286e13b2 100644 --- a/Koha/Filter/MARC/ExpandAuthorizedValues.pm +++ b/Koha/Filter/MARC/ExpandCodedFields.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 diff --git a/t/db_dependent/Koha/Filter/ExpandAuthorizedValues.t b/t/db_dependent/Koha/Filter/ExpandCodedFields.t similarity index 96% rename from t/db_dependent/Koha/Filter/ExpandAuthorizedValues.t rename to t/db_dependent/Koha/Filter/ExpandCodedFields.t index d8f18af0de..5028e38681 100644 --- a/t/db_dependent/Koha/Filter/ExpandAuthorizedValues.t +++ b/t/db_dependent/Koha/Filter/ExpandCodedFields.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' ); -- 2.20.1