From 294cfa9ad587b616ff19cbb920a0a02e66104fc9 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 31 Jul 2019 20:14:34 +0000 Subject: [PATCH] Bug 23407: Don't process items for XSLT on details pages To test: 1 - Add 1000 items to a record Go to biblio Edit items Add multiple copies of this item Add 1000 and confirm Wait.. 2 - Load the record in staff client and OPAC, note how long it takes Press F12 in browser to open the console use the Network tab of the console note th eload time refresh a few times to see average time 3 - Apply patch 4 - Restart all the things 5 - Reload the record in staff and opac 6 - Note decresed time 7 - Verify nothing on the page has changed QA can grep the standard XSLT files for details pages for 'item' to note occurences do not use items information --- C4/XSLT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 648bab28ab..5507a3f6ea 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -242,7 +242,7 @@ sub XSLTParse4Display { # grab the XML, run it through our stylesheet, push it out to the browser my $record = transformMARCXML4XSLT($biblionumber, $orig_record); - my $itemsxml = buildKohaItemsNamespace($biblionumber, $hidden_items); + my $itemsxml = buildKohaItemsNamespace($biblionumber, $hidden_items) unless $xslsyspref eq "OPACXSLTDetailsDisplay" || $xslsyspref eq "XSLTDetailsDisplay"; my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour')); $variables ||= {}; -- 2.11.0