@@ -, +, @@ --- Koha/Biblio.pm | 4 ++-- opac/opac-detail.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/Koha/Biblio.pm +++ a/Koha/Biblio.pm @@ -913,7 +913,7 @@ sub cover_images { =head3 get_marc_notes - $marcnotesarray = $biblio->get_marc_notes({ opac => 1 }); + $marcnotesarray = $biblio->get_marc_notes({ opac => 1, [ record => $marc ] }); Get all notes from the MARC record and returns them in an array. The notes are stored in different fields depending on MARC flavour. @@ -928,7 +928,7 @@ sub get_marc_notes { my $opac = $params->{opac} // '0'; my $interface = $params->{opac} ? 'opac' : 'intranet'; - my $record = $self->metadata->record; + my $record = $params->{record} // $self->metadata->record; my $record_processor = Koha::RecordProcessor->new( { filters => [ 'ViewPolicy', 'ExpandCodedFields' ], --- a/opac/opac-detail.pl +++ a/opac/opac-detail.pl @@ -796,7 +796,7 @@ if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { } } -my $marcnotesarray = $biblio->get_marc_notes({ opac => 1 }); +my $marcnotesarray = $biblio->get_marc_notes({ opac => 1, record => $record }); if( C4::Context->preference('ArticleRequests') ) { my $patron = $borrowernumber ? Koha::Patrons->find($borrowernumber) : undef; --