X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=reports%2Fborrowers_stats.pl;h=c4203b6f8c41d7e9eeb27edb3c0156dc6c0e4f18;hb=9b9803b69c8bde879768ccfa3cc4688ef46b7799;hp=a7e656fdd4c7a530d754b18b784786080c3f0a3e;hpb=a3a2dbb8cda01f9dc6fb3f3ed015998794869719;p=koha.git diff --git a/reports/borrowers_stats.pl b/reports/borrowers_stats.pl index a7e656fdd4..c4203b6f8c 100755 --- a/reports/borrowers_stats.pl +++ b/reports/borrowers_stats.pl @@ -65,9 +65,6 @@ my $output = $input->param("output"); my $basename = $input->param("basename"); our $sep = $input->param("sep"); $sep = "\t" if ($sep and $sep eq 'tabulation'); -my $selected_branch; # = $input->param("?"); - -our $branches = GetBranches; my ($template, $borrowernumber, $cookie) = get_template_and_user({template_name => $fullreportname, @@ -121,13 +118,6 @@ if ($do_it) { my $req; my $patron_categories = Koha::Patron::Categories->search({}, {order_by => ['description']}); $template->param( patron_categories => $patron_categories ); - my @branchloop; - foreach (sort {$branches->{$a}->{branchname} cmp $branches->{$b}->{branchname}} keys %$branches) { - my $line = {branchcode => $_, branchname => $branches->{$_}->{branchname} || 'UNKNOWN'}; - $line->{selected} = 'selected' if ($selected_branch and $selected_branch eq $_); - push @branchloop, $line; - } - $template->param(BRANCH_LOOP => \@branchloop); $req = $dbh->prepare("SELECT DISTINCTROW zipcode FROM borrowers WHERE zipcode IS NOT NULL AND zipcode <> '' ORDER BY zipcode"); $req->execute; $template->param( ZIP_LOOP => $req->fetchall_arrayref({}));