Bugzilla – Attachment 6107 Details for
Bug 7076
shelfpage renders OPAC XSLT bloc for intranet Lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7076: Lists render OPAC XSLT on staff side
Bug-7076-Lists-render-OPAC-XSLT-on-staff-side.patch (text/plain), 1.44 KB, created by
Chris Cormack
on 2011-10-28 22:25:21 UTC
(
hide
)
Description:
Bug 7076: Lists render OPAC XSLT on staff side
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-10-28 22:25:21 UTC
Size:
1.44 KB
patch
obsolete
>From 6c7bd9ca9a0b52f6b2909ad21c1eaa026f9e9362 Mon Sep 17 00:00:00 2001 >From: Ian Walls <ian.walls@bywatersolutions.com> >Date: Fri, 21 Oct 2011 11:43:17 -0400 >Subject: [PATCH] Bug 7076: Lists render OPAC XSLT on staff side > >Adds a small check in C4::VirtualShelves::Page::shelfpage to only render >OPACResultsXSLT if the $type is 'opac'. Since parsing the XML is such an expensive >thing, and the resulting XSLTBloc is not used on the staff side, this will increase >performance for Lists in the intranet > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > C4/VirtualShelves/Page.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm >index 161a7aa..8a17182 100644 >--- a/C4/VirtualShelves/Page.pm >+++ b/C4/VirtualShelves/Page.pm >@@ -209,7 +209,7 @@ sub shelfpage ($$$$$) { > my $record = GetMarcBiblio($biblionumber); > $this_item->{XSLTBloc} = > XSLTParse4Display($biblionumber, $record, 'Results', 'opac') >- if C4::Context->preference("OPACXSLTResultsDisplay"); >+ if C4::Context->preference("OPACXSLTResultsDisplay") && $type eq 'opac'; > > # the virtualshelfcontents table does not store these columns nor are they retrieved from the items > # and itemtypes tables, so I'm commenting them out for now to quiet the log -crn >-- >1.7.5.4
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 7076
:
6018
| 6107