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

(-)a/admin/columns_settings.yml (+50 lines)
Lines 1432-1437 modules: Link Here
1432
              columnname: spent
1432
              columnname: spent
1433
1433
1434
  tools:
1434
  tools:
1435
    batch_patron_modification:
1436
      borrowerst:
1437
        columns:
1438
            -
1439
              columnname: batch_patron_edit_selections
1440
              cannot_be_toggled: 1
1441
              cannot_be_modified: 1
1442
            -
1443
              columnname: batch_patron_edit_cardnumber
1444
            -
1445
              columnname: batch_patron_edit_surname
1446
            -
1447
              columnname: batch_patron_edit_firstname
1448
            -
1449
              columnname: batch_patron_edit_branchcode
1450
            -
1451
              columnname: batch_patron_edit_categorycode
1452
            -
1453
              columnname: batch_patron_edit_streetnumber
1454
            -
1455
              columnname: batch_patron_edit_address
1456
            -
1457
              columnname: batch_patron_edit_address2
1458
            -
1459
              columnname: batch_patron_edit_city
1460
            -
1461
              columnname: batch_patron_edit_state
1462
            -
1463
              columnname: batch_patron_edit_zipcode
1464
            -
1465
              columnname: batch_patron_edit_country
1466
            -
1467
              columnname: batch_patron_edit_email
1468
            -
1469
              columnname: batch_patron_edit_phone
1470
            -
1471
              columnname: batch_patron_edit_mobile
1472
            -
1473
              columnname: batch_patron_edit_dateenrolled
1474
            -
1475
              columnname: batch_patron_edit_dateexpiry
1476
            -
1477
              columnname: batch_patron_edit_borrowernotes
1478
            -
1479
              columnname: batch_patron_edit_opacnote
1480
            -
1481
              columnname: batch_patron_edit_debarred
1482
            -
1483
              columnname: batch_patron_edit_debarredcomment
1484
1435
    logviewer:
1485
    logviewer:
1436
      logst:
1486
      logst:
1437
        columns:
1487
        columns:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-17 / +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 134-140 Link Here
134
                                        <thead>
135
                                        <thead>
135
                                            <tr>
136
                                            <tr>
136
                                                [% IF ( op == 'show' ) %]
137
                                                [% IF ( op == 'show' ) %]
137
                                                    <th>&nbsp;</th>
138
                                                    <th class="NoSort">&nbsp;</th>
139
                                                [% ELSE %]
140
                                                    <th class="hidden">&nbsp;</th>
138
                                                [% END %]
141
                                                [% END %]
139
                                                <th>Card number</th>
142
                                                <th>Card number</th>
140
                                                <th>Surname</th>
143
                                                <th>Surname</th>
Lines 166-173 Link Here
166
                                            [% FOREACH borrower IN borrowers %]
169
                                            [% FOREACH borrower IN borrowers %]
167
                                                <tr>
170
                                                <tr>
168
                                                    [% IF ( op == 'show' ) %]
171
                                                    [% IF ( op == 'show' ) %]
169
                                                        <td><input type="checkbox" name="borrowernumber" value="[% borrower.borrowernumber | html %]" checked="checked" /></td>
172
                                                        <td>
173
                                                    [% ELSE %]
174
                                                        <td class="hidden">
170
                                                    [% END %]
175
                                                    [% END %]
176
                                                        <input type="checkbox" name="borrowernumber" value="[% borrower.borrowernumber | html %]" checked="checked" />
177
                                                    </td>
171
                                                    <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.cardnumber | html %]</a></td>
178
                                                    <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.cardnumber | html %]</a></td>
172
                                                    <td>[% borrower.surname | html %]</td>
179
                                                    <td>[% borrower.surname | html %]</td>
173
                                                    <td>[% borrower.firstname | html %]</td>
180
                                                    <td>[% borrower.firstname | html %]</td>
Lines 336-361 Link Here
336
[% MACRO jsinclude BLOCK %]
343
[% MACRO jsinclude BLOCK %]
337
    [% INCLUDE 'calendar.inc' %]
344
    [% INCLUDE 'calendar.inc' %]
338
    [% INCLUDE 'datatables.inc' %]
345
    [% INCLUDE 'datatables.inc' %]
346
    [% INCLUDE 'columns_settings.inc' %]
339
    [% Asset.js("js/tools-menu.js") | $raw %]
347
    [% Asset.js("js/tools-menu.js") | $raw %]
340
    <script>
348
    <script>
341
        var patron_attributes_lib = new Array();
349
        var patron_attributes_lib = new Array();
342
        var patron_attributes_values = new Array();
350
        var patron_attributes_values = new Array();
351
        var table_settings = [% TablesSettings.GetColumns( 'tools', 'batch_patron_modification', 'borrowerst', 'json' ) | $raw %];
352
        [% FOREACH attrh IN attributes_header %]
353
            table_settings.push({
354
                columname: "[% attrh.attribute | html %]",
355
                cannot_be_modified: 0,
356
                cannot_be_toggled: 0,
357
                is_hidden: 0
358
            });
359
        [% END %]
343
        $(document).ready(function() {
360
        $(document).ready(function() {
344
            [% IF borrowers %]
361
            [% IF borrowers %]
345
                $("#borrowerst").dataTable($.extend(true, {}, dataTablesDefaults, {
362
                KohaTable("borrowerst", {
346
                    "sDom": 't',
363
                    "order": [[ 1, "asc" ]],
347
                    [% IF ( op == 'show_results' ) %]
364
                    "autoWidth": false,
348
                        "aoColumnDefs": [
365
                    "columnDefs": [
349
                            { 'sType': "title-string", 'aTargets' : [ 'title-string'] }
366
                        { "visible": false, "targets" : [ "hidden" ] }
350
                        ],
367
                    ]
351
                    [% ELSE %]
368
                }, table_settings);
352
                        "aoColumnDefs": [
369
353
                            { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
354
                            { 'sType': "title-string", 'aTargets' : [ 'title-string'] }
355
                        ],
356
                    [% END %]
357
                    "bPaginate": false
358
                }));
359
                $("#selectallbutton").click(function() {
370
                $("#selectallbutton").click(function() {
360
                    $("#borrowerst").find("input:checkbox").each(function() {
371
                    $("#borrowerst").find("input:checkbox").each(function() {
361
                        $(this).prop("checked", true);
372
                        $(this).prop("checked", true);
362
- 

Return to bug 28014