@@ -, +, @@ --- admin/columns_settings.yml | 18 ++++++++++++++++++ .../prog/en/modules/virtualshelves/shelves.tt | 13 ++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) --- a/admin/columns_settings.yml +++ a/admin/columns_settings.yml @@ -299,6 +299,24 @@ modules: cannot_be_modified: 1 catalogue: + lists: + searchresults: + columns: + - + columnname: checkbox + cannot_be_toggled: 1 + cannot_be_modified: 1 + - + columnname: title + cannot_be_toggled: 1 + cannot_be_modified: 1 + - + columnname: author + - + columnname: date_added + - + columnname: call_number + detail: holdings_table: columns: --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -2,6 +2,7 @@ [% USE Asset %] [% USE Koha %] [% USE KohaDates %] +[% USE TablesSettings %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -500,12 +501,12 @@ [% IF op == 'view' %] [% Asset.js("lib/hc-sticky.js") | $raw %] + [% INCLUDE 'columns_settings.inc' %] [% END %] <script> var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?"); var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?"); - [% IF op == 'list' %] $(document).ready(function(){ var public = [% public | html %]; @@ -608,6 +609,16 @@ [% IF shelf AND op == 'view' %] var Sticky; $(document).ready(function(){ + var column_settings = [% TablesSettings.GetColumns( 'catalogue', 'lists', 'searchresults', 'json' ) | $raw %]; + KohaTable("searchresults", { + "dom": 'lrt', + "sorting": [[ 1, "asc" ]], + "autoWidth": false, + "asColumnDefs": [ + { "aTargets": [ 1 ], "sType": "nsb-nse" }, + ] + }, column_settings ); + Sticky = $("#searchheader"); Sticky.hcSticky({ stickTo: "#listform", --