]> git.evergreen-ils.org Git - Evergreen.git/commit
Enable notify checking for holds in A/T Validators
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 6 Feb 2012 22:19:14 +0000 (17:19 -0500)
committerBill Erickson <berick@esilibrary.com>
Thu, 15 Mar 2012 15:49:45 +0000 (11:49 -0400)
commit034fb7bcb12964cecb14a2da7f81a8e2523ed075
tree84d3243dd9ee102e2d521d0f2b134739f5b48fa5
parent65d23b647978ddd2cd701b3cfbcbbc6552583fe0
Enable notify checking for holds in A/T Validators

HoldIsAvailable and HoldIsCanceled get new checks, plus add HoldNotifyCheck
validator.

All three check for "check_$type_notify" parameters evaling to true, where
$type is email, sms, or phone. If true the hold's appropriate value is
checked and, if not suitable, the validator returns false.

For email the email_notify value must pass the is_true test.

For sms/phone the appropriate notify value must pass perl's truth test.

Upgrade script modifies default event definitions, with the exception of
the sms hold available event definition. That has no static id in the seed
values.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.hold_available_email_notify.sql [new file with mode: 0644]