From db4293988551bd25eede41ee5e3b92c7ad02c797 Mon Sep 17 00:00:00 2001 From: Shi Yao Wang Date: Wed, 6 Jul 2022 10:47:03 -0400 Subject: [PATCH] Bug 30922: Make the "Relative's checkouts" table configurable by the table settings Adds "relatives-issues-table" in table settings. Test plan: 1- Apply the patch 2- Check out an item to a patron with a guarantor 3- Go to the guarantor's "details" and "check out" page > relatives' checkouts and look at the different columns (you should see collection and location) 4- Go to admin > table settings > patron > moremember > relatives-issues-table or admin > table settings > circulation > circulation > relatives-issues-table to hide some columns (e.g. collection and location) and click save 5- Do step 3 again and notice some columns (e.g. collection and location) are hidden 6- Also notice the "Columns" and "Export" buttons that should work as intended Signed-off-by: David Nind Signed-off-by: Fridolin Somers Signed-off-by: Tomas Cohen Arazi --- admin/columns_settings.yml | 82 +++++++++++++++++++ .../prog/en/modules/circ/circulation.tt | 1 + .../prog/en/modules/members/moremember.tt | 1 + koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 6 +- 4 files changed, 87 insertions(+), 3 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index cc51d00c2c..18b2f239ff 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -960,6 +960,47 @@ modules: cannot_be_toggled: 1 cannot_be_modified: 1 + relatives-issues-table: + columns: + - + columnname: due_date_unformatted + cannot_be_toggled: 1 + cannot_be_modified: 1 + is_hidden: 1 + - + columnname: due_date + - + columnname: title + - + columnname: record_type + - + columnname: item_type + - + columnname: collection + - + columnname: location + - + columnname: checkout_on_unformatted + cannot_be_toggled: 1 + cannot_be_modified: 1 + is_hidden: 1 + - + columnname: checkout_on + - + columnname: checkout_from + - + columnname: callno + - + columnname: copynumber + - + columnname: charge + - + columnname: fine + - + columnname: price + - + columnname: patron + holdshistory: holdshistory-table: default_display_length: 20 @@ -1231,6 +1272,47 @@ modules: cannot_be_toggled: 1 cannot_be_modified: 1 + relatives-issues-table: + columns: + - + columnname: due_date_unformatted + cannot_be_toggled: 1 + cannot_be_modified: 1 + is_hidden: 1 + - + columnname: due_date + - + columnname: title + - + columnname: record_type + - + columnname: item_type + - + columnname: collection + - + columnname: location + - + columnname: checkout_on_unformatted + cannot_be_toggled: 1 + cannot_be_modified: 1 + is_hidden: 1 + - + columnname: checkout_on + - + columnname: checkout_from + - + columnname: callno + - + columnname: copynumber + - + columnname: charge + - + columnname: fine + - + columnname: price + - + columnname: patron + table_borrowers: columns: - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 49b9a302c1..992a1d2e7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -1063,6 +1063,7 @@ [% INCLUDE 'calendar.inc' %]