@@ -, +, @@ record --- Koha/Biblio.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/Koha/Biblio.pm +++ a/Koha/Biblio.pm @@ -767,7 +767,12 @@ sub get_volumes_query { # MARC21 Only for now return if ( C4::Context->preference('marcflavour') ne 'MARC21' ); - my $marc = $self->metadata->record; + # If the marc cannot be loaded, do not build the query + # the staff interface should already be displaying an error message in this case + # so we don't need to return the error + my $marc; + eval { $marc = $self->metadata->record;}; + return unless $marc; # Only build volumes query if we're in a 'Set' record # or we have a monographic series. --