Koha/koha-tmpl/intranet-tmpl/prog/en/js
Jonathan Druart ebf4e33cbf Bug 10212: Columns configuration for tables
This development introduces ColVis into Koha and provides a configuration
page for columns visibility.

ColVis is a plugin for DataTables. It allows to change the visibility of
the columns in the table.

* This development adds:
  - the js and css file for ColVis
  - a new DB table 'columns_settings'
  - a new template plugin 'ColumnsSettings'
  - a new package C4::Utils::DataTables::ColumnsSettings
  - a new admin page admin/columns_settings.pl

* How it works:
A yaml file is created (admin/columns_settings.yml) in order to take an
inventory of all tables where ColVis is implemented. This file is read
to create the list of modules, pages and tables in the configuration
page.
There are 3 possible keys in the yml:
 - is_hidden: default is 0
The column will be hidden.
 - cannot_be_toggled: default is 0.
ColVis will allow to hide/show the column.
 - cannot_be_modified: default is 0
Default values (in the yml) won't be modifiable.

When a user changes (or saves) the configuration for one module, all
columns are added to the DB table. The values in the DB get the upper hand
on the yaml values.

* Humm, strange?
It seems weird to have 2 storages for the same values. But I
think it will be easy to add an entry and maintain the yaml rather than
adding a new row (and new entry in updatedatabase script) in the DB.

* To go further: We can imagine that the configuration is saved for each
user (and not globally like it is made with this patch).

This patch cannot be tested as it, you need to apply the "POC" patch.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script, more comments on last patch.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-08-26 09:28:03 -03:00
..
pages Bug 11703 [QA Followup] - Allow keyboard navigation of tabs 2014-07-03 11:22:11 -03:00
acq.js Bug 7180: (follow-up) fix various issues 2014-05-04 19:56:59 +00:00
additem.js Bug 10576: make strings in additem.js accessible to translation 2013-07-22 15:40:21 +00:00
ajax.js Bug 2774 - Path to theme is hard-coded in many places 2013-07-18 16:49:18 +00:00
background-job-progressbar.js
basket.js Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00
basketgroup.js Bug 10533: move JavaScript functions for basket groups to a separate file 2014-04-18 19:25:12 +00:00
cataloging.js Bug 11292 [QA Followup] - Use noEnterSubmit instead of new keypress handler 2014-06-24 09:39:53 -03:00
checkouts.js Bug 11703: (qa followup) consistency in svc 2014-07-03 12:38:13 -03:00
datatables.js Bug 10212: Columns configuration for tables 2014-08-26 09:28:03 -03:00
holds.js Bug 11703: (followup) svc/holds invoked with trailing .pl 2014-07-03 14:05:23 -03:00
localcovers.js
members.js Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00
merge-record.js Bug 10648 - In records merge greatest field can not be added 2014-08-05 20:17:17 -03:00
offlinecirc.js Bug 10240: QA follow-up 2013-10-11 01:57:03 +00:00
prevent_submit.js
staff-global.js Bug 12708 - Unexpected behaviour in IE 9 and lower when using openWindow 2014-08-19 09:31:25 -03:00
xmlControlfield.js Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00