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

(-)a/admin/columns_settings.yml (+50 lines)
Lines 1434-1439 modules: Link Here
1434
              columnname: spent
1434
              columnname: spent
1435
1435
1436
  tools:
1436
  tools:
1437
    batch_patron_modification:
1438
      borrowerst:
1439
        columns:
1440
            -
1441
              columnname: batch_patron_edit_selections
1442
              cannot_be_toggled: 1
1443
              cannot_be_modified: 1
1444
            -
1445
              columnname: batch_patron_edit_cardnumber
1446
            -
1447
              columnname: batch_patron_edit_surname
1448
            -
1449
              columnname: batch_patron_edit_firstname
1450
            -
1451
              columnname: batch_patron_edit_branchcode
1452
            -
1453
              columnname: batch_patron_edit_categorycode
1454
            -
1455
              columnname: batch_patron_edit_streetnumber
1456
            -
1457
              columnname: batch_patron_edit_address
1458
            -
1459
              columnname: batch_patron_edit_address2
1460
            -
1461
              columnname: batch_patron_edit_city
1462
            -
1463
              columnname: batch_patron_edit_state
1464
            -
1465
              columnname: batch_patron_edit_zipcode
1466
            -
1467
              columnname: batch_patron_edit_country
1468
            -
1469
              columnname: batch_patron_edit_email
1470
            -
1471
              columnname: batch_patron_edit_phone
1472
            -
1473
              columnname: batch_patron_edit_mobile
1474
            -
1475
              columnname: batch_patron_edit_dateenrolled
1476
            -
1477
              columnname: batch_patron_edit_dateexpiry
1478
            -
1479
              columnname: batch_patron_edit_borrowernotes
1480
            -
1481
              columnname: batch_patron_edit_opacnote
1482
            -
1483
              columnname: batch_patron_edit_debarred
1484
            -
1485
              columnname: batch_patron_edit_debarredcomment
1486
1437
    logviewer:
1487
    logviewer:
1438
      logst:
1488
      logst:
1439
        columns:
1489
        columns:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-12 / +27 lines)
Lines 4-9 Link Here
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE Branches %]
5
[% USE Branches %]
6
[% USE Categories %]
6
[% USE Categories %]
7
[% USE TablesSettings %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Koha &rsaquo; Tools &rsaquo; Batch patron modification</title>
10
<title>Koha &rsaquo; Tools &rsaquo; Batch patron modification</title>
Lines 142-148 Link Here
142
                                        <thead>
143
                                        <thead>
143
                                            <tr>
144
                                            <tr>
144
                                                [% IF ( op == 'show' ) %]
145
                                                [% IF ( op == 'show' ) %]
145
                                                    <th>&nbsp;</th>
146
                                                    <th class="NoSort">&nbsp;</th>
147
                                                [% ELSE %]
148
                                                    <th class="hidden">&nbsp;</th>
146
                                                [% END %]
149
                                                [% END %]
147
                                                <th>Card number</th>
150
                                                <th>Card number</th>
148
                                                <th>Surname</th>
151
                                                <th>Surname</th>
Lines 174-181 Link Here
174
                                            [% FOREACH borrower IN borrowers %]
177
                                            [% FOREACH borrower IN borrowers %]
175
                                                <tr>
178
                                                <tr>
176
                                                    [% IF ( op == 'show' ) %]
179
                                                    [% IF ( op == 'show' ) %]
177
                                                        <td><input type="checkbox" name="borrowernumber" value="[% borrower.borrowernumber | html %]" checked="checked" /></td>
180
                                                        <td>
181
                                                    [% ELSE %]
182
                                                        <td class="hidden">
178
                                                    [% END %]
183
                                                    [% END %]
184
                                                        <input type="checkbox" name="borrowernumber" value="[% borrower.borrowernumber | html %]" checked="checked" />
185
                                                    </td>
179
                                                    <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.cardnumber | html %]</a></td>
186
                                                    <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.cardnumber | html %]</a></td>
180
                                                    <td>[% borrower.surname | html %]</td>
187
                                                    <td>[% borrower.surname | html %]</td>
181
                                                    <td>[% borrower.firstname | html %]</td>
188
                                                    <td>[% borrower.firstname | html %]</td>
Lines 344-364 Link Here
344
[% MACRO jsinclude BLOCK %]
351
[% MACRO jsinclude BLOCK %]
345
    [% INCLUDE 'calendar.inc' %]
352
    [% INCLUDE 'calendar.inc' %]
346
    [% INCLUDE 'datatables.inc' %]
353
    [% INCLUDE 'datatables.inc' %]
354
    [% INCLUDE 'columns_settings.inc' %]
347
    [% Asset.js("js/tools-menu.js") | $raw %]
355
    [% Asset.js("js/tools-menu.js") | $raw %]
348
    <script>
356
    <script>
349
        var patron_attributes_lib = new Array();
357
        var patron_attributes_lib = new Array();
350
        var patron_attributes_values = new Array();
358
        var patron_attributes_values = new Array();
359
        var table_settings = [% TablesSettings.GetColumns( 'tools', 'batch_patron_modification', 'borrowerst', 'json' ) | $raw %];
360
        [% FOREACH attrh IN attributes_header %]
361
            table_settings.push({
362
                columname: "[% attrh.attribute | html %]",
363
                cannot_be_modified: 0,
364
                cannot_be_toggled: 0,
365
                is_hidden: 0
366
            });
367
        [% END %]
351
        $(document).ready(function() {
368
        $(document).ready(function() {
352
            [% IF borrowers %]
369
            [% IF borrowers %]
353
                $("#borrowerst").dataTable($.extend(true, {}, dataTablesDefaults, {
370
                KohaTable("borrowerst", {
354
                    "sDom": 't',
371
                    "order": [[ 1, "asc" ]],
355
                    [% UNLESS ( op == 'show_results' ) %]
372
                    "autoWidth": false,
356
                        "aoColumnDefs": [
373
                    "columnDefs": [
357
                            { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
374
                        { "visible": false, "targets" : [ "hidden" ] }
358
                        ],
375
                    ]
359
                    [% END %]
376
                }, table_settings);
360
                    "bPaginate": false
377
361
                }));
362
                $("#selectallbutton").click(function() {
378
                $("#selectallbutton").click(function() {
363
                    $("#borrowerst").find("input:checkbox").each(function() {
379
                    $("#borrowerst").find("input:checkbox").each(function() {
364
                        $(this).prop("checked", true);
380
                        $(this).prop("checked", true);
365
- 

Return to bug 28014