@@ -, +, @@
---
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +-
misc/maintenance/search_for_data_inconsistencies.pl | 1 +
opac/opac-detail.pl | 4 +++-
3 files changed, 5 insertions(+), 2 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -71,7 +71,7 @@
[% IF decoding_error %]
There is an error with this bibliographic record, the view may be degraded.
-
Error: [% decoding_error %]
+
Error: [% decoding_error | html %]
[% END %]
[% IF ( ocoins ) %]
--- a/misc/maintenance/search_for_data_inconsistencies.pl
+++ a/misc/maintenance/search_for_data_inconsistencies.pl
@@ -154,4 +154,5 @@ Catch data inconsistencies in Koha database
then items.itype must be set else biblioitems.itemtype must be set
* Item types defined in items or biblioitems must be defined in the itemtypes table
* Invalid MARCXML in bibliographic records
+
=cut
--- a/opac/opac-detail.pl
+++ a/opac/opac-detail.pl
@@ -845,8 +845,10 @@ $template->param(
content_identifier_exists => $content_identifier_exists,
);
+# Catch the exception as Koha::Biblio::Metadata->record can explode if the MARCXML is invalid
# COinS format FIXME: for books Only
-$template->param( ocoins => $biblio->get_coins );
+my $coins = eval { $biblio->get_coins };
+$template->param( ocoins => $coins );
my ( $loggedincommenter, $reviews );
if ( C4::Context->preference('reviewson') ) {
--