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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt (-4 / +5 lines)
Lines 1-3 Link Here
1
[% USE KohaDates %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Check duplicate patron</title>
3
<title>Koha &rsaquo; Check duplicate patron</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 47-53 Link Here
47
        [% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
48
        [% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
48
    [% END %]
49
    [% END %]
49
    <li><span class="label">Initials: </span>[% initials %]</li>
50
    <li><span class="label">Initials: </span>[% initials %]</li>
50
    <li><span class="label">Date of birth:</span>[% dateofbirth %]</li>
51
    <li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %]</li>
51
    <li><span class="label">Gender:</span>[% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]</li>[% END %]
52
    <li><span class="label">Gender:</span>[% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]</li>[% END %]
52
    [% IF ( isguarantee ) %]
53
    [% IF ( isguarantee ) %]
53
        [% IF ( guaranteeloop ) %]
54
        [% IF ( guaranteeloop ) %]
Lines 70-81 Link Here
70
    <li><span class="label">Card number: </span>[% cardnumber %]</li>
71
    <li><span class="label">Card number: </span>[% cardnumber %]</li>
71
	<li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
72
	<li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
72
    <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
73
    <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
73
    <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
74
    <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
74
    <li><span class="label">Expiration date: </span>
75
    <li><span class="label">Expiration date: </span>
75
    [% IF ( was_renewed ) %]
76
    [% IF ( was_renewed ) %]
76
            <strong class="reregistrinfo">[% dateexpiry %]</strong>
77
            <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
77
    [% ELSE %]
78
    [% ELSE %]
78
            [% dateexpiry %]
79
            [% dateexpiry | $KohaDates %]
79
    [% END %]
80
    [% END %]
80
    </li>
81
    </li>
81
    <li><span class="label">Library: </span>[% branchname %]</li>
82
    <li><span class="label">Library: </span>[% branchname %]</li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-5 / +5 lines)
Lines 166-172 function validate1(date) { Link Here
166
[% IF ( unknowuser ) %]
166
[% IF ( unknowuser ) %]
167
   <div class="dialog message">This patron does not exist.</div>
167
   <div class="dialog message">This patron does not exist.</div>
168
[% ELSE %]
168
[% ELSE %]
169
    [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %]
169
    [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry | $KohaDates %]</div>[% END %]
170
170
171
    [% IF ( flagged ) %]
171
    [% IF ( flagged ) %]
172
    <div id="circmessages" class="circmessage attention">
172
    <div id="circmessages" class="circmessage attention">
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 %]</li>[% END %]
228
    [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %]</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 %]
Lines 337-349 function validate1(date) { Link Here
337
    <li><span class="label">Card number: </span>[% cardnumber %]</li>
337
    <li><span class="label">Card number: </span>[% cardnumber %]</li>
338
	<li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
338
	<li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
339
    <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
339
    <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
340
    <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
340
    <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
341
    
341
    
342
    <li><span class="label">Expiration date: </span>
342
    <li><span class="label">Expiration date: </span>
343
    [% IF ( was_renewed ) %]
343
    [% IF ( was_renewed ) %]
344
            <strong class="reregistrinfo">[% dateexpiry %]</strong>
344
            <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
345
    [% ELSE %]
345
    [% ELSE %]
346
            [% dateexpiry %]
346
            [% dateexpiry | $KohaDates %]
347
    [% END %]
347
    [% END %]
348
    </li>
348
    </li>
349
    
349
    
(-)a/members/moremember.pl (-4 / +1 lines)
Lines 135-143 foreach (qw(dateenrolled dateexpiry dateofbirth)) { Link Here
135
        $data->{$_} = '';
135
        $data->{$_} = '';
136
        next;
136
        next;
137
    }
137
    }
138
    $userdate = output_pref({ dt => dt_from_string( $userdate ), dateonly => 1 });
138
    $template->param( $_ => dt_from_string( $userdate ) );
139
    $data->{$_} = $userdate || '';
140
    $template->param( $_ => $userdate );
141
}
139
}
142
$data->{'IS_ADULT'} = ( $data->{'categorycode'} ne 'I' );
140
$data->{'IS_ADULT'} = ( $data->{'categorycode'} ne 'I' );
143
141
144
- 

Return to bug 14990