Bug 35099: (bug 26314 follow-up) Fix detail view for records with invalid MARCXML

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-10-20 14:38:37 +02:00 committed by Tomas Cohen Arazi
parent b28f7ad0e6
commit f50d2c7d0e
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -270,7 +270,7 @@ if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
}
# Display volumes link
my $show_volumes = @{ $biblio->get_marc_volumes(1) } ? 1 : 0;
my $show_volumes = ( !$invalid_marc_record && @{ $biblio->get_marc_volumes(1) } ) ? 1 : 0;
# XSLT processing of some stuff
my $xslt_variables = {