From 074a6e11e20a36bb25b1081ac8b3fc973817f3ab Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Thu, 18 Apr 2019 09:27:30 +0000 Subject: [PATCH] Bug 15400: (follow-up) Add class to years span Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc index 3193357d05..9b8152b413 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc @@ -97,7 +97,7 @@ obj._renderItem = function( ul, item ) { var itemString = "" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") "; if( item.dateofbirth ) { - itemString += item.dateofbirth + " (" + item.age + " " + _("years") + "), "; + itemString += item.dateofbirth + " (" + item.age + " " + _("years") + "), "; } itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + ""; return $( "
  • " ) 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 4dc3c333f2..adc14161fa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc @@ -4,6 +4,6 @@ [%- IF ( patron.dateofbirth ) -%] [%- patron.dateofbirth | $KohaDates %] [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%] - [% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %] + [% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %] [%- END -%] [%- END -%] -- 2.11.0