Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 24156: Make sort order and number of items to display configurable (basket page) 2020-06-25 10:51:59 +02:00
admin Bug 22844: Simplify the process of selecting database columns for system preferences 2020-07-20 16:08:22 +02:00
authorities Bug 25428: Correctly encode link if authority subfield is a URL 2020-05-22 09:33:16 +01:00
basket
batch
catalogue Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
cataloguing Bug 25443: (follow-up) surround strings with <span> 2020-07-09 11:50:42 +02:00
circ Bug 25868: Fix transfers page to show effective itemtype 2020-07-20 12:44:54 +02:00
clubs
common Bug 24964: Restore pagination for patrons for owner/users of funds 2020-04-06 10:57:10 +01:00
course_reserves Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
errors
ill Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
installer Bug 24131: Remove bullet points for secondary descriptions 2020-03-24 10:42:24 +00:00
labels Bug 25987: Fix alignment of fields in label batch creation form 2020-07-20 14:05:21 +02:00
mana
members Bug 15400: Display date of birth and age more consistantly 2020-06-29 12:37:02 +02:00
offline_circ
onboarding Bug 25409: Add missing "Required" text and "required" classes 2020-05-12 11:17:45 +01:00
patron_lists Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
patroncards
plugins Bug 23975: (RM follow-up) Comment example configuration 2020-05-22 12:09:29 +01:00
pos Bug 25138: (follow-up) Terminology: Point of sale should use library instead of branch 2020-04-17 13:50:32 +01:00
reports Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
reserve Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
reviews
rotating_collections Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
serials Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
services
suggestion Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
tags
test
tools Bug 25862: Prevent TinyMCE to mangle local url links 2020-07-20 14:05:21 +02:00
virtualshelves Bug 16547: Do not display "multi holds" view if only one is selected 2020-04-06 10:41:02 +01:00
about.tt Bug 24151: Rename the config key with 'bcrypt_settings' 2020-07-20 15:17:42 +02:00
auth.tt
intranet-main.tt Bug 25627: Move OPAC problem reports from administration to tools 2020-06-15 11:53:36 +02:00