Enable notify checking for holds in A/T Validators user/tsbere/hold_available_email_notify
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 6 Feb 2012 22:19:14 +0000 (17:19 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Mon, 6 Feb 2012 22:19:14 +0000 (17:19 -0500)
commitdd935ac3713dddf3ef003bbd6ca15ad4ea6b47fe
tree9431da186dd67436f7c35608729be95dda27fa18
parent84bfb1cc1d41d4fd6f3798204049bfdd192394ae
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>
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]