|
Lines 2-7
Link Here
|
| 2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
| 3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
| 4 |
[% USE KohaDates %] |
4 |
[% USE KohaDates %] |
|
|
5 |
[% USE TablesSettings %] |
| 5 |
[% SET footerjs = 1 %] |
6 |
[% SET footerjs = 1 %] |
| 6 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
| 7 |
<title> |
8 |
<title> |
|
Lines 499-510
Link Here
|
| 499 |
|
500 |
|
| 500 |
[% IF op == 'view' %] |
501 |
[% IF op == 'view' %] |
| 501 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
502 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
|
|
503 |
[% INCLUDE 'columns_settings.inc' %] |
| 502 |
[% END %] |
504 |
[% END %] |
| 503 |
<script> |
505 |
<script> |
| 504 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
506 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
| 505 |
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?"); |
507 |
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?"); |
| 506 |
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?"); |
508 |
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?"); |
| 507 |
|
|
|
| 508 |
[% IF op == 'list' %] |
509 |
[% IF op == 'list' %] |
| 509 |
$(document).ready(function(){ |
510 |
$(document).ready(function(){ |
| 510 |
var public = [% public | html %]; |
511 |
var public = [% public | html %]; |
|
Lines 607-612
Link Here
|
| 607 |
[% IF shelf AND op == 'view' %] |
608 |
[% IF shelf AND op == 'view' %] |
| 608 |
var Sticky; |
609 |
var Sticky; |
| 609 |
$(document).ready(function(){ |
610 |
$(document).ready(function(){ |
|
|
611 |
var column_settings = [% TablesSettings.GetColumns( 'catalogue', 'lists', 'searchresults', 'json' ) | $raw %]; |
| 612 |
KohaTable("searchresults", { |
| 613 |
"dom": 'lrt', |
| 614 |
"sorting": [[ 1, "asc" ]], |
| 615 |
"autoWidth": false, |
| 616 |
"asColumnDefs": [ |
| 617 |
{ "aTargets": [ 1 ], "sType": "nsb-nse" }, |
| 618 |
] |
| 619 |
}, column_settings ); |
| 620 |
|
| 610 |
Sticky = $("#searchheader"); |
621 |
Sticky = $("#searchheader"); |
| 611 |
Sticky.hcSticky({ |
622 |
Sticky.hcSticky({ |
| 612 |
stickTo: "#listform", |
623 |
stickTo: "#listform", |
| 613 |
- |
|
|