[open-ils-commits] [GIT] Evergreen ILS branch master updated. e6e32698cfd606b5e762620cbdd2c68004162a37
Evergreen Git
git at git.evergreen-ils.org
Fri Sep 6 12:24:05 EDT 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via e6e32698cfd606b5e762620cbdd2c68004162a37 (commit)
via 7c4dfc66d51774dd9a6e97b5642235ad4ca3cf73 (commit)
from 80d0f64d2eb6df832a1b2123cc2614394453adc2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e6e32698cfd606b5e762620cbdd2c68004162a37
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date: Fri Sep 6 12:23:56 2019 -0400
LP#1818581: stamp DB update
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 0d567843ab..cc7aa22ea6 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -92,7 +92,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 ('1177', :eg_version); -- sandberja/cburns/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1178', :eg_version); -- terran/rhamby/gmcharlt
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.action-trigger.event_definition.fine_limit_exceeded.sql b/Open-ILS/src/sql/Pg/upgrade/1178.data.action-trigger.event_definition.fine_limit_exceeded.sql
similarity index 93%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.data.action-trigger.event_definition.fine_limit_exceeded.sql
rename to Open-ILS/src/sql/Pg/upgrade/1178.data.action-trigger.event_definition.fine_limit_exceeded.sql
index c88dd406ce..3d7c9df511 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.action-trigger.event_definition.fine_limit_exceeded.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/1178.data.action-trigger.event_definition.fine_limit_exceeded.sql
@@ -1,6 +1,6 @@
BEGIN;
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('1178', :eg_version);
INSERT INTO action_trigger.event_definition (active, owner, name, hook, validator, reactor, delay, group_field, max_delay, template)
VALUES (false, 1, 'Fine Limit Exceeded', 'penalty.PATRON_EXCEEDS_FINES', 'NOOP_True', 'SendEmail', '00:05:00', 'usr', '1 day',
@@ -28,4 +28,4 @@ INSERT INTO action_trigger.environment (event_def, path) VALUES
(currval('action_trigger.event_definition_id_seq'), 'usr'),
(currval('action_trigger.event_definition_id_seq'), 'usr.card');
-COMMIT;
\ No newline at end of file
+COMMIT;
commit 7c4dfc66d51774dd9a6e97b5642235ad4ca3cf73
Author: Terran McCanna <tmccanna at georgialibraries.org>
Date: Tue Mar 5 16:46:47 2019 -0500
LP#1818581 Action Trigger for Fine Limit Exceeded
Creates new (optional) email notification that is
sent when a block is applied to a patron's account
due to excess fines.
Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
Signed-off-by: Rogan Hamby <rogan.hamby at gmail.com>
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
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 36260a4f4c..4e8984b558 100644
--- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql
+++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
@@ -10355,6 +10355,37 @@ INSERT INTO action_trigger.environment (event_def, path ) VALUES
-- END of autorenwal trigger def stuff
+-- Action Trigger for Fine Limit Exceeded--
+
+INSERT INTO action_trigger.event_definition (active, owner, name, hook, validator, reactor, delay, group_field, max_delay, template)
+ VALUES (false, 1, 'Fine Limit Exceeded', 'penalty.PATRON_EXCEEDS_FINES', 'NOOP_True', 'SendEmail', '00:05:00', 'usr', '1 day',
+$$
+[%- USE date -%]
+[%- user = target.usr -%]
+
+To: [%- params.recipient_email || user.email %]
+From: [%- params.sender_email || default_sender %]
+Date: [%- date.format(date.now, '%a, %d %b %Y %T -0000', gmt => 1) %]
+Subject: Fine Limit Exceeded
+Auto-Submitted: auto-generated
+
+Dear [% user.first_given_name %] [% user.family_name %],
+
+
+Our records indicate your account has exceeded the fine limit allowed for the use of your library account.
+
+Please visit the library to pay your fines and restore full access to your account.
+[% END %]
+
+$$);
+
+INSERT INTO action_trigger.environment (event_def, path) VALUES
+ (currval('action_trigger.event_definition_id_seq'), 'usr'),
+ (currval('action_trigger.event_definition_id_seq'), 'usr.card');
+
+-- End Action Trigger for Fine Limit Exceeded
+
+
-- in-db indexing normalizers
INSERT INTO config.index_normalizer (name, description, func, param_count) VALUES (
'NACO Normalize',
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.action-trigger.event_definition.fine_limit_exceeded.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.action-trigger.event_definition.fine_limit_exceeded.sql
new file mode 100644
index 0000000000..c88dd406ce
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.action-trigger.event_definition.fine_limit_exceeded.sql
@@ -0,0 +1,31 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO action_trigger.event_definition (active, owner, name, hook, validator, reactor, delay, group_field, max_delay, template)
+ VALUES (false, 1, 'Fine Limit Exceeded', 'penalty.PATRON_EXCEEDS_FINES', 'NOOP_True', 'SendEmail', '00:05:00', 'usr', '1 day',
+$$
+[%- USE date -%]
+[%- user = target.usr -%]
+
+To: [%- params.recipient_email || user.email %]
+From: [%- params.sender_email || default_sender %]
+Date: [%- date.format(date.now, '%a, %d %b %Y %T -0000', gmt => 1) %]
+Subject: Fine Limit Exceeded
+Auto-Submitted: auto-generated
+
+Dear [% user.first_given_name %] [% user.family_name %],
+
+
+Our records indicate your account has exceeded the fine limit allowed for the use of your library account.
+
+Please visit the library to pay your fines and restore full access to your account.
+[% END %]
+
+$$);
+
+INSERT INTO action_trigger.environment (event_def, path) VALUES
+ (currval('action_trigger.event_definition_id_seq'), 'usr'),
+ (currval('action_trigger.event_definition_id_seq'), 'usr.card');
+
+COMMIT;
\ No newline at end of file
diff --git a/docs/RELEASE_NOTES_NEXT/Administration/Fine_Limit_Exceeded.adoc b/docs/RELEASE_NOTES_NEXT/Administration/Fine_Limit_Exceeded.adoc
new file mode 100644
index 0000000000..3f87964dd5
--- /dev/null
+++ b/docs/RELEASE_NOTES_NEXT/Administration/Fine_Limit_Exceeded.adoc
@@ -0,0 +1,8 @@
+New Action Trigger - Fine Limit Exceeded
+^^^^^^^^^^^^^
+New optional email notification that is sent when a block is applied
+to a patron's account due to excess fines.
+
+(The patron block functionality itself already exists and is based on
+the settings in Local Admin > Standing Penalties (PATRON_EXCEEDS_FINES)
+and Local Administration > Group Penalty Thresholds.)
\ No newline at end of file
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +-
Open-ILS/src/sql/Pg/950.data.seed-values.sql | 31 ++++++++++++++++++++++
...rigger.event_definition.fine_limit_exceeded.sql | 31 ++++++++++++++++++++++
.../Administration/Fine_Limit_Exceeded.adoc | 8 ++++++
4 files changed, 71 insertions(+), 1 deletion(-)
create mode 100644 Open-ILS/src/sql/Pg/upgrade/1178.data.action-trigger.event_definition.fine_limit_exceeded.sql
create mode 100644 docs/RELEASE_NOTES_NEXT/Administration/Fine_Limit_Exceeded.adoc
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list