]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 9 Nov 2022 17:03:22 +0000 (14:03 -0300)
commitb837f1356b0c25801bab09f95f1881c831cf4cd3
treece5edbacd7709d385f2eba9c871cd5419025853d
parentd42de2c657b6432c3223291f663eac5fc25b8706
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>
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