From e24e9f9bdd30d5ad1f4575a26763ca00500c1f18 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 19 Aug 2022 12:29:57 +0100 Subject: [PATCH] Bug 31028: (QA follow-up) Table configuration This patch properly adds the table configuration options to the catalog concerns table. --- admin/columns_settings.yml | 17 +++++++++++++++++ .../prog/en/modules/cataloguing/concerns.tt | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index be507f2041..b16fcc62ef 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -633,6 +633,23 @@ modules: - columnname: stocknumber + concerns: + table_concerns: + default_sort_order: 0 + columns: + - + columnname: reported + - + columnname: details + - + columnname: title + - + columnname: status + - + columnname: actions + cannot_be_toggled: 1 + cannot_be_modified: 1 + z3950_search: resultst: default_sort_order: 1 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt index 4152260c80..9a8fa0ce9d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt @@ -112,6 +112,8 @@ var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]"; + var table_settings = [% TablesSettings.GetTableSettings( 'cataloguing', 'concerns', 'table_concerns', 'json' ) | $raw %]; + var concerns_url = '/api/v1/catalog/concerns'; var concerns = $("#table_concerns").kohaTable({ "ajax": { @@ -195,7 +197,7 @@ "orderable": false }, ] - }); + }, table_settings, 1); $('#hideResolved').on( "click", function() { // It would be great if we could pass null here but it gets stringified -- 2.20.1