From 69984391e4323e6e50206a72e46e71e136e11272 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=utf8 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ä Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- 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.39.5