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 105-111 Link Here
105
                    obj._renderItem = function( ul, item ) {
105
                    obj._renderItem = function( ul, item ) {
106
                        var itemString = "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>";
106
                        var itemString = "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>";
107
                        if( item.dateofbirth ) {
107
                        if( item.dateofbirth ) {
108
                            itemString += item.dateofbirth + " (" + item.age + " " +  _("years") + "), ";
108
                            itemString += item.dateofbirth + "<span class=\"age_years\"> (" + item.age + " " +  _("years") + ")</span>, ";
109
                        }
109
                        }
110
                        itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
110
                        itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
111
                        return $( "<li></li>" )
111
                        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