3 INSERT INTO config.upgrade_log (version) VALUES ('0111');
5 INSERT INTO action_trigger.hook (key, core_type, description, passive)
7 'format.selfcheck.holds',
9 'Formats holds for self-checkout receipt',
13 INSERT INTO action_trigger.event_definition (id, active, owner, name, hook, validator, reactor, group_field, granularity, template )
18 'Self-Checkout Holds Receipt',
19 'format.selfcheck.holds',
26 [%- SET user = target.0.usr -%]
28 <style> li { padding: 8px; margin 5px; }</style>
29 <div>[% date.format %]</div>
32 [% user.family_name %], [% user.first_given_name %]
34 [% FOR hold IN target %]
36 SET idx = loop.count - 1;
37 SET udata = user_data.$idx
40 <div>Title: [% hold.bib_rec.bib_record.simple_record.title %]</div>
41 <div>Author: [% hold.bib_rec.bib_record.simple_record.author %]</div>
42 <div>Pickup Location: [% hold.pickup_lib.name %]</div>
44 [%- IF udata.ready -%]
47 #[% udata.queue_position %] of [% udata.potential_copies %] copies.
58 INSERT INTO action_trigger.environment ( event_def, path) VALUES
59 ( 12, 'bib_rec.bib_record.simple_record'),