var c = [
{
'persist' : 'hidden width ordinal',
+ 'id' : 'cancel_time',
+ 'label' : document.getElementById('circStrings').getString('staff.circ.utils.hold_cancel_time'),
+ 'flex' : 1,
+ 'primary' : false,
+ 'hidden' : true,
+ 'editable' : false, 'render' : function(my) { return my.ahr.cancel_time(); }
+ },
+ {
+ 'persist' : 'hidden width ordinal',
+ 'id' : 'cancel_cause',
+ 'label' : document.getElementById('circStrings').getString('staff.circ.utils.hold_cancel_cause'),
+ 'flex' : 1,
+ 'primary' : false,
+ 'hidden' : true,
+ 'editable' : false, 'render' : function(my) { return typeof my.ahr.cancel_cause == 'object' ? my.ahr.cancel_cause().label() : data.hash.ahrcc[ my.ahr.cancel_cause() ].label(); }
+ },
+ {
+ 'persist' : 'hidden width ordinal',
+ 'id' : 'cancel_note',
+ 'label' : document.getElementById('circStrings').getString('staff.circ.utils.hold_cancel_note'),
+ 'flex' : 1,
+ 'primary' : false,
+ 'hidden' : true,
+ 'editable' : false, 'render' : function(my) { return my.ahr.cancel_note(); }
+ },
+ {
+ 'persist' : 'hidden width ordinal',
'id' : 'request_lib',
'label' : document.getElementById('circStrings').getString('staff.circ.utils.request_lib'),
'flex' : 1,
staff.circ.utils.capture_timestamp=Capture Timestamp
# Date the hold was captured
staff.circ.utils.capture_time=Capture Date
+# Date the hold was cancelled
+staff.circ.utils.hold_cancel_time=Cancel Time
+# Controlled entry for why the hold was cancelled
+staff.circ.utils.hold_cancel_cause=Cancel Cause
+# Freetext note pertaining to the cancelled hold
+staff.circ.utils.hold_cancel_note=Cancel Note
staff.circ.utils.hold_status.1=Waiting for copy
staff.circ.utils.hold_status.2=Waiting for capture
staff.circ.utils.hold_status.3=In-Transit
'current_copy' : { 'hidden' : false },
'capture_time' : { 'hidden' : false },
'notify_time' : { 'hidden' : false },
- 'notify_count' : { 'hidden' : false }
+ 'notify_count' : { 'hidden' : false },
+ 'cancel_cause' : { 'hidden' : ! ( obj.data.hash.aous['circ.holds.canceled.display_count'] || obj.data.hash.aous['circ.holds.canceled.display_age'] ) },
+ 'cancel_note' : { 'hidden' : ! ( obj.data.hash.aous['circ.holds.canceled.display_count'] || obj.data.hash.aous['circ.holds.canceled.display_age'] ) },
+ 'cancel_time' : { 'hidden' : ! ( obj.data.hash.aous['circ.holds.canceled.display_count'] || obj.data.hash.aous['circ.holds.canceled.display_age'] ) }
}
);