return 0;
}
+sub HoldIsCancelled {
+ my $self = shift;
+ my $env = shift;
+
+ my $hold = $env->{target};
+
+ return ($hold->cancel_time) ? 1 : 0;
+}
+
1;
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0411'); -- gmc
+INSERT INTO config.upgrade_log (version) VALUES ('0412'); -- phasefx
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
(35, 'pickup_lib')
;
+INSERT INTO action_trigger.validator (module, description) VALUES (
+ 'HoldIsCancelled',
+ oils_i18n_gettext(
+ 'HoldIsCancelled',
+ 'Check whether a hold request is cancelled.',
+ 'atval',
+ 'description'
+ )
+);
+
-- Create the query schema, and the tables and views therein
DROP SCHEMA IF EXISTS sql CASCADE;
'bool'
);
+-- 0412.data.trigger.validator.HoldIsCancelled.sql
+
+INSERT INTO action_trigger.validator (module, description) VALUES (
+ 'HoldIsCancelled',
+ oils_i18n_gettext(
+ 'HoldIsCancelled',
+ 'Check whether a hold request is cancelled.',
+ 'atval',
+ 'description'
+ )
+);
+
+
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0412'); -- phasefx
+
+INSERT INTO action_trigger.validator (module, description) VALUES (
+ 'HoldIsCancelled',
+ oils_i18n_gettext(
+ 'HoldIsCancelled',
+ 'Check whether a hold request is cancelled.',
+ 'atval',
+ 'description'
+ )
+);
+
+COMMIT;
+