@@ -, +, @@
---
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +-
opac/opac-detail.pl | 4 +++-
2 files changed, 4 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/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') ) {
--