<option value="bills_historical">[% l('Bills, Historical') %]</option>
<option value="bill_payment">[% l('Bills, Payment') %]</option>
<option value="checkout">[% l('Checkout') %]</option>
+ <option value="hold_transit_slip">[% l('Hold Transit Slip') %]</option>
+ <option value="hold_shelf_slip">[% l('Hold Shelf Slip') %]</option>
<option value="patron_address">[% l('Patron Address') %]</option>
<option value="patron_note">[% l('Patron Note') %]</option>
<option value="transit_slip">[% l('Transit Slip') %]</option>
// print preview scope data
// TODO: consider moving the template-specific bits directly
// into the templates or storing template- specific script files
- // alongside the templates
+ // alongside the templates.
+ // NOTE: A lot of this data can be shared across templates.
var seed_user = {
first_given_name : 'Slow',
second_given_name : 'Joe',
payment_type : 'cash_payment',
payment_note : 'Here is a payment note',
note : {
- create_date : '2024-12-25T12:01:03',
+ create_date : new Date().toISOString(),
title : 'Test Note Title',
usr : seed_user,
value : 'This patron is super nice!'
title : seed_record.title,
author : seed_record.author,
patron : egCore.idl.toHash(egCore.auth.user()),
- address : seed_addr
+ address : seed_addr,
+ hold : {
+ behind_desk : 'f',
+ phone_notify : '111-222-3333',
+ sms_notify : '111-222-3333',
+ email_notify : 'user@example.org',
+ request_time : new Date().toISOString()
+ }
}
$scope.preview_scope.payments = [
$scope.preview_scope.payments[1].xact.copy_barcode = seed_copy.barcode;
// today, staff, current_location, etc.
- egCore.print.fleshPrintScope($scope);
+ egCore.print.fleshPrintScope($scope.preview_scope);
$scope.template_changed = function() {
$scope.print.load_failed = false;