From: Dan Wells Date: Mon, 23 Sep 2013 21:48:03 +0000 (-0400) Subject: Stamping 'Items Out' config settings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5ef27d774bd41a2357c303c75015cfc4815b4609;p=evergreen%2Fequinox.git Stamping 'Items Out' config settings Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 993c966ce3..5070bf54a2 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -91,7 +91,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0833', :eg_version); -- berick/csharp +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0834', :eg_version); -- berick/dbwells CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0834.data.yaous-items-out-by-stop-fines.sql b/Open-ILS/src/sql/Pg/upgrade/0834.data.yaous-items-out-by-stop-fines.sql new file mode 100644 index 0000000000..6872dfb787 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0834.data.yaous-items-out-by-stop-fines.sql @@ -0,0 +1,66 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('0834', :eg_version); + +INSERT INTO config.org_unit_setting_type + (name, grp, datatype, label, description) +VALUES ( + 'ui.circ.items_out.longoverdue', 'gui', 'integer', + oils_i18n_gettext( + 'ui.circ.items_out.longoverdue', + 'Items Out Long-Overdue display setting', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'ui.circ.items_out.longoverdue', +'Value is a numeric code, describing which list the circulation '|| +'should appear while checked out and whether the circulation should '|| +'continue to appear in the bottom list, when checked in with '|| +'oustanding fines. '|| +'1 = top list, bottom list. 2 = bottom list, bottom list. ' || +'5 = top list, do not display. 6 = bottom list, do not display.', + 'coust', + 'description' + ) +), ( + 'ui.circ.items_out.lost', 'gui', 'integer', + oils_i18n_gettext( + 'ui.circ.items_out.lost', + 'Items Out Lost display setting', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'ui.circ.items_out.lost', +'Value is a numeric code, describing which list the circulation '|| +'should appear while checked out and whether the circulation should '|| +'continue to appear in the bottom list, when checked in with '|| +'oustanding fines. '|| +'1 = top list, bottom list. 2 = bottom list, bottom list. ' || +'5 = top list, do not display. 6 = bottom list, do not display.', + 'coust', + 'description' + ) +), ( + 'ui.circ.items_out.claimsreturned', 'gui', 'integer', + oils_i18n_gettext( + 'ui.circ.items_out.claimsreturned', + 'Items Out Claims Returned display setting', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'ui.circ.items_out.claimsreturned', +'Value is a numeric code, describing which list the circulation '|| +'should appear while checked out and whether the circulation should '|| +'continue to appear in the bottom list, when checked in with '|| +'oustanding fines. '|| +'1 = top list, bottom list. 2 = bottom list, bottom list. ' || +'5 = top list, do not display. 6 = bottom list, do not display.', + 'coust', + 'description' + ) +); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-items-out-by-stop-fines.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-items-out-by-stop-fines.sql deleted file mode 100644 index 6282c4ec16..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-items-out-by-stop-fines.sql +++ /dev/null @@ -1,66 +0,0 @@ -BEGIN; - --- SELECT evergreen.upgrade_deps_block_check('', :eg_version); - -INSERT INTO config.org_unit_setting_type - (name, grp, datatype, label, description) -VALUES ( - 'ui.circ.items_out.longoverdue', 'gui', 'integer', - oils_i18n_gettext( - 'ui.circ.items_out.longoverdue', - 'Items Out Long-Overdue display setting', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'ui.circ.items_out.longoverdue', -'Value is a numeric code, describing which list the circulation '|| -'should appear while checked out and whether the circulation should '|| -'continue to appear in the bottom list, when checked in with '|| -'oustanding fines. '|| -'1 = top list, bottom list. 2 = bottom list, bottom list. ' || -'5 = top list, do not display. 6 = bottom list, do not display.', - 'coust', - 'description' - ) -), ( - 'ui.circ.items_out.lost', 'gui', 'integer', - oils_i18n_gettext( - 'ui.circ.items_out.lost', - 'Items Out Lost display setting', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'ui.circ.items_out.lost', -'Value is a numeric code, describing which list the circulation '|| -'should appear while checked out and whether the circulation should '|| -'continue to appear in the bottom list, when checked in with '|| -'oustanding fines. '|| -'1 = top list, bottom list. 2 = bottom list, bottom list. ' || -'5 = top list, do not display. 6 = bottom list, do not display.', - 'coust', - 'description' - ) -), ( - 'ui.circ.items_out.claimsreturned', 'gui', 'integer', - oils_i18n_gettext( - 'ui.circ.items_out.claimsreturned', - 'Items Out Claims Returned display setting', - 'coust', - 'label' - ), - oils_i18n_gettext( - 'ui.circ.items_out.claimsreturned', -'Value is a numeric code, describing which list the circulation '|| -'should appear while checked out and whether the circulation should '|| -'continue to appear in the bottom list, when checked in with '|| -'oustanding fines. '|| -'1 = top list, bottom list. 2 = bottom list, bottom list. ' || -'5 = top list, do not display. 6 = bottom list, do not display.', - 'coust', - 'description' - ) -); - -COMMIT;