]> git.koha-community.org Git - koha.git/commit
Bug 30250: Use ApplyFrameworkDefaults when importing a record
authorAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 22 Mar 2022 21:26:35 +0000 (21:26 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 15 Feb 2023 13:46:30 +0000 (13:46 +0000)
commit2800e199be5b871790700e8265d4ce23956b8fb0
tree3ffc50a19c0f8c5c74454e0607625cd516c77224
parentb4764daae3bf9c2505720cb53ad34da2dabfd475
Bug 30250: Use ApplyFrameworkDefaults when importing a record

This patch adds the case of importing a record to the
ApplyFrameworkDefaults options.

To test:
1. Update database
2. Confirm the ApplyFrameworkDefaults system preference now has the
'when importing a record via z39.50' option. Do not select it.
3. Go to Cataloguing. Import a record from z39.50, or replace an
existing record.
4. Confirm framework defaults are not applied.
5. Go back to the system preference and check the 'when importing a
record via z39.50' option.
6. Repeat step 3. This time framework defaults should be applied. Only
fields that are empty in the imported record will be replaced by
framework defaults.
7. Repeat for authorities.

Sponsored-by: Catalyst IT
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b837f1356b0c25801bab09f95f1881c831cf4cd3)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
authorities/authorities.pl
cataloguing/addbiblio.pl
installer/data/mysql/atomicupdate/bug_30250_-_add_ApplyFrameworkDefaults_syspref.pl
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref