Bugzilla – Attachment 86582 Details for
Bug 22505
Add column configuration to patron list table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22505: Add column configuration to patron list table
Bug-22505-Add-column-configuration-to-patron-list-.patch (text/plain), 3.20 KB, created by
Owen Leonard
on 2019-03-13 18:48:27 UTC
(
hide
)
Description:
Bug 22505: Add column configuration to patron list table
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-03-13 18:48:27 UTC
Size:
3.20 KB
patch
obsolete
>From 8be5c55869465cdf87bd2f23d87d0f3a48eeb362 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 13 Mar 2019 14:19:44 +0100 >Subject: [PATCH] Bug 22505: Add column configuration to patron list table > >Test plan: >1. Create a list of patrons >2. Add some patrons to this list >3. Go to this patron list > (/cgi-bin/koha/patron_lists/list.pl?patron_list_id=XXX) >4. Verify that you can show/hide all columns except the one containing > the checkbox >5. Verify that you can export the table data using the Export menu >6. Go to admin/columns_settings.pl, and verify that the configuration > works for table 'patron-list-table' > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > admin/columns_settings.yml | 22 ++++++++++++++++++++++ > .../prog/en/modules/patron_lists/list.tt | 7 +++++-- > 2 files changed, 27 insertions(+), 2 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 296103d..6aeeeb3 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -517,6 +517,28 @@ modules: > columnname: itemtype > - > columnname: status >+ patron-lists: >+ patron-list-table: >+ - >+ columnname: checkbox >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >+ - >+ columnname: card >+ - >+ columnname: firstname >+ - >+ columnname: surname >+ - >+ columnname: address >+ - >+ columnname: category >+ - >+ columnname: library >+ - >+ columnname: expires_on >+ - >+ columnname: circ_notes > > reports: > lostitems: >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >index 64bbe64..0c184ee 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt >@@ -1,8 +1,10 @@ > [% USE raw %] > [% USE Asset %] > [% USE KohaDates %] >+[% USE ColumnsSettings %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >+[% INCLUDE 'columns_settings.inc' %] > <title>Koha › Tools › Patron lists › [% list.name | html %] › Add patrons</title> > [% INCLUDE 'doc-head-close.inc' %] > >@@ -184,7 +186,8 @@ > $(document).ready(function() { > $('#patrons_to_add_fieldset').hide(); > >- $('#patron-list-table').dataTable($.extend(true, {}, dataTablesDefaults, { >+ var columns_settings_table = [% ColumnsSettings.GetColumns('members', 'patron-lists', 'patron-list-table', 'json') | $raw %] >+ KohaTable('patron-list-table', { > "order": [[ 3, "asc" ]], > "aoColumns": [ > null,null,null,null,null,null,null,{ "sType": "title-string" },null >@@ -193,7 +196,7 @@ > { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, > ], > "sPaginationType": "four_button" >- } )); >+ }, columns_settings_table); > > patron_autocomplete({ > patron_container: $("#patrons_to_add"), >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22505
:
86570
|
86582
|
86685
|
86686
|
86957