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:
parent
6f36a3a6ba
commit
69984391e4
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue