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 › Tools › Batch patron modification</title> |
10 |
<title>Koha › Tools › 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> </th> |
146 |
<th class="NoSort"> </th> |
|
|
147 |
[% ELSE %] |
148 |
<th class="hidden"> </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 |
- |
|
|