From 27dda9782c26ed44926c7dbce1e4926711e0378b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Mar 2015 13:09:06 +0100 Subject: [PATCH] Bug 13866: Columns configuration - Patrons search This patch adds the ability to hide columns on the patrons search page (acqui/lateorders.pl). Test plan: Go on the patrons search page and confirm you are able to hide columns. You can also play with the columns configuration admin page and confirm that the behaviors are consistent. Signed-off-by: Josef Moravec Works as expected Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi Small rebase was needed. --- admin/columns_settings.yml | 29 +++++++++++++++++++ .../prog/en/modules/admin/columns_settings.tt | 6 ++++ .../prog/en/modules/members/member.tt | 7 +++-- 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index f2d9cc9e7e..529cd152af 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -51,6 +51,35 @@ modules: columnname: active - columnname: actions + + members: + member: + memberresultst: + - + columnname: checkbox + cannot_be_toggled: 1 + cannot_be_modified: 1 + - + columnname: cardnumber + - + columnname: name + - + columnname: category + - + columnname: library + - + columnname: expires_on + - + columnname: od_checkouts + - + columnname: fines + - + columnname: circ_notes + - + columnname: actions + cannot_be_toggled: 1 + cannot_be_modified: 1 + reports: lostitems: lostitems-table: diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt index db629e5d60..cb799f7ffd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt @@ -145,6 +145,12 @@ [% PROCESS pagelist module=modules.circ modulename="circ" %] +

Patrons

+
+

Patrons tables

+ [% PROCESS pagelist module=modules.members modulename="members" %] +
+

Reports

Reports tables

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index d481c60269..7ecf2712ed 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -1,9 +1,11 @@ [% USE Koha %] +[% USE ColumnsSettings %] [% INCLUDE 'doc-head-open.inc' %] Koha › Patrons [% IF ( searching ) %]› Search results[% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'datatables.inc' %] +[% INCLUDE 'columns_settings.inc' %]