<eg-grid-field path='hold.usr.family_name' parent-idl-class="ahr" label="[% l('Last Name') %]" hidden></eg-grid-field>
<eg-grid-field path='hold.requestor.id' parent-idl-class="ahr" label="[% l('Requestor ID') %]" hidden></eg-grid-field>
<eg-grid-field path='hold.requestor.usrname' parent-idl-class="ahr" label="[% l('Requestor Username') %]" hidden></eg-grid-field>
+ <eg-grid-field path='hold.sms_carrier.name' parent-idl-class="ahr" label="[% l('Notifications SMS Carrier') %]" hidden></eg-grid-field>
<eg-grid-field path='part.label' parent-idl-class="bmp" label="[% l('Part') %]" hidden></eg-grid-field>
<eg-grid-field path='volume.*' parent-idl-class="acn" hidden></eg-grid-field>
include_current_copy : true,
include_usr : true,
include_cancel_cause : true,
+ include_sms_carrier : true,
include_requestor : true
}
egCore.pcrud.retrieve('au',hold.usr()).then(function(u) { hold.usr(u) });
}
+ if (hold.sms_carrier() && typeof hold.sms_carrier() != 'object') {
+ console.debug('fetching sms carrier');
+ egCore.pcrud.retrieve('csc',hold.sms_carrier()).then(function(c) { hold.sms_carrier(c) });
+ }
+
// current_copy is not always fleshed in the API
if (hold.current_copy() && typeof hold.current_copy() != 'object') {
hold.current_copy(hold_data.copy);
include_current_copy : true,
include_usr : true,
include_cancel_cause : true,
+ include_sms_carrier : true,
include_requestor : true
}
).then(function(hold_data) {