@@ -, +, @@ XSL-templates --- C4/XSLT.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/C4/XSLT.pm +++ a/C4/XSLT.pm @@ -172,7 +172,6 @@ sub XSLTParse4Display { $theme = C4::Context->preference("template"); $xslfile = C4::Context->preference('marcflavour') . "slim2intranetDetail.xsl"; - $shouldIPullInComponentPartRecords = 1; } elsif ($xslsyspref eq "XSLTResultsDisplay") { $htdocs = C4::Context->config('intrahtdocs'); $theme = C4::Context->preference("template"); @@ -183,7 +182,6 @@ sub XSLTParse4Display { $theme = C4::Context->preference("opacthemes"); $xslfile = C4::Context->preference('marcflavour') . "slim2OPACDetail.xsl"; - $shouldIPullInComponentPartRecords = 1; } elsif ($xslsyspref eq "OPACXSLTResultsDisplay") { $htdocs = C4::Context->config('opachtdocs'); $theme = C4::Context->preference("opacthemes"); @@ -198,6 +196,11 @@ sub XSLTParse4Display { $xslfilename =~ s/\{langcode\}/$lang/; } + ##Enable component part injection for Details XSLTs. + if ( $xslsyspref =~ m/Details/ ) { + $shouldIPullInComponentPartRecords = 1; + } + # grab the XML, run it through our stylesheet, push it out to the browser my $record = transformMARCXML4XSLT($biblionumber, $orig_record); --