From 765d59fd4912f1b2ec691fc58a036642f2230b2e 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 e120610f89..24ca90de98 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 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.11.0