]> 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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Fri, 17 Feb 2023 12:53:36 +0000 (13:53 +0100)
commite47e51b622ac9b8a475c1c6fa1d4408ef3deb0fb
tree625e8733303fed3077621c1ac1255fe7197d7da7
parent7dce97147497938d00773af1a96882a79e057cee
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>
(cherry picked from commit 2800e199be5b871790700e8265d4ce23956b8fb0)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.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