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

--- Comment #5 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 204737
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204737&action=edit
Bug 43026: Use repair_marcxml to show structured errors when loading an
already-corrupt record

The biblio detail page load path (unrelated to bug 35104 itself) fell
back to a raw StripNonXmlChars + exception dump when a record was
already undecodable before it could be displayed. That gave a much
less useful message than the per-fault breakdown already shown
elsewhere for faults introduced/fixed during a fresh save.

Try the same repair_marcxml() used on save first; only fall back to the
old StripNonXmlChars + raw exception display if repair_marcxml cannot
identify a known-recoverable fault (i.e. the record is genuinely
unrecoverable by this mechanism).

Also guards the metadata_warning lookups added in the previous commit
(both here and in MARCdetail.pl) against a biblio with no metadata row
at all, which would otherwise crash the page outright.

Based-on-patch-by: Nick Clemens <[email protected]>
Sponsored-by: OpenFifth

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
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/

Reply via email to