diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index ea0c9d9f84..4f77b5c914 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -949,7 +949,7 @@ sub get_marc_notes { my %hiddenlist = map { $_ => 1 } split( /,/, C4::Context->preference('NotesToHide')); - my $record = $self->metadata->record; + my $record = $params->{record} // $self->metadata->record; $record = transformMARCXML4XSLT( $self->biblionumber, $record, $opac ); foreach my $field ( $record->field($scope) ) { diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 7219eef18e..acd20e6308 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -799,7 +799,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;