Bug 7076: Lists render OPAC XSLT on staff side
authorIan Walls <ian.walls@bywatersolutions.com>
Fri, 21 Oct 2011 15:43:17 +0000 (11:43 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 4 Nov 2011 09:35:28 +0000 (10:35 +0100)
commita0a9368beccd1748e720966f25869259a30e68f2
tree4296bf038c06828ae04c9e1dae0314c8d8f02123
parent61e1eeee84083f835a85d43128f4b6cbeef636dd
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>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/VirtualShelves/Page.pm