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

--- Comment #3 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 200621
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200621&action=edit
Bug 42873: Use MARC::File::XML::Fast in Koha::Biblio::Metadata->record

When UseFastMARCDecode is enabled (default), Koha::Biblio::Metadata->record
decodes stored MARCXML with MARC::File::XML::Fast instead of
MARC::Record::new_from_xml, falling back to new_from_xml on any failure so a
record can never become un-decodable.

This is safe because store() (bug 35104) guarantees stored metadata is valid
MARCXML, making the read-time MARC::Field->new validation redundant.

Test plan:
1. prove t/db_dependent/Koha/Biblio/Metadata.t
2. With UseFastMARCDecode on, browse biblio detail pages; records render.
3. Toggle UseFastMARCDecode off; pages render identically.

-- 
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