Koha/koha-tmpl/intranet-tmpl/prog/en
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
..
data Bug 19648: Revise marc21_field_007.xml 2019-04-12 01:47:51 +00:00
includes Bug 23751: Make staffaccess permission description more precise 2019-11-07 13:11:58 +00:00
modules Bug 23846: Display degraded view when MARCXML is invalid (staff detail) 2019-11-13 08:04:15 +00:00
xslt Bug 23506: Display correct icon in staff client and OPAC 2019-11-03 07:43:31 +00:00
columns.def Bug 14570: Make it possible to add multiple guarantors to a record 2019-08-20 16:04:48 +01:00