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="acp.circ_lib.shortname" label="[% l('Circulation Library') %]"></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>
<eg-grid-field path="circulation.target_copy.circ_modifier"
label="[% l('Circulation Modifier') %]" name="circ_modifier">
</eg-grid-field>
+
+ <eg-grid-field path="circulation.target_copy.circ_lib.shortname"
+ label="[% l('Circulation Library') %]" name="circ_lib">
+ </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="acp.circ_lib.shortname" label="[% l('Circulation Library') %]"></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>
<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('Circulation Library') %]" path="hold.current_copy.circ_lib">
+ {{item.hold.current_copy().circ_lib().shortname()}}</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>
//var ids = patronSvc.hold_ids.slice(offset, offset + count);
return egHolds.fetch_holds(patronSvc.hold_ids).then(null, null,
function(hold_data) {
+ egCirc.flesh_copy_circ_library(hold_data.copy);
patronSvc.holds.push(hold_data);
return hold_data;
}
// options : non-parameter controls. e.g. "override", "check_barcode"
service.checkout = function(params, options) {
if (!options) options = {};
-
console.debug('egCirc.checkout() : '
+ js2JSON(params) + ' : ' + js2JSON(options));
promises.push(service.flesh_copy_location(payload.copy));
if (payload.copy) {
+ promises.push(service.flesh_copy_circ_library(payload.copy));
promises.push(service.flesh_copy_circ_modifier(payload.copy));
promises.push(
service.flesh_copy_status(payload.copy)
return $q.all(promises);
}
+ service.flesh_copy_circ_library = function(copy) {
+ if (!copy) return $q.when();
+
+ return $q.when(copy.circ_lib(egCore.org.get( copy.circ_lib() )));
+ }
+
// fetches the full list of circ modifiers
service.flesh_copy_circ_modifier = function(copy) {
if (!copy) return $q.when();