View | Details | Raw Unified | Return to bug 15400
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc (-1 / +1 lines)
Lines 97-103 Link Here
97
                    obj._renderItem = function( ul, item ) {
97
                    obj._renderItem = function( ul, item ) {
98
                        var itemString = "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>";
98
                        var itemString = "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>";
99
                        if( item.dateofbirth ) {
99
                        if( item.dateofbirth ) {
100
                            itemString += item.dateofbirth + " (" + item.age + " " +  _("years") + "), ";
100
                            itemString += item.dateofbirth + "<span class=\"age_years\"> (" + item.age + " " +  _("years") + ")</span>, ";
101
                        }
101
                        }
102
                        itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
102
                        itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
103
                        return $( "<li></li>" )
103
                        return $( "<li></li>" )
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc (-2 / +1 lines)
Lines 4-9 Link Here
4
    [%- IF ( patron.dateofbirth ) -%]
4
    [%- IF ( patron.dateofbirth ) -%]
5
        [%- patron.dateofbirth | $KohaDates %]
5
        [%- patron.dateofbirth | $KohaDates %]
6
        [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%]
6
        [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%]
7
        [% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]
7
        <span class='age_years'>[% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]</span>
8
   [%- END -%]
8
   [%- END -%]
9
[%- END -%]
9
[%- END -%]
10
- 

Return to bug 15400