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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (+4 lines)
Lines 149-154 Link Here
149
                                                <th class="title-string">Expiry date</th>
149
                                                <th class="title-string">Expiry date</th>
150
                                                <th>Circulation note</th>
150
                                                <th>Circulation note</th>
151
                                                <th>OPAC note</th>
151
                                                <th>OPAC note</th>
152
                                                <th>Email address</th>
152
                                                <th>Restriction expiration</th>
153
                                                <th>Restriction expiration</th>
153
                                                <th>Restriction comment</th>
154
                                                <th>Restriction comment</th>
154
                                                [% FOREACH attrh IN attributes_header %]
155
                                                [% FOREACH attrh IN attributes_header %]
Lines 175-180 Link Here
175
                                                    <td><span title="[% borrower.dateexpiry | html %]">[% borrower.dateexpiry | $KohaDates %]</span></td>
176
                                                    <td><span title="[% borrower.dateexpiry | html %]">[% borrower.dateexpiry | $KohaDates %]</span></td>
176
                                                    <td>[% borrower.borrowernotes | html %]</td>
177
                                                    <td>[% borrower.borrowernotes | html %]</td>
177
                                                    <td>[% borrower.opacnote | html %]</td>
178
                                                    <td>[% borrower.opacnote | html %]</td>
179
                                                    <td>[% borrower.email | html %]</td>
178
                                                    <td><span title="[% borrower.debarred | html %]">[% borrower.debarred | $KohaDates %]</span></td>
180
                                                    <td><span title="[% borrower.debarred | html %]">[% borrower.debarred | $KohaDates %]</span></td>
179
                                                    <td>[% borrower.debarredcomment | html %]</td>
181
                                                    <td>[% borrower.debarredcomment | html %]</td>
180
                                                    [% FOREACH pa IN borrower.patron_attributes %]
182
                                                    [% FOREACH pa IN borrower.patron_attributes %]
Lines 233-238 Link Here
233
                                                Circulation note:
235
                                                Circulation note:
234
                                                [% CASE 'opacnote' %]
236
                                                [% CASE 'opacnote' %]
235
                                                OPAC note:
237
                                                OPAC note:
238
                                                [% CASE 'email' %]
239
                                                Email address:
236
                                                [% CASE 'debarred' %]
240
                                                [% CASE 'debarred' %]
237
                                                Restriction expiration:
241
                                                Restriction expiration:
238
                                                [% CASE 'debarredcomment' %]
242
                                                [% CASE 'debarredcomment' %]
(-)a/tools/modborrowers.pl (-2 / +7 lines)
Lines 265-270 if ( $op eq 'show' ) { Link Here
265
        }
265
        }
266
        ,
266
        ,
267
        {
267
        {
268
            name => "email",
269
            type => "text",
270
            mandatory => ( grep /email/, @mandatoryFields ) ? 1 : 0,
271
        }
272
        ,
273
        {
268
            name => "debarred",
274
            name => "debarred",
269
            type => "date",
275
            type => "date",
270
            mandatory => ( grep /debarred/, @mandatoryFields ) ? 1 : 0,
276
            mandatory => ( grep /debarred/, @mandatoryFields ) ? 1 : 0,
Lines 288-294 if ( $op eq 'do' ) { Link Here
288
294
289
    my @disabled = $input->multi_param('disable_input');
295
    my @disabled = $input->multi_param('disable_input');
290
    my $infos;
296
    my $infos;
291
    for my $field ( qw/surname firstname branchcode categorycode city state zipcode country sort1 sort2 dateenrolled dateexpiry borrowernotes opacnote debarred debarredcomment/ ) {
297
        for my $field ( qw/surname firstname branchcode categorycode city state zipcode country sort1 sort2 dateenrolled dateexpiry borrowernotes opacnote email/ ) {
292
        my $value = $input->param($field);
298
        my $value = $input->param($field);
293
        $infos->{$field} = $value if $value;
299
        $infos->{$field} = $value if $value;
294
        $infos->{$field} = "" if grep { /^$field$/ } @disabled;
300
        $infos->{$field} = "" if grep { /^$field$/ } @disabled;
295
- 

Return to bug 19793