Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Owen Leonard 0117c6da8e Bug 22844: Simplify the process of selecting database columns for system preferences
This patch introduces a new way for users to select database columns for
system preferences like BorrowerMandatoryField, which currently
require hand-typing of database names.

This new system uses a JSON file containing label:column pairs for
database columns which are relevant to preferences which reference
borrower table columns. My intention was to have user-friendly values as
the labels, but embedding English strings in JSON would make them
untranslatable.

The following preferences are affected:

 - BorrowerMandatoryField
 - BorrowerUnwantedField
 - PatronSelfModificationBorrowerUnwantedField
 - PatronSelfRegistrationBorrowerMandatoryField
 - PatronSelfRegistrationBorrowerUnwantedField

== Test plan ==
 - apply the patches
 - regenerate the staff client CSS (yarn build)
 - updatedatabase
 - dbic
 - flush_memcached
 - restart_all to make sure the updated .pref file is used

 - Go to Administration -> System preferences, and search for
   "PatronSelf"
 - The input fields for PatronSelfModificationBorrowerUnwantedField,
   PatronSelfRegistrationBorrowerMandatoryField, and
   PatronSelfRegistrationBorrowerUnwantedField should appear as "locked"
   (read-only) inputs.
 - Clicking the input field should trigger a modal window with
   checkboxes for each available column from the borrowers table.
 - Test that the "select all" and "clear all" links work correctly.
 - Test that the "cancel" link closes the modal without saving your
   selections.
 - Test that the "Save" button closes the modal, copies your selections
   to the form field, and triggers the preference-saving function (this
   eliminates the need to click a save button again after closing the
   modal).
   - Test this process by making modifications to all three different
     preferences, confirming that the right data is preselected each
     time the modal is shown and the right data is saved to the right
     field each time.

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-07-20 16:08:22 +02:00
..
preferences Bug 22844: Simplify the process of selecting database columns for system preferences 2020-07-20 16:08:22 +02:00
searchengine/elasticsearch Bug 20484: (RM follow-up) Highlight ES disablement 2020-04-21 12:14:13 +01:00
additional-fields.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
admin-home.tt Bug 24156: (follow-up) UI - Use "Table settings" 2020-06-25 10:55:41 +02:00
adveditorshortcuts.tt Bug 21411: (follow-up) Clean up for QA 2019-05-10 18:59:39 +00:00
aqbudgetperiods.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
aqbudgets.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
aqcontract.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
aqplan.tt Bug 24636: (follow-up) - move 'by' into include file 2020-05-04 08:53:04 +01:00
audio_alerts.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
auth_subfields_structure.tt Bug 21706: (QA follow-up) Fix tabs 2018-11-12 16:39:57 -03:00
auth_tag_structure.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
authorised_values.tt Bug 17355: Add the ability to remove authorised value categories 2020-05-04 07:57:21 +01:00
authtypes.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
biblio_framework.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
branch_transfer_limits.tt Bug 24747: Corrects on-screen instructions in branch transfer limits 2020-03-02 09:29:50 +00:00
branches.tt Bug 25862: Prevent TinyMCE to mangle local url links 2020-07-20 14:05:21 +02:00
cash_registers.tt Bug 24395: Show initial float using the Price TT plugin on summary page 2020-01-20 14:03:49 +00:00
categories.tt Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
checkmarc.tt Bug 20739: Update two-column templates with Bootstrap grid, Administration part 3 2018-08-30 13:40:33 +00:00
cities.tt Bug 25279: (QA follow-up) Use .escapeHtml 2020-05-12 11:40:22 +01:00
classsources.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
clone-rules.tt Bug 20739: Update two-column templates with Bootstrap grid, Administration part 3 2018-08-30 13:40:33 +00:00
columns_settings.tt Bug 25974: Remove inline style from table settings administration page 2020-07-20 14:05:21 +02:00
credit_types.tt Bug 17702: (RM follow-up) Remove use of I18N tt 2020-02-20 16:41:39 +00:00
currency.tt Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
debit_types.tt Bug 23354: (follow-up) Make display of debit types configurable 2020-01-13 14:05:14 +00:00
desks.tt Bug 13881: (QA follow-up) Some documentation and terminology fixes 2020-03-25 09:20:00 +00:00
didyoumean.tt Bug 20399: (QA follow-up) Remove mention of INTRAdidyoumean from text and delete commented code 2020-03-26 11:55:46 +00:00
edi_accounts.tt Bug 25687: Switch Y/N in EDI accounts table for Yes and No for better translatability 2020-06-15 11:53:36 +02:00
edi_ean_accounts.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
item_circulation_alerts.tt Bug 21672: Switch templates to Bootstrap grid: Various 2019-01-25 17:41:37 +00:00
items_search_field.tt Bug 20740: Update two-column templates with Bootstrap grid, Administration part 4 2018-08-30 13:40:34 +00:00
items_search_fields.tt Bug 19497: Removed title (tooltip) from Edit button in items_search_fields.tt 2019-04-11 13:52:08 +00:00
itemtypes.tt Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
koha2marclinks.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
library_groups.tt Bug 22937: Add hint to groups editor 2020-04-08 11:52:25 +01:00
localization.tt Bug 23351: Clean up localization template 2019-10-02 13:53:28 +01:00
marc_subfields_structure.tt Bug 25471: Add DataTables to MARC subfield structure admin page 2020-06-24 15:05:02 +02:00
marctagstructure.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
matching-rules.tt Bug 23324: Add an ISBN normalization routine 2019-08-16 12:26:48 +01:00
oai_set_mappings.tt Bug 21520: QA Follow-up: do not build html tags with TT conditions 2020-01-15 13:50:09 +00:00
oai_sets.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
overdrive.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
patron-attr-types.tt Bug 24151: Adding keep_for_anonymized to the UI 2020-07-20 15:17:42 +02:00
preferences.tt Bug 22844: Simplify the process of selecting database columns for system preferences 2020-07-20 16:08:22 +02:00
share_content.tt Bug 23075: Correct indendation 2019-11-06 17:05:34 +00:00
smart-rules.tt Bug 25896: Add missing closing </td> tag 2020-07-20 14:05:21 +02:00
sms_providers.tt Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
sru_modmapping.tt Bug 21647: Clean up SRU fields mapping templates 2018-11-06 17:01:44 +00:00
sru_modmapping_auth.tt Bug 21647: Clean up SRU fields mapping templates 2018-11-06 17:01:44 +00:00
systempreferences.tt Bug 21574: Local use system preferences page doesn't have the system preferences menu 2019-11-26 11:43:57 +00:00
transport-cost-matrix.tt Bug 21279: Fix &nbsp; in transport cost matrix 2018-10-15 13:08:04 +00:00
usage_statistics.tt Bug 23866: Prompt for HEA configuration 2019-10-31 11:35:52 +00:00
z3950servers.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00