From 79b8fca2b1412aa1f9af3364653059fd290d5962 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 10 Feb 2010 12:04:51 -0500 Subject: [PATCH] Additional changes to fix Bug 3920, XSLTdetailDisplay syspref controls both OPAC and Intranet This patch adds XSLTDetailsDisplay and XSLTResultsDisplay variables for the staff client, OPACXSLTDetailsDisplay and OPACXSLTResultsDisplay variables to the OPAC. Note that the XSLTResultsDisplay doesn't actually do anything because no one has added an XSLT version of search results to the staff client. Signed-off-by: Galen Charlton --- C4/Auth.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index e156474ba8..fe79fe5c9d 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -350,8 +350,8 @@ sub get_template_and_user { 'item-level_itypes' => C4::Context->preference('item-level_itypes'), patronimages => C4::Context->preference("patronimages"), singleBranchMode => C4::Context->preference("singleBranchMode"), - OPACXSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), - OPACXSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), + XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), + XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), BranchesLoop => GetBranchesLoop(), ); @@ -453,6 +453,8 @@ sub get_template_and_user { virtualshelves => "" . C4::Context->preference("virtualshelves"), OPACSerialIssueDisplayCount => C4::Context->preference("OPACSerialIssueDisplayCount"), OpacAddMastheadLibraryPulldown => C4::Context->preference("OpacAddMastheadLibraryPulldown"), + OPACXSLTDetailsDisplay => C4::Context->preference("OPACXSLTDetailsDisplay"), + OPACXSLTResultsDisplay => C4::Context->preference("OPACXSLTResultsDisplay") ); } $template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]); -- 2.39.5