Bug 14039: Add the title to all places
[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 | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %]
4     [%- ELSE %]
5         [%- IF invert_name %]
6             [% 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 %]
7         [%- ELSE %]
8             [% 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 %]
9         [%- END -%]
10     [%- END -%]
11     [%- IF ( borrower.cardnumber ) -%]
12         ([% borrower.cardnumber | html %])
13     [%- END %]
14 [%- ELSIF ( borrowernumber ) %]
15     [%- IF category_type == 'I' %]
16         [%- surname | html %] [% IF othernames %] ([% othernames | html %]) [% END %]
17     [%- ELSE %]
18         [%- IF invert_name %]
19             [% IF title %]<span class="patron-title">[%- title | html %]</span> [% END %][%- surname | html %], [% firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %]
20         [%- ELSE %]
21             [% IF title %]<span class="patron-title">[%- title | html %]</span> [% END %][%- firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [% surname | html %]
22         [%- END %]
23     [%- END -%]
24     [%- IF ( cardnumber ) -%]
25         ([% cardnumber | html %])
26     [%- END %]
27 [%- END -%]