Browse Source

Bug 23846: Handle exception gracefully at the OPAC

I do not think we should have the same trick as the intranet, and
display a message. This should be enough.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
remotes/origin/19.11.x
Jonathan Druart 5 years ago
committed by Martin Renvoize
parent
commit
cce358f9af
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
  2. 1
      misc/maintenance/search_for_data_inconsistencies.pl
  3. 4
      opac/opac-detail.pl

2
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

@ -71,7 +71,7 @@
[% IF decoding_error %]
<div>
There is an error with this bibliographic record, the view may be degraded.
<br/> Error: [% decoding_error %]
<br/> Error: [% decoding_error | html %]
</div>
[% END %]
[% IF ( ocoins ) %]

1
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

4
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') ) {

Loading…
Cancel
Save