Bug 15400: (follow-up) Updating text display

Now shows as 'Born: [date of birth] (age)' in circ sidebar menu and
search results

Sponsored-by: Catalyst IT

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Michal Denar <black23@gmail.com>

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:
Aleisha Amohia 2019-02-21 19:45:49 +00:00 committed by Jonathan Druart
parent 2cc3d05d26
commit 62a6ed54bb
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@
[% END %]
[% IF ( patron.dateofbirth ) %]
<li>
<span class="label">Date of birth:</span>
<span class="label">Born:</span>
[% INCLUDE 'patron-age.inc' %]
</li>
[% END %]

View file

@ -2,7 +2,7 @@
[%- IF ( patron ) -%]
[%- IF ( patron.dateofbirth ) -%]
[% patron.dateofbirth | $KohaDates -%]
[%- IF ( patron.get_age ) %] ([% patron.get_age | html %] years)
[%- ELSIF ( patron.age ) %] ([% patron.age | html %] years)[% END -%]
[%- IF ( patron.get_age ) %] ([% patron.get_age | html %])
[%- ELSIF ( patron.age ) %] ([% patron.age | html %])[% END -%]
[%- END -%]
[%- END -%]