From 5fb0595207a8b272a9602b94df49d78c16dc3423 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=UTF-8 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 --- 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 feadc1a..4f79d6a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -55,7 +55,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 c89382b..899ce16 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.7.4