Bug 16784: Add table configuration on suggestions table
authorOwen Leonard <oleonard@myacpl.org>
Sun, 12 Jan 2020 20:28:16 +0000 (20:28 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 20 Jan 2020 16:37:21 +0000 (16:37 +0000)
commitfb526fb155143a62ea24a8433f58c1c79c1a0179
treec7423fd746422527b583510fec43457ef7c0b3c2
parent7b25cc903e21fae100453e079ac79516631b3f6b
Bug 16784: Add table configuration on suggestions table

This patch adds DataTables column configuration and export options to
the suggestions management tables in the staff interface.

The columns settings made via the administrative interface will affect
tables under each tab in the interface whether it be organized by
status, library, etc. However because of the way the KohaTable function
is currently written, changes made via the "Columns" button will only
affect the visible table.

To test, apply the patch and go to Acquisitions -> Suggestions.

 - Under each tab, the table of suggestions should have a DataTables
   toolbar with export and columns buttons. These controls should work
   correctly:
   - Showing and hiding columns should work as expected
   - Exports should work, excluding the first and last columns
 - Test the tables when using the various "Organize by" settings.
 - Test changing the settings in Administration -> Columns settings.
   - Verify that the changes you make to that configuration are
     reflected in the suggestions tables.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt