Koha/catalogue
Jonathan Druart 068943f18d
Bug 23846: Display degraded view when MARCXML is invalid (staff detail)
When an invalid bibliographic record is imported into the catalogue
there is not warning or error. However the bibliographic record detail
page will explode (Koha::Biblio::Metadata->record will raise an
exception).

This patch proposes to catch the exception on this view and display a
warning about the situation.
Note that editing/saving the record will fix the MARCXML data and so
removes the warning (some black magic we should get rid of I suspect).

Test plan:
- Import a bibliographic record with invalid XML, you can add non
printable characters, like 0x1F (CTRL-V 1F with vim)
- Go to the detail page
=> Without this patch you get a 500
=> With this patch applied you get a "degraded view" with a warning
message, telling you what the error is.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-13 08:04:15 +00:00
..
detail.pl Bug 23846: Display degraded view when MARCXML is invalid (staff detail) 2019-11-13 08:04:15 +00:00
export.pl
getitem-ajax.pl Bug 22762: Fix items.collection display on receiving 2019-04-25 09:52:31 +00:00
image.pl
imageviewer.pl
ISBDdetail.pl Bug 23525: (bug 19289 follow-up) Use biblio's framework not ACQ 2019-10-28 12:22:16 +00:00
issuehistory.pl
itemsearch.pl Bug 23543: Adding Withdrawn to the Item Search 2019-10-03 10:53:11 +01:00
labeledMARCdetail.pl
MARCdetail.pl Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
moredetail.pl Bug 23049: Update existing code to use debit_type 2019-10-24 17:24:15 +01:00
search-history.pl
search.pl Bug 22592: Add index scan emulation to Elasticsearch 2019-11-03 07:51:04 +00:00
showmarc.pl
stockrotation.pl
updateitem.pl Bug 22927: Do not check an already lost item when marked as withdrawn or damaged 2019-10-09 14:29:53 +01:00