[Koha-bugs] [Bug 15206] Show patron's age when filling date of birth in memberentry.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 10 17:52:26 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15206

--- Comment #13 from Frédéric Demians <frederic at tamil.fr> ---
Comment on attachment 45581
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45581
Bug 15206 - Show patron's age in moremenber page near date of birth

Review of attachment 45581:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15206&attachment=45581)
-----------------------------------------------------------------

::: koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
@@ +225,4 @@
>          [% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
>      [% END %]
>      [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
> +    [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age  %])</li>[% END %]

I don't know how to have something translatable here.

::: members/moremember.pl
@@ +140,5 @@
>  $data->{'IS_ADULT'} = ( $data->{'categorycode'} ne 'I' );
>  
> +my @age;
> +my ($years, $months) = GetAge($data->{dateofbirth});
> +push @age, "$years year(s)" if $years;

This line, and the next one, will not be translatable.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list