From: Bill Erickson Date: Tue, 9 Feb 2021 16:33:33 +0000 (-0500) Subject: LP1888723 Use existing user setting for copy templates X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b3e539d43352a04e219c339cc54ca9c30efc9540;p=working%2FEvergreen.git LP1888723 Use existing user setting for copy templates Also propagate the new 'defaults' workstation setting to the seed data file. Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts index 1396a8d346..46d9b39dc7 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts @@ -87,7 +87,7 @@ export class VolCopyService { // These will come up later -- prefetch. .then(_ => this.serverStore.getItemBatch([ - 'cat.copy.templates', + 'webstaff.cat.copy.templates', 'eg.cat.volcopy.defaults', 'eg.cat.record.summary.collapse' ])) diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 781781b649..7bc623094e 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -21325,3 +21325,14 @@ VALUES ( 'cgf', 'label' ) ); + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.cat.volcopy.defaults', 'cat', 'object', + oils_i18n_gettext( + 'eg.cat.volcopy.defaults', + 'Holdings Editor Default Values and Visibility', + 'cwst', 'label' + ) +); + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.volcopy-settings.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.volcopy-settings.sql index cbac2a5503..741288aad8 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.volcopy-settings.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.volcopy-settings.sql @@ -1,3 +1,6 @@ +BEGIN; + +--SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); INSERT INTO config.workstation_setting_type (name, grp, datatype, label) VALUES ( @@ -7,13 +10,6 @@ VALUES ( 'Holdings Editor Default Values and Visibility', 'cwst', 'label' ) -), ( - 'cat.copy.templates', 'cat', 'object', - oils_i18n_gettext( - 'cat.copy.templates', - 'Holdings Editor Copy Templates', - 'cwst', 'label' - ) ); - +COMMIT;