[Koha-bugs] [Bug 34828] Add Koha::MetadataExtractor class
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 5 19:22:59 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34828
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #156567|0 |1
is obsolete| |
--- Comment #18 from David Nind <david at davidnind.com> ---
Created attachment 156577
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=156577&action=edit
Bug 34828: Add Koha::Biblio::Metadata::Extractor::MARC
and inherit from it
The new usage is now:
1. With a Koha::Biblio object
my $extractor = Koha::Biblio::Metadata::Extractor->new({biblio => $biblio});
$extractor->get_normalized_upc;
or
2. With a MARC::Record
my $extractor = Koha::Biblio::Metadata::Extractor->new({metadata=>
$biblio->metadata->record});
$extractor->get_normalized_upc;
Note that there are "Inconsistent hierarchy during C3 merge of class"
warnings raised by the QA script. We could remove them by replacing the
'use' by 'require' in Koha::Biblio::Metadata::Extractor::MARC (in ->new)
but that's suboptimal.
Signed-off-by: David Nind <david at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list