From 2bd7a42b7c5eba95fecfd70711fdf675702e9f72 Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Fri, 20 May 2022 10:08:11 +0000
Subject: [PATCH] Bug 30813: Remove Koha::MetadataRecord::getKohaField
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
---
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