3 INSERT INTO config.upgrade_log (version) VALUES ('0079'); -- senator
5 INSERT INTO action_trigger.hook (
11 'hold_request.shelf_expires_soon',
13 'A hold on the shelf will expire there soon.',
17 INSERT INTO action_trigger.event_definition (
33 'Hold Expires from Shelf Soon',
34 'hold_request.shelf_expires_soon',
42 [%- user = target.0.usr -%]
43 To: [%- params.recipient_email || user.email %]
44 From: [%- params.sender_email || default_sender %]
45 Subject: Hold Available Notification
47 Dear [% user.family_name %], [% user.first_given_name %]
48 You requested holds on the following item(s), which are available for
49 pickup, but these holds will soon expire.
51 [% FOR hold IN target %]
52 [%- data = helpers.get_copy_bib_basics(hold.current_copy.id) -%]
53 Title: [% data.title %]
54 Author: [% data.author %]
55 Library: [% hold.pickup_lib.name %]
60 INSERT INTO action_trigger.environment (
65 ( 7, 'pickup_lib.billing_address'),