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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (+6 lines)
Lines 239-244 Link Here
239
                                                <th>Country</th>
239
                                                <th>Country</th>
240
                                                <th class="title-string">Registration date</th>
240
                                                <th class="title-string">Registration date</th>
241
                                                <th class="title-string">Expiry date</th>
241
                                                <th class="title-string">Expiry date</th>
242
                                                <th>Circulation note</th>
243
                                                <th>Opac Note</th>
242
                                                [% FOREACH attrh IN attributes_header %]
244
                                                [% FOREACH attrh IN attributes_header %]
243
                                                    <th>[% attrh.attribute %]</th>
245
                                                    <th>[% attrh.attribute %]</th>
244
                                                [% END %]
246
                                                [% END %]
Lines 261-266 Link Here
261
                                                    <td>[% borrower.country %]</td>
263
                                                    <td>[% borrower.country %]</td>
262
                                                    <td><span title="[% borrower.dateenrolled %]">[% borrower.dateenrolled | $KohaDates %]</span></td>
264
                                                    <td><span title="[% borrower.dateenrolled %]">[% borrower.dateenrolled | $KohaDates %]</span></td>
263
                                                    <td><span title="[% borrower.dateexpiry %]">[% borrower.dateexpiry | $KohaDates %]</span></td>
265
                                                    <td><span title="[% borrower.dateexpiry %]">[% borrower.dateexpiry | $KohaDates %]</span></td>
266
                                                    <td>[% borrower.borrowernotes %]</td>
267
                                                    <td>[% borrower.opacnote %]</td>
264
                                                    [% FOREACH pa IN borrower.patron_attributes %]
268
                                                    [% FOREACH pa IN borrower.patron_attributes %]
265
                                                        [% IF ( pa.code ) %]
269
                                                        [% IF ( pa.code ) %]
266
                                                            <td>[% pa.code %]=[% pa.value %]</td>
270
                                                            <td>[% pa.code %]=[% pa.value %]</td>
Lines 315-320 Link Here
315
                                                Expiry date:
319
                                                Expiry date:
316
                                                [% CASE 'borrowernotes' %]
320
                                                [% CASE 'borrowernotes' %]
317
                                                Circulation note:
321
                                                Circulation note:
322
                                                [% CASE 'opacnote' %]
323
                                                OPAC note:
318
                                            [% END %]
324
                                            [% END %]
319
                                            </label>
325
                                            </label>
320
                                            [% IF field.mandatory %]
326
                                            [% IF field.mandatory %]
(-)a/tools/modborrowers.pl (-2 / +7 lines)
Lines 247-252 if ( $op eq 'show' ) { Link Here
247
            type => "text",
247
            type => "text",
248
            mandatory => ( grep /borrowernotes/, @mandatoryFields ) ? 1 : 0,
248
            mandatory => ( grep /borrowernotes/, @mandatoryFields ) ? 1 : 0,
249
        }
249
        }
250
        ,
251
        {
252
            name => "opacnote",
253
            type => "text",
254
            mandatory => ( grep /opacnote/, @mandatoryFields ) ? 1 : 0,
255
        }
250
    );
256
    );
251
257
252
    $template->param('patron_attributes_codes', \@patron_attributes_codes);
258
    $template->param('patron_attributes_codes', \@patron_attributes_codes);
Lines 260-266 if ( $op eq 'do' ) { Link Here
260
266
261
    my @disabled = $input->multi_param('disable_input');
267
    my @disabled = $input->multi_param('disable_input');
262
    my $infos;
268
    my $infos;
263
    for my $field ( qw/surname firstname branchcode categorycode city state zipcode country sort1 sort2 dateenrolled dateexpiry borrowernotes/ ) {
269
    for my $field ( qw/surname firstname branchcode categorycode city state zipcode country sort1 sort2 dateenrolled dateexpiry borrowernotes opacnote/ ) {
264
        my $value = $input->param($field);
270
        my $value = $input->param($field);
265
        $infos->{$field} = $value if $value;
271
        $infos->{$field} = $value if $value;
266
        $infos->{$field} = "" if grep { /^$field$/ } @disabled;
272
        $infos->{$field} = "" if grep { /^$field$/ } @disabled;
267
- 

Return to bug 16681