ebf4e33cbf
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> |
||
---|---|---|
.. | ||
csv_headers/acqui | ||
virtualshelves/merge | ||
acquisitions-add-to-basket.inc | ||
acquisitions-menu.inc | ||
acquisitions-search.inc | ||
acquisitions-toolbar.inc | ||
additem.js.inc | ||
admin-menu.inc | ||
auth-finder-search.inc | ||
authorities-search-results.inc | ||
authorities-search.inc | ||
authorities-toolbar.inc | ||
authorities.inc | ||
authorities_js.inc | ||
av-build-dropbox.inc | ||
biblio-default-view.inc | ||
biblio-view-menu.inc | ||
borrower_debarments.inc | ||
browser-strings.inc | ||
budgets-active-currency.inc | ||
budgets-admin-search.inc | ||
budgets-admin-toolbar.inc | ||
calendar.inc | ||
cat-menu.inc | ||
cat-search.inc | ||
cat-toolbar.inc | ||
cataloging-search.inc | ||
checkin-search.inc | ||
checkouts-table-footer.inc | ||
circ-menu.inc | ||
circ-menu.tt | ||
circ-search.inc | ||
cities-admin-search.inc | ||
columns_settings.inc | ||
contracts-admin-search.inc | ||
currencies-admin-search.inc | ||
datatables-strings.inc | ||
datatables.inc | ||
date-format.inc | ||
doc-head-close-receipt.inc | ||
doc-head-close.inc | ||
doc-head-open.inc | ||
facets.inc | ||
file-upload.inc | ||
form-blocks.inc | ||
greybox.inc | ||
guided-reports-view.inc | ||
header.inc | ||
help-bottom.inc | ||
help-top.inc | ||
home-search.inc | ||
installer-doc-head-close.inc | ||
intranet-bottom.inc | ||
intranetstylesheet.inc | ||
labels-menu.inc | ||
labels-toolbar.inc | ||
letters-search.inc | ||
members-menu.inc | ||
members-toolbar.inc | ||
merge-record-strings.inc | ||
merge-record.inc | ||
messaging-preference-form.inc | ||
page-numbers.inc | ||
patron-search-box.inc | ||
patron-search.inc | ||
patron-title.inc | ||
patron-toolbar.inc | ||
patroncards-errors.inc | ||
patroncards-menu.inc | ||
patroncards-toolbar.inc | ||
patrons-admin-search.inc | ||
popup-bottom.inc | ||
prefs-admin-search.inc | ||
prefs-menu.inc | ||
printers-admin-search.inc | ||
quotes-toolbar.inc | ||
quotes-upload-toolbar.inc | ||
reports-menu.inc | ||
reports-toolbar.inc | ||
resort_form.inc | ||
search_indexes.inc | ||
serials-menu.inc | ||
serials-search.inc | ||
serials-toolbar.inc | ||
slip-print.inc | ||
stopwords-admin-search.inc | ||
strings.inc | ||
subscriptions-search.inc | ||
subtypes_unimarc.inc | ||
suggestions-add-search.inc | ||
timepicker.inc | ||
tools-item-action.inc | ||
tools-menu.inc | ||
tools-nomatch-action.inc | ||
tools-overlay-action.inc | ||
validator-strings.inc | ||
vendor-menu.inc | ||
virtualshelves-toolbar.inc | ||
z3950-admin-search.inc |