@@ -, +, @@ --- catalogue/detail.pl | 27 ++++++++++++++------------- opac/opac-detail.pl | 27 ++++++++++++++------------- 2 files changed, 28 insertions(+), 26 deletions(-) --- a/catalogue/detail.pl +++ a/catalogue/detail.pl @@ -215,20 +215,21 @@ foreach my $subscription (@subscriptions) { my $showcomp = C4::Context->preference('ShowComponentRecords'); if ( $showcomp eq 'both' || $showcomp eq 'staff' ) { if ( my $components = $biblio->get_marc_components(300) ) { - my $xslparts = C4::Context->preference('XSLTResultsDisplay') || "default"; - if ( $xslparts ) { - my $parts; - for my $part ( @{$components} ) { - $part = MARC::Record->new_from_xml( $part, 'UTF-8' ); - - push @{$parts}, - XSLTParse4Display( 1, $part, "XSLTResultsDisplay", 1, - undef, $sysxml, $xslparts, $lang, ); - } - $template->param( - ComponentParts => $parts - ); + my $parts; + for my $part ( @{$components} ) { + $part = MARC::Record->new_from_xml( $part, 'UTF-8' ); + + push @{$parts}, + XSLTParse4Display( + { + biblionumber => $biblionumber, + record => $part, + xsl_syspref => "XSLTResultsDisplay", + fix_amps => 1, + } + ); } + $template->param( ComponentParts => $parts ); } } --- a/opac/opac-detail.pl +++ a/opac/opac-detail.pl @@ -661,20 +661,21 @@ my $max_items_to_display = C4::Context->preference('OpacMaxItemsToDisplay') // 5 my $showcomp = C4::Context->preference('ShowComponentRecords'); if ( $showcomp eq 'both' || $showcomp eq 'opac' ) { if ( my $components = $biblio->get_marc_components(300) ) { - my $xslparts = C4::Context->preference('OPACXSLTResultsDisplay') || "default"; - if ( $xslparts ) { - my $parts; - for my $part ( @{$components} ) { - $part = MARC::Record->new_from_xml( $part, 'UTF-8' ); - - push @{$parts}, - XSLTParse4Display( 1, $part, "OPACXSLTResultsDisplay", 1, - undef, $sysxml, $xslparts, $lang, ); - } - $template->param( - ComponentParts => $parts - ); + my $parts; + for my $part ( @{$components} ) { + $part = MARC::Record->new_from_xml( $part, 'UTF-8' ); + + push @{$parts}, + XSLTParse4Display( + { + biblionumber => $biblionumber, + record => $part, + xsl_syspref => 'OPACXSLTResultsDisplay', + fix_amps => 1, + } + ); } + $template->param( ComponentParts => $parts ); } } --