View | Details | Raw Unified | Return to bug 15206
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +1 lines)
Lines 225-231 function validate1(date) { Link Here
225
        [% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
225
        [% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
226
    [% END %]
226
    [% END %]
227
    [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
227
    [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
228
    [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %]</li>[% END %]
228
    [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age  %])</li>[% END %]
229
    [% IF ( sex ) %]<li><span class="label">Gender:</span>
229
    [% IF ( sex ) %]<li><span class="label">Gender:</span>
230
    [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
230
    [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
231
    </li>[% END %][% END %]
231
    </li>[% END %][% END %]
(-)a/members/moremember.pl (-1 / +6 lines)
Lines 139-144 foreach (qw(dateenrolled dateexpiry dateofbirth)) { Link Here
139
}
139
}
140
$data->{'IS_ADULT'} = ( $data->{'categorycode'} ne 'I' );
140
$data->{'IS_ADULT'} = ( $data->{'categorycode'} ne 'I' );
141
141
142
my @age;
143
my ($years, $months) = GetAge($data->{dateofbirth});
144
push @age, "$years year(s)" if $years;
145
push @age, "$months month(s)" if $months;
146
$template->param( age => join(', ', @age) );
147
142
for (qw(gonenoaddress lost borrowernotes)) {
148
for (qw(gonenoaddress lost borrowernotes)) {
143
	 $data->{$_} and $template->param(flagged => 1) and last;
149
	 $data->{$_} and $template->param(flagged => 1) and last;
144
}
150
}
145
- 

Return to bug 15206