Bug 25747: Don't display a comma when patron has no firstname
This patch adds a check for the existence of "firstname" to patron-title.inc so that if the patron has no firstname the "invert name" setting doesn't cause an unnecessary comma to appear. To test, apply the patch and locate or create a patron with no first name. - When checking out to the patron, examine the page title. It should say "Checking out to <lastname> (<cardnumber>). - When checking out to a patron with first and last name it should show as before, "Checking out to <lastname>, <firstname> (<cardnumber) Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
c3365a3596
commit
d2f136713e
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
|||
[%- IF data.category_type == 'I' -%]
|
||||
[%- data.surname | html %] [% IF data.othernames %] ([% data.othernames | html %])[% END -%]
|
||||
[%- ELSIF invert_name -%]
|
||||
[% data.title | $raw %][%- data.surname | html %], [% data.firstname | html %] [% IF data.othernames %] ([% data.othernames | html %]) [% END -%]
|
||||
[% data.title | $raw %][%- data.surname | html %][% IF ( data.firstname ) %], [% data.firstname | html %][% END %][% IF data.othernames %] ([% data.othernames | html %]) [% END -%]
|
||||
[%- ELSE -%]
|
||||
[% data.title | $raw %][%- data.firstname | html %] [% IF data.othernames %] ([% data.othernames | html %]) [% END %] [% data.surname | html -%]
|
||||
[%- END -%]
|
||||
|
|
Loading…
Reference in a new issue