https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42569

            Bug ID: 42569
           Summary: Refactor Koha::Biblio->get_coins to use
                    MetadataExtractor
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
        Depends on: 42567

Koha::Biblio->get_coins contains inline MARC parsing that extracts
authors, title, ISBN, ISSN, publisher, year, and pages from the record
in a flavor-dependent way (MARC21 vs UNIMARC) to build a COinS/OpenURL
string.

This should be refactored to use the MetadataExtractor pattern:
- Add extraction methods for the fields get_coins needs (authors, title,
  publication info, host record info)
- Simplify get_coins to call the extractor and assemble the OpenURL string

This is a larger refactoring than the single-field extractions (OCLC, UPC,
EAN) since get_coins extracts multiple fields with conditional logic based
on leader values.

Depends on Bug 42567.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42567
[Bug 42567] Remove C4::Koha::GetNormalizedEAN in favor of MetadataExtractor
-- 
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]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to