Koha/installer/data/mysql/mandatory
Caroline Cyr La Rose ff18e46ca6
Bug 32918: ERM authorized values should be in installer/data/mysql/en/mandatory/auth_values.yml
This patch moves the authorized value insertions for ERM categories into
the language-specific auth_values.yml file.

To test:
1. Count the number of authorized values in the mandatory categories

select count(*) from authorised_values where category in ('YES_NO', 'PAYMENT_TYPE', 'HSBND_FREQ', 'ERM_AGREEMENT_STATUS', 'ERM_AGREEMENT_CLOSURE_REASON', 'ERM_AGREEMENT_RENEWAL_PRIORITY', 'ERM_USER_ROLES', 'ERM_LICENSE_TYPE', 'ERM_LICENSE_STATUS', 'ERM_AGREEMENT_LICENSE_STATUS', 'ERM_AGREEMENT_LICENSE_LOCATION', 'ERM_PACKAGE_TYPE', 'ERM_PACKAGE_CONTENT_TYPE', 'ERM_TITLE_PUBLICATION_TYPE', 'COUNTRY', 'LANG', 'qualif');

--> There should be 929

2. Delete the authorized values from these categories

delete from authorised_values where category in ('YES_NO', 'PAYMENT_TYPE', 'HSBND_FREQ', 'ERM_AGREEMENT_STATUS', 'ERM_AGREEMENT_CLOSURE_REASON', 'ERM_AGREEMENT_RENEWAL_PRIORITY', 'ERM_USER_ROLES', 'ERM_LICENSE_TYPE', 'ERM_LICENSE_STATUS', 'ERM_AGREEMENT_LICENSE_STATUS', 'ERM_AGREEMENT_LICENSE_LOCATION', 'ERM_PACKAGE_TYPE', 'ERM_PACKAGE_CONTENT_TYPE', 'ERM_TITLE_PUBLICATION_TYPE', 'COUNTRY', 'LANG', 'qualif');

3. Apply patch
4. Load the mandatory authorized values

./misc/load_yaml.pl --file installer/data/mysql/en/mandatory/auth_values.yml --load

5. Redo step 1
   --> There should be the same number (929)
6. Update translations

cd misc/translator
./translate update xx-XX

7. Search the po/xx-XX-installer.po file for any of the loaded
   authorized values

   For example,

   grep "Abstract and index" po/xx-XX-installer.po

   --> descriptions should be translatable

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-02-22 10:08:03 -03:00
..
account_credit_types.sql Bug 23012: Database updates for PROCESSING_FOUND account credit type 2022-10-24 17:43:23 -03:00
account_debit_types.sql Bug 27946: (QA follow-up) Remove 'scan' terminology, requests may not be scans 2022-01-28 11:09:07 -10:00
audio_alerts.sql Bug 23895: Move installer file into the mandatory directory 2020-10-14 14:50:07 +02:00
auth_val_cat.sql Bug 32918: ERM authorized values should be in installer/data/mysql/en/mandatory/auth_values.yml 2023-02-22 10:08:03 -03:00
keyboard_shortcuts.sql Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
message_transport_types.sql Bug 25334: Add generic 'phone' message transport type 2020-11-05 15:24:20 +01:00
sample_notices_message_attributes.sql Bug 30484: Add ILL update notice 2022-09-23 09:18:45 -03:00
sample_notices_message_transports.sql Bug 30484: Add ILL update notice 2022-09-23 09:18:45 -03:00
subtag_registry.sql Bug 31715: Add German translations for language descriptions 2022-10-24 11:48:19 -03:00
sysprefs.sql Bug 31051: (QA follow-up) Fix misplaced syspref 2023-02-22 10:03:37 -03:00
userflags.sql Bug 32030: ERM - DB 2022-11-08 09:43:31 -03:00
userpermissions.sql Bug 20256: Update database 2023-02-02 11:53:20 -03:00