Bugzilla – Attachment 91900 Details for
Bug 23407
XSLT Details pages don't use items, we shouldn't pass them
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23407: Don't process items for XSLT on details pages
Bug-23407-Dont-process-items-for-XSLT-on-details-p.patch (text/plain), 1.55 KB, created by
Nick Clemens (kidclamp)
on 2019-07-31 20:19:26 UTC
(
hide
)
Description:
Bug 23407: Don't process items for XSLT on details pages
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-07-31 20:19:26 UTC
Size:
1.55 KB
patch
obsolete
>From 294cfa9ad587b616ff19cbb920a0a02e66104fc9 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23407
:
91900
|
91916
|
92045
|
97850
|
97854
|
97855
|
97856