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 + " (" + item.age + "<span class=\"age_years\"> " +  _("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 / +2 lines)
Lines 1-9 Link Here
1
[%- USE KohaDates -%]
1
[%- USE KohaDates -%]
2
[%- USE I18N -%]
2
[%- USE I18N -%]
3
[%- USE raw -%]
3
[%- IF ( patron ) -%]
4
[%- IF ( patron ) -%]
4
    [%- IF ( patron.dateofbirth ) -%]
5
    [%- IF ( patron.dateofbirth ) -%]
5
        [%- patron.dateofbirth | $KohaDates %]
6
        [%- patron.dateofbirth | $KohaDates %]
6
        [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%]
7
        [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%]
7
        [% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]
8
        [% I18N.tnx('({age}{span_start} year{span_end})', '({age}{span_start} years{span_end})', age, { age => age, span_start => '<span class=\'age_years\'>', span_end => '</span>' }) | $raw %]
8
   [%- END -%]
9
   [%- END -%]
9
[%- END -%]
10
[%- END -%]
10
- 

Return to bug 15400