|
Lines 407-412
Link Here
|
| 407 |
[% MACRO jsinclude BLOCK %] |
407 |
[% MACRO jsinclude BLOCK %] |
| 408 |
[% INCLUDE 'datatables.inc' %] |
408 |
[% INCLUDE 'datatables.inc' %] |
| 409 |
[% INCLUDE 'calendar.inc' %] |
409 |
[% INCLUDE 'calendar.inc' %] |
|
|
410 |
<script> |
| 411 |
var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'inventory', 'inventoryt', 'json' ) | $raw %]; |
| 412 |
const uploadedbarcodesflag = [% uploadedbarcodesflag ? 1 : 0 | html %]; |
| 413 |
</script> |
| 410 |
<script> |
414 |
<script> |
| 411 |
function checkForm() { |
415 |
function checkForm() { |
| 412 |
if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) { |
416 |
if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) { |
|
Lines 459-479
Link Here
|
| 459 |
} |
463 |
} |
| 460 |
|
464 |
|
| 461 |
$(document).ready(function(){ |
465 |
$(document).ready(function(){ |
| 462 |
var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'inventory', 'inventoryt', 'json' ) | $raw %]; |
|
|
| 463 |
inventorydt = $("#inventoryt").kohaTable({ |
466 |
inventorydt = $("#inventoryt").kohaTable({ |
| 464 |
pagingType: 'full_numbers', |
467 |
pagingType: 'full_numbers', |
| 465 |
bKohaColumnsUseNames: true, |
468 |
bKohaColumnsUseNames: true, |
| 466 |
[% IF uploadedbarcodesflag %] |
469 |
...(uploadedbarcodesflag |
|
|
470 |
? { |
| 467 |
// sort on callnumber |
471 |
// sort on callnumber |
| 468 |
order: [[ 2, "asc" ]], |
472 |
order: [[ 2, "asc" ]] |
| 469 |
[% ELSE %] |
473 |
} |
|
|
474 |
: { |
| 470 |
// first column contains checkboxes |
475 |
// first column contains checkboxes |
| 471 |
columnDefs: [ |
476 |
columnDefs: [ |
| 472 |
{ orderable: false, searchable: false, targets: [ 0 ] } |
477 |
{ orderable: false, searchable: false, targets: [ 0 ] } |
| 473 |
], |
478 |
], |
| 474 |
// 3rd column is callnumber |
479 |
// 3rd column is callnumber |
| 475 |
order: [[ 2, "asc" ]], |
480 |
order: [[ 2, "asc" ]], |
| 476 |
[% END %] |
481 |
}), |
| 477 |
drawCallback: function() { |
482 |
drawCallback: function() { |
| 478 |
//bind the click handler script to the newly created elements held in the table |
483 |
//bind the click handler script to the newly created elements held in the table |
| 479 |
$('.openWin').bind('click',function(e){ |
484 |
$('.openWin').bind('click',function(e){ |
| 480 |
- |
|
|