From 8b5a6674e9608499c089afb05b8c84fdeaa72634 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 Content-Type: text/plain; charset=utf-8 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ä Signed-off-by: Marcel de Rooy --- 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.20.1