|
Lines 29-49
$(document).ready(function() {
Link Here
|
| 29 |
$(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1); |
29 |
$(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1); |
| 30 |
[% END %] |
30 |
[% END %] |
| 31 |
|
31 |
|
| 32 |
var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, { |
|
|
| 33 |
"aoColumnDefs": [ |
| 34 |
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, |
| 35 |
], |
| 36 |
"aaSorting": [[ 2, "asc" ]], |
| 37 |
"sDom": "t", |
| 38 |
"iDisplayLength": -1 |
| 39 |
})); |
| 40 |
$(table).find('tbody tr').filter(':has(:radio:checked)').end().click(function(event) { |
| 41 |
$('#table_borrowers tbody tr').removeClass('selected'); |
| 42 |
$(this).addClass('selected'); |
| 43 |
if (event.target.type !== 'radio') { |
| 44 |
$(':radio', this).prop('checked', 'true') |
| 45 |
} |
| 46 |
}); |
| 47 |
var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, { |
32 |
var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 48 |
'bPaginate': false, |
33 |
'bPaginate': false, |
| 49 |
"sDom": '<"top pager"ilf>t', |
34 |
"sDom": '<"top pager"ilf>t', |
|
Lines 254-261
function checkMultiHold() {
Link Here
|
| 254 |
<div class="dialog alert"><h3>Patron not found</h3><p>No patron with this name, please, try another</p> </div> |
239 |
<div class="dialog alert"><h3>Patron not found</h3><p>No patron with this name, please, try another</p> </div> |
| 255 |
[% END %] |
240 |
[% END %] |
| 256 |
<form id="holds_patronsearch" action="request.pl?biblionumber=[% biblionumber %]" method="post"> |
241 |
<form id="holds_patronsearch" action="request.pl?biblionumber=[% biblionumber %]" method="post"> |
|
|
242 |
<fieldset id="circ_holds_selectborrower" class="brief"> |
| 243 |
|
| 257 |
[% UNLESS borrowers %] |
244 |
[% UNLESS borrowers %] |
| 258 |
<fieldset class="brief"> |
|
|
| 259 |
<label for="patron">Patron: </label> |
245 |
<label for="patron">Patron: </label> |
| 260 |
<div class="hint">Enter patron card number or partial name:</div> |
246 |
<div class="hint">Enter patron card number or partial name:</div> |
| 261 |
<input type="text" size="40" id="patron" class="focus" name="findborrower" /> |
247 |
<input type="text" size="40" id="patron" class="focus" name="findborrower" /> |
|
Lines 263-295
function checkMultiHold() {
Link Here
|
| 263 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
249 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
| 264 |
</fieldset> |
250 |
</fieldset> |
| 265 |
[% ELSE %] |
251 |
[% ELSE %] |
| 266 |
<fieldset> |
252 |
[% INCLUDE 'circ-patron-search-results.inc' destination = "holds" %] |
| 267 |
<table id="table_borrowers"> |
|
|
| 268 |
<thead> |
| 269 |
<tr> |
| 270 |
<th></th> |
| 271 |
<th>Name</th> |
| 272 |
<th>Cardnumber</th> |
| 273 |
<th>Category</th> |
| 274 |
<th>Library</th> |
| 275 |
<th>Address</th> |
| 276 |
</tr> |
| 277 |
</thead> |
| 278 |
<tbody> |
| 279 |
[% FOREACH borrower IN borrowers %] |
| 280 |
<tr> |
| 281 |
<td><input type="radio" name="borrowernumber" value="[% borrower.borrowernumber %]" /></td> |
| 282 |
<td>[% borrower.surname %], [% borrower.firstname %]</td> |
| 283 |
<td>[% borrower.cardnumber %]</td> |
| 284 |
<td>[% borrower.categorycode %]</td> |
| 285 |
<td>[% borrower.branchcode %]</td> |
| 286 |
<td>[% borrower.address %]</td> |
| 287 |
</tr> |
| 288 |
[% END %] |
| 289 |
</tbody> |
| 290 |
</table> |
| 291 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
| 292 |
<fieldset class="action"><input type="submit" value="Select" /></fieldset> |
| 293 |
</fieldset> |
253 |
</fieldset> |
| 294 |
|
254 |
|
| 295 |
[% END %] |
255 |
[% END %] |
| 296 |
- |
|
|