https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35104 --- Comment #206 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 201716 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201716&action=edit Bug 35104: Catch invalid metadata and surface repair warnings in AddBiblio/ModBiblio AddBiblio/ModBiblio/ModBiblioMarc gain an optional warnings arrayref option: any repair messages recorded by Koha::Biblio::Metadata->store() (see previous commit) are appended to it via object_messages, so a caller can show the cataloguer what was automatically fixed instead of the fix happening invisibly. AddBiblio also now distinguishes Koha::Exceptions::Metadata::Invalid from other errors in its catch block and rethrows it, so a caller can tell "this record is unrecoverable" apart from an unexpected internal error and react accordingly (see following bugs for callers doing so). The inline StripNonXmlChars calls in TransformHtmlToMarc are removed, since stripping is now handled centrally and consistently by Koha::Biblio::Metadata->store() rather than ad-hoc at every call site. -- You are receiving this mail because: You are watching all bug changes.