From: Kyle Huckins Date: Thu, 16 May 2019 22:05:55 +0000 (+0000) Subject: lp1821950 Require Call Number Label YAOUS X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6092909d7cb424edb414c182c5303e820f900c2e;p=working%2FEvergreen.git lp1821950 Require Call Number Label YAOUS - Add YAOUS to Require Call Number Labels in Copy Editor - Set new YAOUS to true - Don't display empty call number field warning if call numbers aren't required on the copy editor. - Properly enable/disable saving an item in the volcopy editor when CN label is empty, based on Require Call Number Label setting. Signed-off-by: Kyle Huckins Changes to be committed: modified: Open-ILS/src/sql/Pg/950.data.seed-values.sql new file: Open-ILS/src/sql/Pg/upgrade/XXXX.lp1821950-call-number-label-required-yaous.sql modified: Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js --- 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 32dcd0fffa..994a02e0bb 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -3176,6 +3176,15 @@ INSERT into config.org_unit_setting_type 'coust', 'description'), 'currency', null) +,( 'cat.require_call_number_labels', 'cat', + oils_i18n_gettext('cat.require_call_number_labels', + 'Require call number labels in Copy Editor', + 'coust', 'label'), + oils_i18n_gettext('cat.require_call_number_labels', + 'Define whether Copy Editor requires Call Number labels', + 'coust', 'description'), + 'bool', null) + ,( 'circ.min_item_price', 'finance', oils_i18n_gettext('circ.min_item_price', 'Minimum Item Price', @@ -5582,6 +5591,7 @@ INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES ( ,(1, 'cat.label.font.size', 10) ,(1, 'cat.label.font.weight', '"normal"') ,(1, 'circ.grace.extend', 'true') + ,(1, 'cat.require_call_number_labels', 'true') ; --220.schema.rating.sql (Default badge for popularity ranking) diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1821950-call-number-label-required-yaous.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1821950-call-number-label-required-yaous.sql new file mode 100644 index 0000000000..a0c7870af7 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1821950-call-number-label-required-yaous.sql @@ -0,0 +1,19 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +INSERT into config.org_unit_setting_type +( name, grp, label, description, datatype, fm_class ) VALUES +( 'cat.require_call_number_labels', 'cat', + oils_i18n_gettext('cat.require_call_number_labels', + 'Require call number labels in Copy Editor', + 'coust', 'label'), + oils_i18n_gettext('cat.require_call_number_labels', + 'Define whether Copy Editor requires Call Number labels', + 'coust', 'description'), + 'bool', null); + +INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES + (1, 'cat.require_call_number_labels', 'true'); + +COMMIT; \ No newline at end of file diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 20b819e066..4e1de2943e 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -606,7 +606,7 @@ function(egCore , $q) { ''+ '
'+ ''+ - '
{{empty_label_string}}
'+ + '
{{empty_label_string}}
'+ '
'+ '
'+ '