patron.has_email - Whether or not the patron has an email address
patron.has_phone - Whether or not the patron has a phone number
pref_ versions of all name fields (e.g. pref_family_name);
-* transasctions - a list of transactions, each of which
- contains:
+* transasctions - a list of transactions, each of which contains:
+ xact.id - Bill unique id
+ xact.title - Copy title
+ xact.copy_barcode - Copy barcode
+ xact.xact_finish - Billing finish date and time
+ xact.xact_start - Billing start date and time
xact.summary - information about the transaction
- xact.title - Item title
- xact.copy_barcode - Item barcode
+ xact.summary.balance_owed - Balance owed
+ xact.summary.last_billing_note - Last billing note
+ xact.summary.last_billing_type - Last billing type
+ xact.summary.last_payment_note - Last payment note
+ xact.summary.last_payment_ts - Last payment date and time
+ xact.summary.last_payment_type - Last payment type
+ xact.summary.total_owed - Total billed
+ xact.summary.total_paid - Total paid
+ xact.summary.xact_type - Billing type
+ xact.call_number - Information about the copy
+ xact.call_number.label - Copy call number
+ xact.call_number.prefix - Copy call number prefix
+ xact.call_number.suffix - Copy call number suffix
+ xact.call_number.owning_lib.name - The owning library's name
+ xact.call_number.owning_lib.shortname - The owning library's shortname
-->
Welcome to {{current_location.name}}!<br/>
You have the following bills:
patron.has_phone - Whether or not the patron has a phone number
pref_ versions of all name fields (e.g. pref_family_name);
* transasctions - a list of transactions, each of which contains:
- xact.id - Bill unique id
- xact.copy_barcode - Item barcode
- xact.xact_finish - Billing finish date and time
- xact.xact_start - Billing start date and time
- xact.summary - Information about the transaction
- xact.summary.balance_owed - Balance owed
- xact.summary.last_billing_note - Last billing note
- xact.summary.last_billing_type - Last billing type
- xact.summary.last_payment_note - Last payment note
- xact.summary.last_payment_ts - Last payment date and time
- xact.summary.last_payment_type - Last payment type
- xact.summary.total_owed - Total billed
- xact.summary.total_paid - Total paid
- xact.summary.xact_type - Billing type
- xact.title - Item title
+ xact.id - Bill unique id
+ xact.title - Copy title
+ xact.copy_barcode - Copy barcode
+ xact.xact_finish - Billing finish date and time
+ xact.xact_start - Billing start date and time
xact.summary - information about the transaction
- xact.title - Item title
- xact.copy_barcode - Item barcode
-
+ xact.summary.balance_owed - Balance owed
+ xact.summary.last_billing_note - Last billing note
+ xact.summary.last_billing_type - Last billing type
+ xact.summary.last_payment_note - Last payment note
+ xact.summary.last_payment_ts - Last payment date and time
+ xact.summary.last_payment_type - Last payment type
+ xact.summary.total_owed - Total billed
+ xact.summary.total_paid - Total paid
+ xact.summary.xact_type - Billing type
+ xact.call_number - Information about the copy
+ xact.call_number.label - Copy call number
+ xact.call_number.prefix - Copy call number prefix
+ xact.call_number.suffix - Copy call number suffix
+ xact.call_number.owning_lib.name - The owning library's name
+ xact.call_number.owning_lib.shortname - The owning library's shortname
-->
Welcome to {{current_location.name}}!<br/>
You had the following bills:
xact_start : new Date().toISOString(),
xact_finish : new Date().toISOString(),
summary : {
- xact_type : 'circulation',
+ balance_owed : 1.00,
+ last_billing_note : 'Test Note 1',
last_billing_type : 'Overdue materials',
- total_owed : 1.50,
last_payment_note : 'Test Note 1',
- last_payment_type : 'cash_payment',
last_payment_ts : new Date().toISOString(),
+ last_payment_type : 'cash_payment',
+ total_owed : 1.50,
total_paid : 0.50,
- balance_owed : 1.00
- }
+ xact_type : 'circulation'
+ },
+ call_number : {
+ label : 'GL 510.2',
+ prefix : 'DISPLAY',
+ suffix : 'YA',
+ owning_lib : {
+ name : 'Regina Public Library'
+ }
+ }
}, {
id : 2,
xact_start : new Date().toISOString(),
xact_finish : new Date().toISOString(),
summary : {
- xact_type : 'circulation',
+ balance_owed : 1.00,
+ last_billing_note : 'Test Note 2',
last_billing_type : 'Overdue materials',
- total_owed : 2.50,
last_payment_note : 'Test Note 2',
- last_payment_type : 'credit_payment',
last_payment_ts : new Date().toISOString(),
+ last_payment_type : 'credit_payment',
+ total_owed : 1.50,
total_paid : 0.50,
- balance_owed : 2.00
+ xact_type : 'circulation'
+ },
+ call_number : {
+ label : 'GL 510.2',
+ prefix : 'DISPLAY',
+ suffix : 'YA',
+ owning_lib : {
+ name : 'Regina Public Library'
+ }
+ }
}
- }
- ],
+ ],
copy : seed_copy,
copies : [ seed_copy ],
'mbt' : ['summary', 'circulation'],
'circ' : ['target_copy'],
'acp' : ['call_number'],
- 'acn' : ['record'],
+ 'acn' : ['record','owning_lib','prefix','suffix'],
'bre' : ['simple_record']
}
},
xact_start : xact.xact_start(),
}
if (xact.circulation()) {
- newXact.copy_barcode = xact.circulation().target_copy().barcode(),
- newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title()
+ newXact.copy_barcode = xact.circulation().target_copy().barcode();
+ newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title();
+ newXact.call_number = {
+ label : xact.circulation().target_copy().call_number().label(),
+ prefix : xact.circulation().target_copy().call_number().prefix().label(),
+ suffix : xact.circulation().target_copy().call_number().suffix().label(),
+ owning_lib : {
+ name : xact.circulation().target_copy().call_number().owning_lib().name(),
+ shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+ }
+ }
}
xacts.push(newXact);
}
'mbt' : ['summary', 'circulation'],
'circ' : ['target_copy'],
'acp' : ['call_number'],
- 'acn' : ['record'],
+ 'acn' : ['record','owning_lib','prefix','suffix'],
'bre' : ['simple_record']
}
},
}
if (xact.circulation()) {
newXact.copy_barcode = xact.circulation().target_copy().barcode(),
- newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title()
+ newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title();
+ newXact.call_number = {
+ label : xact.circulation().target_copy().call_number().label(),
+ prefix : xact.circulation().target_copy().call_number().prefix().label(),
+ suffix : xact.circulation().target_copy().call_number().suffix().label(),
+ owning_lib : {
+ name : xact.circulation().target_copy().call_number().owning_lib().name(),
+ shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+ }
+ }
}
xacts.push(newXact);
}