Additional changes to fix Bug 3920, XSLTdetailDisplay syspref controls both OPAC...
authorOwen Leonard <oleonard@myacpl.org>
Wed, 10 Feb 2010 17:04:51 +0000 (12:04 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 11 Feb 2010 03:36:25 +0000 (22:36 -0500)
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 <gmcharlt@gmail.com>
C4/Auth.pm

index e156474..fe79fe5 100755 (executable)
@@ -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}]);