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

(-)a/Koha/Biblio.pm (-2 / +2 lines)
Lines 913-919 sub cover_images { Link Here
913
913
914
=head3 get_marc_notes
914
=head3 get_marc_notes
915
915
916
    $marcnotesarray = $biblio->get_marc_notes({ opac => 1 });
916
    $marcnotesarray = $biblio->get_marc_notes({ opac => 1, [ record => $marc ] });
917
917
918
Get all notes from the MARC record and returns them in an array.
918
Get all notes from the MARC record and returns them in an array.
919
The notes are stored in different fields depending on MARC flavour.
919
The notes are stored in different fields depending on MARC flavour.
Lines 928-934 sub get_marc_notes { Link Here
928
    my $opac = $params->{opac} // '0';
928
    my $opac = $params->{opac} // '0';
929
    my $interface = $params->{opac} ? 'opac' : 'intranet';
929
    my $interface = $params->{opac} ? 'opac' : 'intranet';
930
930
931
    my $record = $self->metadata->record;
931
    my $record = $params->{record} // $self->metadata->record;
932
    my $record_processor = Koha::RecordProcessor->new(
932
    my $record_processor = Koha::RecordProcessor->new(
933
        {
933
        {
934
            filters => [ 'ViewPolicy', 'ExpandCodedFields' ],
934
            filters => [ 'ViewPolicy', 'ExpandCodedFields' ],
(-)a/opac/opac-detail.pl (-2 / +1 lines)
Lines 796-802 if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { Link Here
796
    }
796
    }
797
}
797
}
798
798
799
my $marcnotesarray = $biblio->get_marc_notes({ opac => 1 });
799
my $marcnotesarray = $biblio->get_marc_notes({ opac => 1, record => $record });
800
800
801
if( C4::Context->preference('ArticleRequests') ) {
801
if( C4::Context->preference('ArticleRequests') ) {
802
    my $patron = $borrowernumber ? Koha::Patrons->find($borrowernumber) : undef;
802
    my $patron = $borrowernumber ? Koha::Patrons->find($borrowernumber) : undef;
803
- 

Return to bug 30744