|
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 286-291
Link Here
|
| 286 |
|
287 |
|
| 287 |
[% MACRO jsinclude BLOCK %] |
288 |
[% MACRO jsinclude BLOCK %] |
| 288 |
[% INCLUDE 'datatables.inc' %] |
289 |
[% INCLUDE 'datatables.inc' %] |
|
|
290 |
[% INCLUDE 'columns_settings.inc' %] |
| 289 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
291 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
| 290 |
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] |
292 |
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] |
| 291 |
[% INCLUDE 'select2.inc' %] |
293 |
[% INCLUDE 'select2.inc' %] |
|
Lines 371-398
Link Here
|
| 371 |
function submitForm($form) { |
373 |
function submitForm($form) { |
| 372 |
var tr = '' |
374 |
var tr = '' |
| 373 |
+ ' <tr>' |
375 |
+ ' <tr>' |
| 374 |
+ ' <th id="items_checkbox"></th>' |
376 |
+ ' <th id="items_checkbox" data-colname="itemsearch_checkbox"></th>' |
| 375 |
+ ' <th id="items_title">' + _("Title") + '</th>' |
377 |
+ ' <th id="items_title" data-colname="title">' + _("Title") + '</th>' |
| 376 |
+ ' <th id="items_pubdate">' + _("Publication date") + '</th>' |
378 |
+ ' <th id="items_pubdate" data-colname="publication_date">' + _("Publication date") + '</th>' |
| 377 |
+ ' <th id="items_publisher">' + _("Publisher") + '</th>' |
379 |
+ ' <th id="items_publisher" data-colname="publisher">' + _("Publisher") + '</th>' |
| 378 |
+ ' <th id="items_collection">' + _("Collection") + '</th>' |
380 |
+ ' <th id="items_collection" data-colname="collection">' + _("Collection") + '</th>' |
| 379 |
+ ' <th id="items_barcode">' + _("Barcode") + '</th>' |
381 |
+ ' <th id="items_barcode" data-colname="barcode">' + _("Barcode") + '</th>' |
| 380 |
+ ' <th id="items_itemnumber">' + _("Item number") + '</th>' |
382 |
+ ' <th id="items_itemnumber" data-colname="item_number">' + _("Item number") + '</th>' |
| 381 |
+ ' <th id="items_enumchron">' + _("Serial enumeration") + '</th>' |
383 |
+ ' <th id="items_enumchron" data-colname="serial_enumeration">' + _("Serial enumeration") + '</th>' |
| 382 |
+ ' <th id="items_callno">' + _("Call number") + '</th>' |
384 |
+ ' <th id="items_callno" data-colname="call_number">' + _("Call number") + '</th>' |
| 383 |
+ ' <th id="items_homebranch">' + _("Home library") + '</th>' |
385 |
+ ' <th id="items_homebranch" data-colname="home_library">' + _("Home library") + '</th>' |
| 384 |
+ ' <th id="items_holdingbranch">' + _("Current library") + '</th>' |
386 |
+ ' <th id="items_holdingbranch" data-colname="current_library">' + _("Current library") + '</th>' |
| 385 |
+ ' <th id="items_location">' + _("Shelving location") + '</th>' |
387 |
+ ' <th id="items_location" data-colname="shelving_location">' + _("Shelving location") + '</th>' |
| 386 |
+ ' <th id="items_itype">' + _("Itemtype") + '</th>' |
388 |
+ ' <th id="items_itype" data-colname="item_type">' + _("Itemtype") + '</th>' |
| 387 |
+ ' <th id="item_inventoryno">' + _("Inventory number") + '</th>' |
389 |
+ ' <th id="item_inventoryno" data-colname="inventory_number">' + _("Inventory number") + '</th>' |
| 388 |
+ ' <th id="items_status">' + _("Not for loan status") + '</th>' |
390 |
+ ' <th id="items_status" data-colname="notforloan_status">' + _("Not for loan status") + '</th>' |
| 389 |
+ ' <th id="items_itemlost">' + _("Lost status") + '</th>' |
391 |
+ ' <th id="items_itemlost" data-colname="lost_status">' + _("Lost status") + '</th>' |
| 390 |
+ ' <th id="items_widthdrawn">' + _("Withdrawn status") + '</th>' |
392 |
+ ' <th id="items_widthdrawn" data-colname="withdrawn_status">' + _("Withdrawn status") + '</th>' |
| 391 |
+ ' <th id="items_damaged">' + _("Damaged status") + '</th>' |
393 |
+ ' <th id="items_damaged" data-colname="damaged_status">' + _("Damaged status") + '</th>' |
| 392 |
+ ' <th id="items_checkouts">' + _("Checkouts") + '</th>' |
394 |
+ ' <th id="items_checkouts" data-colname="checkouts">' + _("Checkouts") + '</th>' |
| 393 |
+ ' <th id="items_datelastborrowed">' + _("Last checkout date") + '</th>' |
395 |
+ ' <th id="items_datelastborrowed" data-colname="last_checkout_date">' + _("Last checkout date") + '</th>' |
| 394 |
+ ' <th id="items_date_due">' + _("Due date") + '</th>' |
396 |
+ ' <th id="items_date_due" data-colname="due_date">' + _("Due date") + '</th>' |
| 395 |
+ ' <th id=""></th>' |
397 |
+ ' <th id="itmes_actions" data-colname="actions">Actions</th>' |
| 396 |
+ ' </tr>'; |
398 |
+ ' </tr>'; |
| 397 |
|
399 |
|
| 398 |
var table = '' |
400 |
var table = '' |
|
Lines 473-480
Link Here
|
| 473 |
params.push({ 'name': $(this).attr('name'), 'value': $(this).val() }); |
475 |
params.push({ 'name': $(this).attr('name'), 'value': $(this).val() }); |
| 474 |
} |
476 |
} |
| 475 |
}); |
477 |
}); |
| 476 |
|
478 |
var table_settings = [% TablesSettings.GetTableSettings( 'catalogue', 'itemsearch', 'results', 'json' ) | $raw %]; |
| 477 |
$('#results').dataTable($.extend(true, {}, dataTablesDefaults, { |
479 |
KohaTable('results' , { |
|
|
480 |
"bKohaColumnsUseNames": true, |
| 478 |
"destroy": true, |
481 |
"destroy": true, |
| 479 |
"serverSide": true, |
482 |
"serverSide": true, |
| 480 |
"processing": true, |
483 |
"processing": true, |
|
Lines 493-499
Link Here
|
| 493 |
return d; |
496 |
return d; |
| 494 |
} |
497 |
} |
| 495 |
}, |
498 |
}, |
| 496 |
'dom': '<"top pager"ilp>t<"bottom pager"ip>r', |
499 |
'dom': 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
| 497 |
'order': [[1, 'asc']], |
500 |
'order': [[1, 'asc']], |
| 498 |
'columns': [ |
501 |
'columns': [ |
| 499 |
{ 'name': 'checkbox', 'orderable': false }, |
502 |
{ 'name': 'checkbox', 'orderable': false }, |
|
Lines 524-530
Link Here
|
| 524 |
prepSelections(); |
527 |
prepSelections(); |
| 525 |
}, |
528 |
}, |
| 526 |
fixedHeader: false // There is a bug on this view |
529 |
fixedHeader: false // There is a bug on this view |
| 527 |
})).columnFilter({ |
530 |
}, table_settings ).columnFilter({ |
| 528 |
'sPlaceHolder': 'head:after', |
531 |
'sPlaceHolder': 'head:after', |
| 529 |
"columns": [ |
532 |
"columns": [ |
| 530 |
null, |
533 |
null, |
| 531 |
- |
|
|