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.
---
 C4/Auth.pm |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/C4/Auth.pm b/C4/Auth.pm
index e156474..fe79fe5 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}]);
-- 
1.6.3.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to