https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43059
Bug ID: 43059
Summary: Remove C4::Biblio::GetMarcPrice in favor of
MetadataExtractor
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Depends on: 43058
Target Milestone: ---
GetMarcPrice extracts a price from MARC fields and normalizes it
via MungeMarcPrice. This is a straightforward MetadataExtractor
candidate:
- MARC21: 345$c, 020$c
- UNIMARC: 345$d, 010$d, 071$d
Callers to migrate:
- acqui/addorderiso2709.pl
- acqui/neworderempty.pl
- Koha/MarcOrder.pm
All callers pass a MARC::Record and marcflavour explicitly, making
them direct fits for the extractor pattern.
MungeMarcPrice (price normalization) should be inlined into the
extractor method as a private helper.
Steps:
1. Add get_marc_price to MARC21 and UNIMARC extractors
2. Expose as $biblio->marc_price (convenience)
3. Migrate callers
4. Remove GetMarcPrice and MungeMarcPrice from C4::Biblio
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43058
[Bug 43058] Remove C4::Items::get_hostitemnumbers_of in favor of
Koha::Biblio->host_items
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/