<<

NAME

Koha::Biblio::Metadata::Extractor::MARC - Extract specific metadata from MARC::Record objects

API

Class methods

new

    my $extractor = Koha::Biblio::Metadata::Extractor::MARC->new({ biblio => $biblio });

Constructor for the Koha::Biblio::Metadata::Extractor::MARC class.

metadata

    my $metadata = $marc_extractor->metadata;

Return a MARC record.

get_control_number

    my $control_number = $extractor->get_control_number();

Returns the control number/record identifier as extracted from the metadata. It returns an empty string if no 001 present or if undef.

_normalize_string

    my $normalized_string = $self->_normalize_string($string);

Returns a normalized string (remove dashes)

AUTHOR

Tomas Cohen Arazi, <tomascohen@theke.io>

Jonathan Druart, <jonathan.druart@bugs.koha-community.org>

<<