Jonathan Druart
38526ca13a
There are other scripts where the borrower variable is not defined and the fields are passed one by one. To have a consistent behaviour we should add the title at the different places. Note that this script also add the use of the include file for statistics.tt and remove the pass of parameters to the template, already done later: 99 $template->param(%$borrower); Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
27 lines
1.6 KiB
PHP
27 lines
1.6 KiB
PHP
[%- IF ( borrower.borrowernumber ) %]
|
|
[%- IF borrower.category_type == 'I' %]
|
|
[%- borrower.surname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- IF invert_name %]
|
|
[% IF borrower.title %]<span class="patron-title">[%- borrower.title | html %]</span> [% END %][%- borrower.surname | html %], [% borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %]
|
|
[%- ELSE %]
|
|
[% IF borrower.title %]<span class="patron-title">[%- borrower.title | html %]</span> [% END %][%- borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] [% borrower.surname | html %]
|
|
[%- END -%]
|
|
[%- END -%]
|
|
[%- IF ( borrower.cardnumber ) -%]
|
|
([% borrower.cardnumber | html %])
|
|
[%- END %]
|
|
[%- ELSIF ( borrowernumber ) %]
|
|
[%- IF category_type == 'I' %]
|
|
[%- surname | html %] [% IF othernames %] ([% othernames | html %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- IF invert_name %]
|
|
[% IF title %]<span class="patron-title">[%- title | html %]</span> [% END %][%- surname | html %], [% firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %]
|
|
[%- ELSE %]
|
|
[% IF title %]<span class="patron-title">[%- title | html %]</span> [% END %][%- firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [% surname | html %]
|
|
[%- END %]
|
|
[%- END -%]
|
|
[%- IF ( cardnumber ) -%]
|
|
([% cardnumber | html %])
|
|
[%- END %]
|
|
[%- END -%]
|