Lines 2-7
Link Here
|
2 |
[% USE To %] |
2 |
[% USE To %] |
3 |
[% USE Asset %] |
3 |
[% USE Asset %] |
4 |
[% USE AuthorisedValues %] |
4 |
[% USE AuthorisedValues %] |
|
|
5 |
[% USE TablesSettings %] |
5 |
[% PROCESS 'i18n.inc' %] |
6 |
[% PROCESS 'i18n.inc' %] |
6 |
[%- BLOCK form_label -%] |
7 |
[%- BLOCK form_label -%] |
7 |
[%- SWITCH label -%] |
8 |
[%- SWITCH label -%] |
Lines 355-360
Link Here
|
355 |
|
356 |
|
356 |
[% MACRO jsinclude BLOCK %] |
357 |
[% MACRO jsinclude BLOCK %] |
357 |
[% INCLUDE 'datatables.inc' %] |
358 |
[% INCLUDE 'datatables.inc' %] |
|
|
359 |
[% INCLUDE 'columns_settings.inc' %] |
358 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
360 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
359 |
[% INCLUDE 'select2.inc' %] |
361 |
[% INCLUDE 'select2.inc' %] |
360 |
<script> |
362 |
<script> |
Lines 453-480
Link Here
|
453 |
function submitForm($form) { |
455 |
function submitForm($form) { |
454 |
var tr = '' |
456 |
var tr = '' |
455 |
+ ' <tr>' |
457 |
+ ' <tr>' |
456 |
+ ' <th id="items_checkbox"></th>' |
458 |
+ ' <th id="items_checkbox" data-colname="itemsearch_checkbox"></th>' |
457 |
+ ' <th id="items_title">' + _("Title") + '</th>' |
459 |
+ ' <th id="items_title" data-colname="title">' + _("Title") + '</th>' |
458 |
+ ' <th id="items_pubdate">' + _("Publication date") + '</th>' |
460 |
+ ' <th id="items_pubdate" data-colname="publication_date">' + _("Publication date") + '</th>' |
459 |
+ ' <th id="items_publisher">' + _("Publisher") + '</th>' |
461 |
+ ' <th id="items_publisher" data-colname="publisher">' + _("Publisher") + '</th>' |
460 |
+ ' <th id="items_collection">' + _("Collection") + '</th>' |
462 |
+ ' <th id="items_collection" data-colname="collection">' + _("Collection") + '</th>' |
461 |
+ ' <th id="items_barcode">' + _("Barcode") + '</th>' |
463 |
+ ' <th id="items_barcode" data-colname="barcode">' + _("Barcode") + '</th>' |
462 |
+ ' <th id="items_itemnumber">' + _("Item number") + '</th>' |
464 |
+ ' <th id="items_itemnumber" data-colname="item_number">' + _("Item number") + '</th>' |
463 |
+ ' <th id="items_enumchron">' + _("Serial enumeration") + '</th>' |
465 |
+ ' <th id="items_enumchron" data-colname="serial_enumeration">' + _("Serial enumeration") + '</th>' |
464 |
+ ' <th id="items_callno">' + _("Call number") + '</th>' |
466 |
+ ' <th id="items_callno" data-colname="call_number">' + _("Call number") + '</th>' |
465 |
+ ' <th id="items_homebranch">' + _("Home library") + '</th>' |
467 |
+ ' <th id="items_homebranch" data-colname="home_library">' + _("Home library") + '</th>' |
466 |
+ ' <th id="items_holdingbranch">' + _("Current library") + '</th>' |
468 |
+ ' <th id="items_holdingbranch" data-colname="current_library">' + _("Current library") + '</th>' |
467 |
+ ' <th id="items_location">' + _("Shelving location") + '</th>' |
469 |
+ ' <th id="items_location" data-colname="shelving_location">' + _("Shelving location") + '</th>' |
468 |
+ ' <th id="items_itype">' + _("Itemtype") + '</th>' |
470 |
+ ' <th id="items_itype" data-colname="item_type">' + _("Itemtype") + '</th>' |
469 |
+ ' <th id="item_inventoryno">' + _("Inventory number") + '</th>' |
471 |
+ ' <th id="item_inventoryno" data-colname="inventory_number">' + _("Inventory number") + '</th>' |
470 |
+ ' <th id="items_status">' + _("Not for loan status") + '</th>' |
472 |
+ ' <th id="items_status" data-colname="notforloan_status">' + _("Not for loan status") + '</th>' |
471 |
+ ' <th id="items_itemlost">' + _("Lost status") + '</th>' |
473 |
+ ' <th id="items_itemlost" data-colname="lost_status">' + _("Lost status") + '</th>' |
472 |
+ ' <th id="items_widthdrawn">' + _("Withdrawn status") + '</th>' |
474 |
+ ' <th id="items_widthdrawn" data-colname="withdrawn_status">' + _("Withdrawn status") + '</th>' |
473 |
+ ' <th id="items_damaged">' + _("Damaged status") + '</th>' |
475 |
+ ' <th id="items_damaged" data-colname="damaged_status">' + _("Damaged status") + '</th>' |
474 |
+ ' <th id="items_checkouts">' + _("Checkouts") + '</th>' |
476 |
+ ' <th id="items_checkouts" data-colname="checkouts">' + _("Checkouts") + '</th>' |
475 |
+ ' <th id="items_datelastborrowed">' + _("Last checkout date") + '</th>' |
477 |
+ ' <th id="items_datelastborrowed" data-colname="last_checkout_date">' + _("Last checkout date") + '</th>' |
476 |
+ ' <th id="items_date_due">' + _("Due date") + '</th>' |
478 |
+ ' <th id="items_date_due" data-colname="due_date">' + _("Due date") + '</th>' |
477 |
+ ' <th id=""></th>' |
479 |
+ ' <th id="itmes_actions" data-colname="actions">Actions</th>' |
478 |
+ ' </tr>'; |
480 |
+ ' </tr>'; |
479 |
|
481 |
|
480 |
var table = '' |
482 |
var table = '' |
Lines 566-572
Link Here
|
566 |
|
568 |
|
567 |
var params = getParams($form); |
569 |
var params = getParams($form); |
568 |
|
570 |
|
569 |
$('#results').dataTable($.extend(true, {}, dataTablesDefaults, { |
571 |
var table_settings = [% TablesSettings.GetTableSettings( 'catalogue', 'itemsearch', 'results', 'json' ) | $raw %]; |
|
|
572 |
KohaTable('results' , { |
573 |
"bKohaColumnsUseNames": true, |
570 |
"destroy": true, |
574 |
"destroy": true, |
571 |
"serverSide": true, |
575 |
"serverSide": true, |
572 |
"processing": true, |
576 |
"processing": true, |
Lines 585-591
Link Here
|
585 |
return d; |
589 |
return d; |
586 |
} |
590 |
} |
587 |
}, |
591 |
}, |
588 |
'dom': '<"top pager"ilp>t<"bottom pager"ip>r', |
592 |
'dom': 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
589 |
'order': [[1, 'asc']], |
593 |
'order': [[1, 'asc']], |
590 |
'columns': [ |
594 |
'columns': [ |
591 |
{ 'name': 'checkbox', 'orderable': false }, |
595 |
{ 'name': 'checkbox', 'orderable': false }, |
Lines 616-622
Link Here
|
616 |
prepSelections(); |
620 |
prepSelections(); |
617 |
}, |
621 |
}, |
618 |
fixedHeader: false // There is a bug on this view |
622 |
fixedHeader: false // There is a bug on this view |
619 |
})).columnFilter({ |
623 |
}, table_settings ).columnFilter({ |
620 |
'sPlaceHolder': 'head:after', |
624 |
'sPlaceHolder': 'head:after', |
621 |
"aoColumns": [ |
625 |
"aoColumns": [ |
622 |
null, |
626 |
null, |
623 |
- |
|
|