[Koha-bugs] [Bug 29652] New: Move Koha::Biblio->get_marc_* to Koha::Biblio::Metadata
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Dec 7 13:14:50 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29652
Bug ID: 29652
Summary: Move Koha::Biblio->get_marc_* to
Koha::Biblio::Metadata
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: tomascohen at gmail.com
QA Contact: testopia at bugs.koha-community.org
When you look at the methods code, you notice
- It is tied to the Koha::Biblio::Metadata->record
- The code branches depending on information that is passed, that is already
present at the Koha::Biblio::Metadata object/level (MARCFLAVOUR=schema, the
record itself)
There should still exist a Koha::Biblio->authors/notes method to retrieve this
information at that level, but calling the metadata object methods.
This way the caller could do:
my $biblio = Koha::Biblios->find( $biblio_id, { prefetch => ['biblio_metadata']
} );
and even save some queries.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list