Lines 103-123
$(document).ready(function() {
Link Here
|
103 |
}); |
103 |
}); |
104 |
|
104 |
|
105 |
var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, { |
105 |
var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, { |
106 |
"aoColumnDefs": [ |
106 |
"aaSorting": [ 1, "asc" ], |
107 |
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, |
|
|
108 |
], |
109 |
"aaSorting": [ 2, "asc" ], |
110 |
"sDom": "t", |
107 |
"sDom": "t", |
111 |
"iDisplayLength": -1 |
108 |
"iDisplayLength": -1 |
112 |
})); |
109 |
})); |
113 |
$(table).find('tbody tr').filter(':has(:radio:checked)').end().click(function(event) { |
|
|
114 |
$('#table_borrowers tbody tr').removeClass('selected'); |
115 |
$(this).addClass('selected'); |
116 |
if (event.target.type !== 'radio') { |
117 |
$(':radio', this).attr('checked', 'true') |
118 |
} |
119 |
}); |
120 |
|
121 |
}); |
110 |
}); |
122 |
|
111 |
|
123 |
//]]> |
112 |
//]]> |
Lines 135-141
$(document).ready(function() {
Link Here
|
135 |
<strong>Checkouts</strong> |
124 |
<strong>Checkouts</strong> |
136 |
[% END %] |
125 |
[% END %] |
137 |
</div> |
126 |
</div> |
138 |
[% IF ( $borrowers ) %] |
127 |
[% IF ( borrowers || message ) %] |
139 |
<div id="doc" class="yui-t7"> |
128 |
<div id="doc" class="yui-t7"> |
140 |
|
129 |
|
141 |
<div id="bd"> |
130 |
<div id="bd"> |
Lines 555-579
No patron matched <span class="ex">[% message %]</span>
Link Here
|
555 |
[% END %] |
544 |
[% END %] |
556 |
|
545 |
|
557 |
[% IF ( borrowers ) %] |
546 |
[% IF ( borrowers ) %] |
558 |
[% INCLUDE 'patron-toolbar.inc' %] |
547 |
[% INCLUDE 'patron-toolbar.inc' %] |
559 |
|
548 |
<h2>Patron selection</h2> |
560 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
|
|
561 |
<input type="hidden" name="restoreduedatespec" /> |
562 |
<fieldset id="circ_circulation_selectborrower" class="brief"> |
563 |
<legend>Patron selection</legend> |
564 |
|
565 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
566 |
<input type="hidden" name="branch" value="[% branch %]" /> |
567 |
<input type="hidden" name="printer" value="[% printer %]" /> |
568 |
<input type="hidden" name="duedatespec" value="[% duedatespec %]" /> |
569 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate %]" /> |
570 |
|
571 |
<table id="table_borrowers"> |
549 |
<table id="table_borrowers"> |
572 |
<thead> |
550 |
<thead> |
573 |
<tr> |
551 |
<tr> |
574 |
<th></th> |
|
|
575 |
<th>Name</th> |
552 |
<th>Name</th> |
576 |
<th>Cardnumber</th> |
553 |
<th>Card number</th> |
577 |
<th>Category</th> |
554 |
<th>Category</th> |
578 |
<th>Library</th> |
555 |
<th>Library</th> |
579 |
<th>Address</th> |
556 |
<th>Address</th> |
Lines 582-600
No patron matched <span class="ex">[% message %]</span>
Link Here
|
582 |
<tbody> |
559 |
<tbody> |
583 |
[% FOREACH borrower IN borrowers %] |
560 |
[% FOREACH borrower IN borrowers %] |
584 |
<tr> |
561 |
<tr> |
585 |
<td><input type="radio" name="borrowernumber" value="[% borrower.borrowernumber %]" /></td> |
562 |
<td><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrower.borrowernumber %]">[% borrower.surname %], [% borrower.firstname %]</a></td> |
586 |
<td>[% borrower.surname %], [% borrower.firstname %]</td> |
|
|
587 |
<td>[% borrower.cardnumber %]</td> |
563 |
<td>[% borrower.cardnumber %]</td> |
588 |
<td>[% borrower.categorycode %]</td> |
564 |
<td>[% borrower.categorycode %]</td> |
589 |
<td>[% borrower.branchcode %]</td> |
565 |
<td>[% Branches.GetName( borrower.branchcode ) %]</td> |
590 |
<td>[% borrower.address %]</td> |
566 |
<td>[% borrower.address %]</td> |
591 |
</tr> |
567 |
</tr> |
592 |
[% END %] |
568 |
[% END %] |
593 |
</tbody> |
569 |
</tbody> |
594 |
</table> |
570 |
</table> |
595 |
<fieldset class="action"><input type="submit" value="Select" /></fieldset> |
|
|
596 |
</fieldset> |
597 |
</form> |
598 |
[% ELSE %] |
571 |
[% ELSE %] |
599 |
|
572 |
|
600 |
<!-- BARCODE ENTRY --> |
573 |
<!-- BARCODE ENTRY --> |
601 |
- |
|
|