3 SELECT evergreen.upgrade_deps_block_check('1205', :eg_version);
5 INSERT INTO config.print_template
6 (id, name, locale, active, owner, label, template)
8 3, 'booking_capture', 'en-US', TRUE,
9 (SELECT id FROM actor.org_unit WHERE parent_ou IS NULL),
10 oils_i18n_gettext(3, 'Booking capture slip', 'cpt', 'label'),
14 SET data = template_data;
15 # template_data is data returned from open-ils.booking.resources.capture_for_reservation.
19 dest_ou = helpers.get_org_unit(data.transit.dest);
21 <div>This item need to be routed to <strong>[% dest_ou.shortname %]</strong></div>
23 <div>This item need to be routed to <strong>RESERVATION SHELF:</strong></div>
25 <div>Barcode: [% data.reservation.current_resource.barcode %]</div>
26 <div>Title: [% data.reservation.current_resource.type.name %]</div>
27 <div>Note: [% data.reservation.note %]</div>
29 <p><strong>Reserved for patron</strong> [% data.reservation.usr.family_name %], [% data.reservation.usr.first_given_name %] [% data.reservation.usr.second_given_name %]
30 <br/>Barcode: [% data.reservation.usr.card.barcode %]</p>
31 <p>Request time: [% date.format(helpers.format_date(data.reservation.request_time, client_timezone), '%x %r', locale) %]
33 [% date.format(helpers.format_date(data.reservation.start_time, client_timezone), '%x %r', locale) %]
34 - [% date.format(helpers.format_date(data.reservation.end_time, client_timezone), '%x %r', locale) %]</p>
35 <p>Slip date: [% date.format(helpers.current_date(client_timezone), '%x %r', locale) %]<br/>
36 Printed by [% data.staff.family_name %], [% data.staff.first_given_name %] [% data.staff.second_given_name %]
37 at [% data.workstation %]</p>
44 INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
46 'eg.grid.booking.captured', 'gui', 'object',
49 'Grid Config: Booking Captured Reservations',