Template for printing a list of items that a patron has checked out.
Fields include:
-* patron - has several fields from the patron object, including a financial summary
+* patron - has several fields from the patron object, including a
+ financial summary
* first_given_name
* second_given_name
* has_email - boolean value to show/hide elements on the receipt
* has_phone - same as has_email
-* circulations - list of current loans, including
+* circulations - list of current loans, including for each
+ checkout
- * title
- * author
- * call_number.label
- * copy.barcode
- * circ.due_date
+ * checkout.title
+ * checkout.author
+ * checkout.circ.due_date
+ * checkout.circ.renewal_remaining
+ * checkout.copy.barcode
+ * checkout.copy.circ_modifier.name
+ * checkout.copy.call_number.label
+ * checkout.copy.call_number.owning_lib.name
+ * checkout.copy.call_number.owning_lib.shortname
+ * checkout.copy.location.name [Shelving location]
-->
<div>
title : circ.target_copy().call_number().record().wide_display_entry().title(),
author : circ.target_copy().call_number().record().wide_display_entry().author()
})
+ // Flesh selected fields of this circulation
+ print_data.circulations[0].copy.call_number =
+ egCore.idl.toHash(circ.target_copy().call_number());
});
print_data.patron = {