X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fmembers-home.pl;h=1d8f1e5e9afedf864619021b344af7a1138f1f84;hb=2249ee1216ed004e61a34bc821d216f3471ef87b;hp=830800e0ab7d7b517493a90f7f04b6f06e94be2b;hpb=0fff79d6b464eb9e053ed568234e43695fbec66b;p=koha_fer diff --git a/members/members-home.pl b/members/members-home.pl index 830800e0ab..1d8f1e5e9a 100755 --- a/members/members-home.pl +++ b/members/members-home.pl @@ -26,6 +26,7 @@ use C4::Context; use C4::Members; use C4::Branch; use C4::Category; +use Koha::Borrower::Modifications; my $query = new CGI; my $branch = $query->param('branchcode'); @@ -76,11 +77,15 @@ else { $template->param(categories=>\@categories); } + +my $pending_borrower_modifications = + Koha::Borrower::Modifications->GetPendingModificationsCount( $branch ); + $template->param( "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1", no_add => $no_add, + pending_borrower_modifications => $pending_borrower_modifications, ); -my @letters = map { {letter => $_} } ( 'A' .. 'Z'); -$template->param( letters => \@letters ); +$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ); output_html_with_http_headers $query, $cookie, $template->output;