<eg-grid-field label="[% l('Call Number') %]"
path="acn.label" hidden></eg-grid-field>
+ <eg-grid-field path="acp.circ_modifier.name" label="[% l('Circulation Modifier') %]"></eg-grid-field>
<eg-grid-field path="circ.*" parent-idl-class="circ" hidden></eg-grid-field>
<eg-grid-field path="acp.*" parent-idl-class="acp" hidden></eg-grid-field>
<eg-grid-field path="acn.*" parent-idl-class="acn" hidden></eg-grid-field>
label="[% l('Copy ID') %]" name="copy_id" required hidden>
</eg-grid-field>
+ <eg-grid-field path="circulation.target_copy.circ_modifier"
+ label="[% l('Circulation Modifier') %]" name="circ_modifier">
+ </eg-grid-field>
<!-- virtual field -->
<eg-grid-field datatype="money" label="[% ('Payment Pending') %]"
name="payment_pending"></eg-grid-field>
<eg-grid-field label="[% l('Author') %]"
path="author" hidden></eg-grid-field>
-
+ <eg-grid-field path="acp.circ_modifier.name" label="[% l('Circulation Modifier') %]"></eg-grid-field>
<eg-grid-field path="circ.*" parent-idl-class="circ" hidden></eg-grid-field>
<eg-grid-field path="acp.*" parent-idl-class="acp" hidden></eg-grid-field>
<eg-grid-field path="acn.*" parent-idl-class="acn" hidden></eg-grid-field>
</a>
</eg-grid-field>
+ <eg-grid-field label="[% l('Circulation Modifier') %]" path="hold.current_copy.circ_modifier">
+ {{item.hold.current_copy().circ_modifier()}}</eg-grid-field>
<eg-grid-field label="[% l('Patron Barcode') %]" path="patron_barcode" hidden>{{item.patron_barcode}}</eg-grid-field>
<eg-grid-field label="[% l('Patron alias') %]" path="patron_alias" hidden>{{item.patron_alias}}</eg-grid-field>
<eg-grid-field label="[% l('Request Date') %]" path='hold.request_time' datatype="timestamp"></eg-grid-field>
promises.push(service.flesh_copy_location(payload.copy));
if (payload.copy) {
+ promises.push(service.flesh_copy_circ_modifier(payload.copy));
promises.push(
service.flesh_copy_status(payload.copy)
return $q.all(promises);
}
+ // fetches the full list of circ modifiers
+ service.flesh_copy_circ_modifier = function(copy) {
+ if (!copy) return $q.when();
+ if (egCore.env.ccm)
+ return $q.when(copy.circ_modifier(egCore.env.ccm.map[copy.circ_modifier()]));
+ return egCore.pcrud.retrieveAll('ccm', {}, {atomic : true}).then(
+ function(list) {
+ egCore.env.absorbList(list, 'ccm');
+ copy.circ_modifier(egCore.env.ccm.map[copy.circ_modifier()]);
+ }
+ );
+ }
+
// fetches the full list of copy statuses
service.flesh_copy_status = function(copy) {
if (!copy) return $q.when();