Koha/koha-tmpl/intranet-tmpl/prog/en/includes
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
..
csv_headers/acqui Bug 12110: Display the order vendor note in basket and basketgroup CSV and PDF 2014-05-25 15:21:22 +00:00
virtualshelves/merge
acquisitions-add-to-basket.inc Bug 11665: An ability to place orders directly from hold ratios list 2014-05-04 19:13:39 +00:00
acquisitions-menu.inc
acquisitions-search.inc
acquisitions-toolbar.inc
additem.js.inc Bug 10576: make strings in additem.js accessible to translation 2013-07-22 15:40:21 +00:00
admin-menu.inc Bug 10212: Columns configuration for tables 2014-08-26 09:28:03 -03:00
auth-finder-search.inc Bug 10808: make authority search form retain drop-down selections 2013-12-10 04:25:12 +00:00
authorities-search-results.inc Bug 7442: (follow-up) restore display of heading type for non-UNIMARC 2014-05-05 01:27:33 +00:00
authorities-search.inc Bug 7484: keep selected values when changing search type on authority search form 2013-11-27 18:30:35 +00:00
authorities-toolbar.inc Bug 10096: (follow-up) rename button on authorities toolbar 2013-10-04 15:06:15 +00:00
authorities.inc
authorities_js.inc Bug 12295: fix Javascript error when merging authorities 2014-06-05 12:16:39 -03:00
av-build-dropbox.inc Bug 766: (follow-up) improve usage comments in new TT include 2014-05-04 23:11:34 +00:00
biblio-default-view.inc
biblio-view-menu.inc
borrower_debarments.inc Bug 11182: remove spurious logged warnings in circulation 2014-04-29 17:49:48 +00:00
browser-strings.inc Bug 10404: add previous/next browsing to staff client 2013-08-09 15:07:39 +00:00
budgets-active-currency.inc
budgets-admin-search.inc
budgets-admin-toolbar.inc
calendar.inc Bug 10694: (follow-up) fix various issues 2014-05-02 21:44:46 +00:00
cat-menu.inc
cat-search.inc Bug 12094: fix default tab selection broken by jQueryUI upgrade 2014-04-22 14:51:18 +00:00
cat-toolbar.inc Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
cataloging-search.inc Bug 11905 - when editing item, cursor is positioning in search box and not to item 2014-07-30 11:57:31 -03:00
checkin-search.inc
checkouts-table-footer.inc Bug 11703 - Convert checkouts table to ajax datatable 2014-07-03 11:22:10 -03:00
circ-menu.inc Bug 12542: Tabs inconsistency in different circ-menu.inc uses 2014-07-18 10:41:27 -03:00
circ-menu.tt Bug 12542: Tabs inconsistency in different circ-menu.inc uses 2014-07-18 10:41:27 -03:00
circ-search.inc
cities-admin-search.inc
columns_settings.inc Bug 10212: Columns configuration for tables 2014-08-26 09:28:03 -03:00
contracts-admin-search.inc
currencies-admin-search.inc
datatables-strings.inc Bug 11555: Make "All" one of the default options for datatables 2014-03-10 18:49:33 +00:00
datatables.inc Bug 11555: Make "All" one of the default options for datatables 2014-03-10 18:49:33 +00:00
date-format.inc
doc-head-close-receipt.inc Bug 10592: fix display of favicon 2013-07-22 14:00:23 +00:00
doc-head-close.inc Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00
doc-head-open.inc
facets.inc Bug 10857: (follow-up) encode 'limit' parameter values 2014-05-05 21:43:33 +00:00
file-upload.inc Bug 12103 - Move ajaxfileupload jQuery plugin outside of language-specific directory 2014-04-25 15:09:16 +00:00
form-blocks.inc
greybox.inc Bug 12101 - Move Greybox library outside of language-specific directory 2014-04-25 15:14:03 +00:00
guided-reports-view.inc
header.inc Bug 10862: Add search history to the intranet interface 2014-05-05 03:06:33 +00:00
help-bottom.inc Bug 12700 - Capitalization: "Close Help Window" in context help 2014-08-11 11:40:24 -03:00
help-top.inc Bug 11035: (follow-up) move shortcut.js 2013-12-03 15:35:15 +00:00
home-search.inc Bug 9811: Patron search improvement 2014-07-01 09:57:09 -03:00
installer-doc-head-close.inc Bug 12658: Wording of link text and translatability inside JavaScript 2014-08-15 15:36:11 -03:00
intranet-bottom.inc Bug 12597 - Give better visual indication of currently-selected language in the staff client 2014-08-05 20:49:20 -03:00
intranetstylesheet.inc
labels-menu.inc
labels-toolbar.inc
letters-search.inc
members-menu.inc
members-toolbar.inc Bug 2310: display tooltips explaining why patron menu items are disabled 2013-12-05 16:36:43 +00:00
merge-record-strings.inc Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00
merge-record.inc Bug 10650 - export merge-record.inc javascript into a file 2013-09-16 16:17:34 +00:00
messaging-preference-form.inc Bug 10511: (follow-up) jQuery .removeAttr() has only one parameter 2013-08-12 14:12:38 +00:00
page-numbers.inc
patron-search-box.inc Bug 11570 - Upgrade jQueryUI to latest version in the staff client 2014-04-07 15:37:27 +00:00
patron-search.inc Bug 10155: Patron search should remember search type options selected 2014-07-30 14:18:55 -03:00
patron-title.inc Bug 9811: Patron search improvement 2014-07-01 09:57:09 -03:00
patron-toolbar.inc
patroncards-errors.inc Bug 9924: (follow-up) ensure that correct error message is displayed 2013-09-08 19:19:50 +00:00
patroncards-menu.inc
patroncards-toolbar.inc
patrons-admin-search.inc
popup-bottom.inc
prefs-admin-search.inc
prefs-menu.inc Bug 12190: fold the "Creators" system preference tab into "Tools" 2014-05-23 13:09:51 +00:00
printers-admin-search.inc
quotes-toolbar.inc
quotes-upload-toolbar.inc
reports-menu.inc
reports-toolbar.inc Bug 12214: (follow-up) Clean up reports-toolbar.inc, show Edit link when SQL has errors 2014-05-09 14:40:15 +00:00
resort_form.inc
search_indexes.inc Bug 10755 - Add "Keyword as Phrase" to staff client advanced search indexes 2013-09-04 14:25:47 +00:00
serials-menu.inc Bug 7688: Change subscription numbering pattern and frequencies 2013-10-30 00:29:38 +00:00
serials-search.inc
serials-toolbar.inc
slip-print.inc Bug 11014 - Slip Print Problem in Chrome 2014-05-30 16:05:23 -03:00
stopwords-admin-search.inc
strings.inc Bug 11703 [QA Followup] - Restore showing earliest renewal date for 'too early' renewals 2014-07-03 11:22:10 -03:00
subscriptions-search.inc
subtypes_unimarc.inc Bug 11503: fix several typos 2014-01-13 20:47:03 +00:00
suggestions-add-search.inc
timepicker.inc Bug 11618: ensure jQuery timepicker is picked up by the i18n toolchain 2014-02-18 21:19:16 +00:00
tools-item-action.inc Bug 7131: teach MARC import how to overlay items 2013-10-30 04:31:07 +00:00
tools-menu.inc Bug 8015: (follow-up) fix various issues (squashed patch) 2013-10-31 22:49:45 +00:00
tools-nomatch-action.inc
tools-overlay-action.inc
validator-strings.inc
vendor-menu.inc
virtualshelves-toolbar.inc Bug 10714: Redirect to list contents view upon save after initiating edit from list contents view (staff) 2014-02-20 16:53:32 +00:00
z3950-admin-search.inc