Lines 1-11
Link Here
|
1 |
[% USE Koha %] |
1 |
[% USE Koha %] |
2 |
[% USE ColumnsSettings %] |
|
|
3 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
<title>Koha › Patrons [% IF ( searching ) %]› Search results[% END %]</title> |
3 |
<title>Koha › Patrons [% IF ( searching ) %]› Search results[% END %]</title> |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
5 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
7 |
[% INCLUDE 'datatables.inc' %] |
6 |
[% INCLUDE 'datatables.inc' %] |
8 |
[% INCLUDE 'columns_settings.inc' %] |
|
|
9 |
<script type="text/javascript"> |
7 |
<script type="text/javascript"> |
10 |
//<![CDATA[ |
8 |
//<![CDATA[ |
11 |
$(document).ready(function() { |
9 |
$(document).ready(function() { |
Lines 132-139
$(document).ready(function() {
Link Here
|
132 |
}); |
130 |
}); |
133 |
|
131 |
|
134 |
// Apply DataTables on the results table |
132 |
// Apply DataTables on the results table |
135 |
var columns_settings = [% ColumnsSettings.GetColumns( 'members', 'member', 'memberresultst', 'json' ) %]; |
133 |
dtMemberResults = $("#memberresultst").dataTable($.extend(true, {}, dataTablesDefaults, { |
136 |
dtMemberResults = KohaTable("#memberresultst", { |
|
|
137 |
'bServerSide': true, |
134 |
'bServerSide': true, |
138 |
'sAjaxSource': "/cgi-bin/koha/svc/members/search", |
135 |
'sAjaxSource': "/cgi-bin/koha/svc/members/search", |
139 |
'fnServerData': function(sSource, aoData, fnCallback) { |
136 |
'fnServerData': function(sSource, aoData, fnCallback) { |
Lines 162-167
$(document).ready(function() {
Link Here
|
162 |
'name': 'name_sorton', |
159 |
'name': 'name_sorton', |
163 |
'value': 'borrowers.surname borrowers.firstname' |
160 |
'value': 'borrowers.surname borrowers.firstname' |
164 |
},{ |
161 |
},{ |
|
|
162 |
'name': 'dateofbirth', |
163 |
'value': 'borrowers.dateofbirth' |
164 |
},{ |
165 |
'name': 'category_sorton', |
165 |
'name': 'category_sorton', |
166 |
'value': 'categories.description', |
166 |
'value': 'categories.description', |
167 |
},{ |
167 |
},{ |
Lines 193-198
$(document).ready(function() {
Link Here
|
193 |
[% END %] |
193 |
[% END %] |
194 |
{ 'mDataProp': 'dt_cardnumber' }, |
194 |
{ 'mDataProp': 'dt_cardnumber' }, |
195 |
{ 'mDataProp': 'dt_name' }, |
195 |
{ 'mDataProp': 'dt_name' }, |
|
|
196 |
{ 'mDataProp': 'dt_dateofbirth' }, |
196 |
{ 'mDataProp': 'dt_category' }, |
197 |
{ 'mDataProp': 'dt_category' }, |
197 |
{ 'mDataProp': 'dt_branch' }, |
198 |
{ 'mDataProp': 'dt_branch' }, |
198 |
{ 'mDataProp': 'dt_dateexpiry' }, |
199 |
{ 'mDataProp': 'dt_dateexpiry' }, |
Lines 218-224
$(document).ready(function() {
Link Here
|
218 |
'sPaginationType': 'full_numbers', |
219 |
'sPaginationType': 'full_numbers', |
219 |
"iDisplayLength": [% PatronsPerPage %], |
220 |
"iDisplayLength": [% PatronsPerPage %], |
220 |
"bProcessing": true, |
221 |
"bProcessing": true, |
221 |
}, columns_settings); |
222 |
})); |
222 |
update_searched(); |
223 |
update_searched(); |
223 |
}); |
224 |
}); |
224 |
|
225 |
|
Lines 339-345
function filterByFirstLetterSurname(letter) {
Link Here
|
339 |
<a href="javascript:void(0)" onclick="$('.selection').prop('checked', false)">Clear all</a> |
340 |
<a href="javascript:void(0)" onclick="$('.selection').prop('checked', false)">Clear all</a> |
340 |
| |
341 |
| |
341 |
<span> |
342 |
<span> |
342 |
<label for="add_to_patron_list">Add selected patrons to:</label> |
343 |
Add selected patrons |
|
|
344 |
<label for="add_to_patron_list">to:</label> |
343 |
<select id="add_to_patron_list" name="add_to_patron_list"> |
345 |
<select id="add_to_patron_list" name="add_to_patron_list"> |
344 |
<option value=""></option> |
346 |
<option value=""></option> |
345 |
[% IF patron_lists %] |
347 |
[% IF patron_lists %] |
Lines 369-374
function filterByFirstLetterSurname(letter) {
Link Here
|
369 |
[% END %] |
371 |
[% END %] |
370 |
<th>Card</th> |
372 |
<th>Card</th> |
371 |
<th>Name</th> |
373 |
<th>Name</th> |
|
|
374 |
<th>Date of birth</th> |
372 |
<th>Category</th> |
375 |
<th>Category</th> |
373 |
<th>Library</th> |
376 |
<th>Library</th> |
374 |
<th>Expires on</th> |
377 |
<th>Expires on</th> |