Template for printing a renewal receipt. Fields include:
* circulations - list of renewals made during the session, including
+ for each renewal:
- * title
- * copy.barcode
- * circ.due_date
+ * renewal.title
+ * renewal.author
+ * renewal.circ.due_date
+ * renewal.circ.renewal_remaining
+ * renewal.circ.circ_lib
+ * renewal.circ.duration
+ * renewal.copy.barcode
+ * renewal.copy.circ_modifier
+ * renewal.copy.call_number.label
+ * renewal.copy.call_number.owning_lib.name
+ * renewal.copy.call_number.owning_lib.shortname
-->
<div>
simple_record : {
'title' : 'Test Title'
}
+ },
+ owning_lib : {
+ name : 'Ankers Memorial Library',
+ shortname : 'Ankers'
}
},
+ circ_modifier : {
+ name : 'Book'
+ },
location : {
name : 'General Collection'
},
+ status : {
+ name : 'In Transit'
+ },
// flattened versions for item status template
// TODO - make this go away
'call_number.label' : '636.8 JON',
'call_number.record.simple_record.title' : 'Test Title',
- 'location.name' : 'General Colleciton'
+ 'location.name' : 'General Collection',
+ 'call_number.owning_lib.name' : 'Ankers Memorial Library',
+ 'call_number.owning_lib.shortname' : 'Ankers'
}
var one_hold = {
circ : {
due_date : new Date().toISOString(),
circ_lib : 1,
- duration : '7 days'
+ duration : '7 days',
+ renewal_remaining : 2
},
copy : seed_copy,
title : seed_record.title,
author : seed_record.author
- },
+ }
],
patron_money : {
title : egCore.idl.toHash(renewal.title),
author : egCore.idl.toHash(renewal.author)
});
+ // Flesh selected fields of this circulation
+ print_data.circulations[0].copy.call_number =
+ egCore.idl.toHash(renewal.acn);
+ print_data.circulations[0].copy.owning_lib =
+ egCore.idl.toHash(renewal.aou);
}
});