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

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2022-05-20 10:08:11 +00:00 committed by Tomas Cohen Arazi
parent 6f36a3a6ba
commit 69984391e4
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 0 additions and 13 deletions

View File

@ -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;