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 109-115 Link Here
109
                        }
109
                        }
110
                        var itemString = "<a href=\"" + item.link + "\">" + item.surname + ", " + item.firstname + cardnumber + " <small>";
110
                        var itemString = "<a href=\"" + item.link + "\">" + item.surname + ", " + item.firstname + cardnumber + " <small>";
111
                        if( item.dateofbirth ) {
111
                        if( item.dateofbirth ) {
112
                            itemString += item.dateofbirth + " (" + item.age + " " +  _("years") + "), ";
112
                            itemString += item.dateofbirth + "<span class=\"age_years\"> (" + item.age + " " +  _("years") + ")</span>, ";
113
                        }
113
                        }
114
                        itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
114
                        itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
115
                        return $( "<li></li>" )
115
                        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