Bug 27796: (QA follow-up) Missing filters
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / patron-age.inc
1 [%# The variable patron must be passed, with either a Koha::Patron, or a HASHREF with the 'age' key -%]
2 [%- USE KohaDates -%]
3 [%- USE I18N -%]
4 [%- IF ( patron ) -%]
5     [%- IF ( patron.dateofbirth ) -%]
6         [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%]
7         [%- IF age >= 0 %]
8             [%- patron.dateofbirth | $KohaDates -%]
9             <span class='age_years'>[% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]</span>
10         [%- END -%]
11    [%- END -%]
12 [%- END -%]