From bb110c9a049d871892e63afa82404e3815720ea0 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 20 May 2022 10:08:11 +0000 Subject: [PATCH] Bug 30813: Remove Koha::MetadataRecord::getKohaField MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was essentially a wrapper around TransformKohaToMarcOneField After changing and updating, it seems easier not to create the intermediary object and to just transform the data Signed-off-by: Martin Renvoize Signed-off-by: Joonas Kylmälä --- Koha/MetadataRecord.pm | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Koha/MetadataRecord.pm b/Koha/MetadataRecord.pm index 840f63b386..b288d98c1d 100644 --- a/Koha/MetadataRecord.pm +++ b/Koha/MetadataRecord.pm @@ -109,17 +109,4 @@ sub createMergeHash { } } -=head2 getKohaField - - $metadata->{$key} = $record->getKohaField($kohafield); - -=cut - -sub getKohaField { - my ($self, $kohafield) = @_; - if ($self->schema =~ m/marc/) { - return C4::Biblio::TransformMarcToKoha({ kohafields => [$kohafield], record => $self->record}); - } -} - 1; -- 2.30.2