<eg-grid-field label="[% l('Fine Level') %]" path="fine_level" hidden>
<span>{{item['fine_level'] | string_pick:'[% l('Low') %]':'[% l('Normal') %]':'[% l('High') %]'}}</span>
</eg-grid-field>
+ <eg-grid-field label="[% l('Classification') %]" path="call_number.label_class.name" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Due Date') %]" path="_circ.due_date" datecontext="_circ_lib" dateonlyinterval="_duration" datatype="timestamp" visible></eg-grid-field>
+ <eg-grid-field label="[% l('OPAC Visible?') %]" datatype="bool" path="opac_visible" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Quality') %]" path="call_number.record.simple_record.quality" hidden></eg-grid-field>
</eg-grid>
</div>
flesh : 3,
flesh_fields : {
acp : ['status','location','circ_lib','parts','age_protect','copy_alerts', 'latest_inventory'],
- acn : ['prefix','suffix','copies'],
+ acn : ['prefix','suffix','copies','label_class','record'],
+ bre : ['simple_record'],
alci : ['inventory_workstation']
}
}
}
);
- // create virtual field for copy alert count
+ // create virtual fields for copy alert count and most recent circ
angular.forEach(svc.copies, function (cp) {
if (cp.copy_alerts) {
cp.copy_alert_count = cp.copy_alerts.filter(function(aca) { return aca.ack_time == null ;}).length;
}
else cp.copy_alert_count = 0;
+
+ var copy_circ = egCore.pcrud.search('combcirc', { target_copy : cp.id },
+ {
+ order_by : {combcirc : 'xact_start desc'},
+ limit : 1
+ }
+ ).then(function(copy_circ) {
+ if (copy_circ) {
+ cp._circ = egCore.idl.toHash(copy_circ, true);
+ cp._circ_lib = copy_circ.circ_lib();
+ cp._duration = copy_circ.duration();
+ }
+ return copy_circ;
+ });
});
// create a label using just the unique part of the owner list