View | Details | Raw Unified | Return to bug 35099
Collapse All | Expand All

(-)a/Koha/Biblio.pm (-2 / +6 lines)
Lines 767-773 sub get_volumes_query { Link Here
767
    # MARC21 Only for now
767
    # MARC21 Only for now
768
    return if ( C4::Context->preference('marcflavour') ne 'MARC21' );
768
    return if ( C4::Context->preference('marcflavour') ne 'MARC21' );
769
769
770
    my $marc = $self->metadata->record;
770
    # If the marc cannot be loaded, do not build the query
771
    # the staff interface should already be displaying an error message in this case
772
    # so we don't need to return the error
773
    my $marc;
774
    eval { $marc = $self->metadata->record;};
775
    return unless $marc;
771
776
772
    # Only build volumes query if we're in a 'Set' record
777
    # Only build volumes query if we're in a 'Set' record
773
    # or we have a monographic series.
778
    # or we have a monographic series.
774
- 

Return to bug 35099