Bug 13632: QA follow-up: Tidy installer directories / update permissions.inc
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / patron-title.inc
index ac2f388..dbcab25 100644 (file)
@@ -1,23 +1,27 @@
-[% 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 %]
-    ([% borrower.cardnumber %])
-[% 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 %]
-    ([% cardnumber %])
-[% END %]
\ No newline at end of file
+[%- 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 -%]