Koha/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc
Jonathan Druart 855c8f47b7 Bug 12648: Fix conflict with bug 8096
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Patch fixes the regression found while testing. Thanks for the fast response Jonathan
2015-03-11 14:16:17 -03:00

27 lines
1.1 KiB
PHP

[%- IF ( borrower.borrowernumber ) %]
[%- IF borrower.category_type == 'I' %]
[%- borrower.surname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %]
[%- ELSE %]
[%- IF invert_name %]
[%- borrower.surname %], [% borrower.firstname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %]
[%- ELSE %]
[%- borrower.firstname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %] [% borrower.surname %]
[%- END -%]
[%- END -%]
[%- IF ( borrower.cardnumber ) -%]
([% borrower.cardnumber %])
[%- END %]
[%- ELSIF ( borrowernumber ) %]
[%- IF category_type == 'I' %]
[%- surname %] [% IF othernames %] ([% othernames %]) [% END %]
[%- ELSE %]
[%- IF invert_name %]
[%- surname %], [% firstname %] [% IF othernames %] ([% othernames %]) [% END %]
[%- ELSE %]
[%- firstname %] [% IF othernames %] ([% othernames %]) [% END %] [% surname %]
[%- END %]
[%- END -%]
[%- IF ( cardnumber ) -%]
([% cardnumber %])
[%- END %]
[%- END -%]