Bug 9811: Patron search improvement
[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     ([% borrower.cardnumber %])
12 [%- ELSIF ( borrowernumber ) %]
13     [%- IF category_type == 'I' %]
14         [%- surname %] [% IF othernames %] ([% othernames %]) [% END %]
15     [%- ELSE %]
16         [%- IF invert_name %]
17             [%- surname %], [% firstname %] [% IF othernames %] ([% othernames %]) [% END %]
18         [%- ELSE %]
19             [%- firstname %] [% IF othernames %] ([% othernames %]) [% END %] [% surname %]
20         [%- END %]
21     [%- END -%]
22     ([% cardnumber -%])
23 [%- END -%]