Bug 22175: Make stock rotation table sortable
authorOwen Leonard <oleonard@myacpl.org>
Fri, 25 Jan 2019 14:02:01 +0000 (14:02 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 18 Apr 2019 10:53:05 +0000 (10:53 +0000)
commit8bf043b94d73724244429adfae249d87ca5c8b9c
tree10dd9dd7b664eb85613d13e4329d96076a60056b
parent6f1459e2cea0b3ea2d14a649bda813cd9dee84ab
Bug 22175: Make stock rotation table sortable

This patch adds sorting and column configuration to the stock
rotation tables, both rotas and items. No new defaults for the table are
defined.

To test, apply the patch and clear your browser cache if necessary.

 - Go to Tools -> Stock rotation.
   - In the table of rotas test that sorting works correctly.
   - Test that the "Column visibility" button works to show and hide
     columns. The "actions" column should be excluded.
   - Test that export options (Excel, CSV, etc) exclude the "actions"
     column.
   - Choose a rota with multiple items on it and select manage ->
     items. Repeat the above DataTables functionality tests.

 - Go to Administration -> Columns settings and edit the default
   configuration of the stock rotation tables. Confirm that these
   changes are reflected in the corresponding tables.

Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt
koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js