@@ -, +, @@ 99 $template->param(%$borrower); --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc | 8 ++++---- koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt | 4 ++-- members/statistics.pl | 3 --- 3 files changed, 6 insertions(+), 9 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc @@ -3,9 +3,9 @@ [%- borrower.surname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] [%- ELSE %] [%- IF invert_name %] - [%- borrower.surname | html %], [% borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] + [% IF borrower.title %][%- borrower.title | html %] [% END %][%- borrower.surname | html %], [% borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] [%- ELSE %] - [% IF borrower.title %] [%- borrower.title | html %] [% END %][%- borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] [% borrower.surname | html %] + [% IF borrower.title %][%- borrower.title | html %] [% END %][%- borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] [% borrower.surname | html %] [%- END -%] [%- END -%] [%- IF ( borrower.cardnumber ) -%] @@ -16,9 +16,9 @@ [%- surname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [%- ELSE %] [%- IF invert_name %] - [%- surname | html %], [% firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] + [% IF title %][%- title | html %] [% END %][%- surname | html %], [% firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [%- ELSE %] - [%- firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [% surname | html %] + [% IF title %][%- title | html %] [% END %][%- firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [% surname | html %] [%- END %] [%- END -%] [%- IF ( cardnumber ) -%] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt @@ -26,7 +26,7 @@ Statistics for [% INCLUDE 'patron-title.inc' %]
@@ -36,7 +36,7 @@ Statistics for [% INCLUDE 'patron-title.inc' %]
[% INCLUDE 'members-toolbar.inc' %] -

Statistics for [% UNLESS ( I ) %][% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])

+

Statistics for [% INCLUDE 'patron-title.inc' %]

[% IF ( datas.size ) %] --- a/members/statistics.pl +++ a/members/statistics.pl @@ -59,9 +59,6 @@ my $borrower= $patron->unblessed; $borrower->{description} = $category->description; $borrower->{category_type} = $category->category_type; -foreach my $key ( keys %$borrower ) { - $template->param( $key => $borrower->{$key} ); -} $template->param( categoryname => $borrower->{'description'}, ); --