Bugzilla – Attachment 135717 Details for
Bug 30848
Introduce Koha::Filter::ExpandCodedFields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30848: Rename to ExpandCodedFields
Bug-30848-Rename-to-ExpandCodedFields.patch (text/plain), 3.17 KB, created by
Martin Renvoize (ashimema)
on 2022-06-06 10:44:21 UTC
(
hide
)
Description:
Bug 30848: Rename to ExpandCodedFields
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-06-06 10:44:21 UTC
Size:
3.17 KB
patch
obsolete
>From 82771a77f28f0c2fd1e9d1db12fd231aa4afdf15 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30848
:
135338
|
135353
|
135363
|
135364
|
135386
|
135387
|
135388
|
135418
|
135421
|
135422
|
135423
|
135424
|
135425
|
135707
|
135708
|
135709
|
135710
|
135711
|
135712
|
135713
|
135714
|
135715
|
135716
|
135717
|
135770
|
136025
|
136026
|
136027
|
136259
|
136260
|
136261
|
136262
|
136774
|
136775
|
136776
|
136777