Bug 3360: Fix for unclosed <ol> element in export.tmpl
[koha.git] / members / members-home.pl
index 3114606..32531c2 100755 (executable)
@@ -19,9 +19,8 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
-
+use C4::Members;
 
 my $query = new CGI;
 my $quicksearch = $query->param('quicksearch');
@@ -39,7 +38,7 @@ if($quicksearch){
                  });
 } else {
 ($template, $loggedinuser, $cookie)
-    = get_template_and_user({template_name => "members/members-home.tmpl",
+    = get_template_and_user({template_name => "members/member.tmpl",
                  query => $query,
                  type => "intranet",
                  authnotrequired => 0,
@@ -47,9 +46,13 @@ if($quicksearch){
                  debug => 1,
                  });
 }
+$template->param( 
+        "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1",
+            );
+if (C4::Context->preference("AddPatronLists")=~/code/){
+    my $categories=GetBorrowercategoryList;
+    $categories->[0]->{'first'}=1;
+    $template->param(categories=>$categories);  
+}  
 
-$template->param(intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
-        intranetstylesheet => C4::Context->preference("intranetstylesheet"),
-        IntranetNav => C4::Context->preference("IntranetNav"),
-        );
 output_html_with_http_headers $query, $cookie, $template->output;