[MT3191] various perl errors in script (merge conflict)
[koha.git] / members / members-home.pl
index 6206f2c..e497f4a 100755 (executable)
@@ -28,6 +28,7 @@ use C4::Category;
 
 my $query = new CGI;
 my $quicksearch = $query->param('quicksearch');
+my $branch = $query->param('branchcode');
 my ($template, $loggedinuser, $cookie);
 my $template_name;
 
@@ -52,11 +53,13 @@ if($quicksearch){
 }
 my @categories=C4::Category->all;
 $template->param(
-    branchloop=>GetBranchesLoop(),
+    branchloop=>(defined $branch?GetBranchesLoop($branch):GetBranchesLoop()),
        categoryloop=>\@categories,
 );
 $template->param( 
         "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1",
             );
+my @letters = map { {letter => $_} } ( 'A' .. 'Z');
+$template->param( letters => \@letters );
 
 output_html_with_http_headers $query, $cookie, $template->output;