@@ -, +, @@ --- Koha/Biblio.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/Koha/Biblio.pm +++ a/Koha/Biblio.pm @@ -24,6 +24,7 @@ use URI; use URI::Escape qw( uri_escape_utf8 ); use C4::Koha qw( GetNormalizedISBN ); +use C4::XSLT qw( XSLTParse4Display ); use Koha::Database; use Koha::DateUtils qw( dt_from_string ); @@ -829,7 +830,14 @@ sub get_marc_notes { my %hiddenlist = map { $_ => 1 } split( /,/, C4::Context->preference('NotesToHide')); - foreach my $field ( $self->metadata->record->field($scope) ) { + my $record = $self->metadata->record; + + my $xslfile = C4::Context->preference('XSLTDetailsDisplay') || 'default'; + my $lang = $xslfile ? C4::Languages::getlanguage() : undef; + my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef; + XSLTParse4Display( $self->biblionumber, $record, "XSLTDetailsDisplay", 1, undef, $sysxml, $xslfile, $lang, undef ); + + foreach my $field ( $record->field($scope) ) { my $tag = $field->tag(); next if $hiddenlist{ $tag }; next if $opac && $maybe_private{$tag} && !$field->indicator(1); --