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 134-140
Link Here
|
134 |
<thead> |
135 |
<thead> |
135 |
<tr> |
136 |
<tr> |
136 |
[% IF ( op == 'show' ) %] |
137 |
[% IF ( op == 'show' ) %] |
137 |
<th> </th> |
138 |
<th class="NoSort"> </th> |
|
|
139 |
[% ELSE %] |
140 |
<th class="hidden"> </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 |
- |
|
|