From 62a6ed54bbb77f5512293255fe9be7548724c556 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 21 Feb 2019 19:45:49 +0000 Subject: [PATCH] Bug 15400: (follow-up) Updating text display MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Katrin Fischer Signed-off-by: Michal Denar Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index 948a95c075..98a5d07be0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -53,7 +53,7 @@ [% END %] [% IF ( patron.dateofbirth ) %]
  • - Date of birth: + Born: [% INCLUDE 'patron-age.inc' %]
  • [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc index c89382b641..899ce163c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc @@ -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 -%] -- 2.39.5