obj._renderItem = function( ul, item ) {
var itemString = "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>";
if( item.dateofbirth ) {
itemString += item.dateofbirth + " (" + item.age + " " + _("years") + "), ";
itemString += item.dateofbirth + "<span class=\"age_years\"> (" + item.age + " " + _("years") + ")</span>, ";
}
itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
return $( "<li></li>" )
[%- USE KohaDates -%]
[%- USE I18N -%]
[%- USE raw -%]
[%- IF ( patron ) -%]
[%- 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 %]
<span class='age_years'>[% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]</span>
[%- END -%]
-