Bug 11759: (follow-up) Some fixes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / patron-title.inc
1 [%- IF ( borrower.borrowernumber ) %]
2     [%- IF borrower.category_type == 'I' %]
3         [%- borrower.surname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %]
4     [%- ELSE %]
5         [%- IF invert_name %]
6             [%- borrower.surname %], [% borrower.firstname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %]
7         [%- ELSE %]
8             [%- borrower.firstname %] [% IF borrower.othernames %] ([% borrower.othernames %]) [% END %] [% borrower.surname %]
9         [%- END -%]
10     [%- END -%]
11     [%- IF ( borrower.cardnumber ) -%]
12         ([% borrower.cardnumber %])
13     [%- END %]
14 [%- ELSIF ( borrowernumber ) %]
15     [%- IF category_type == 'I' %]
16         [%- surname %] [% IF othernames %] ([% othernames %]) [% END %]
17     [%- ELSE %]
18         [%- IF invert_name %]
19             [%- surname %], [% firstname %] [% IF othernames %] ([% othernames %]) [% END %]
20         [%- ELSE %]
21             [%- firstname %] [% IF othernames %] ([% othernames %]) [% END %] [% surname %]
22         [%- END %]
23     [%- END -%]
24     [%- IF ( cardnumber ) -%]
25         ([% cardnumber %])
26     [%- END %]
27 [%- END -%]