62a6ed54bb
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>
8 lines
295 B
PHP
8 lines
295 B
PHP
[%- USE KohaDates -%]
|
|
[%- IF ( patron ) -%]
|
|
[%- IF ( patron.dateofbirth ) -%]
|
|
[% patron.dateofbirth | $KohaDates -%]
|
|
[%- IF ( patron.get_age ) %] ([% patron.get_age | html %])
|
|
[%- ELSIF ( patron.age ) %] ([% patron.age | html %])[% END -%]
|
|
[%- END -%]
|
|
[%- END -%]
|