<eg-grid-field label="[% l('Barcode') %]" path="barcode" visible></eg-grid-field>
<eg-grid-field label="[% l('Status') %]" path="status.name" flex="1" visible></eg-grid-field>
+ <eg-grid-field label="[% l('Prefix') %]" path="call_number.prefix.label"></eg-grid-field>
+ <eg-grid-field label="[% l('Suffix') %]" path="call_number.suffix.label"></eg-grid-field>
+ <eg-grid-field label="[% l('Parts') %]" path="monograph_parts"></eg-grid-field>
<eg-grid-field label="[% l('Circulating Library') %]" path="circ_lib.name"></eg-grid-field>
<eg-grid-field label="[% l('Price') %]" path="price"></eg-grid-field>
<eg-grid-field label="[% l('Circulation Modifier') %]" path="circ_modifier"></eg-grid-field>
service.prototype.flesh = {
flesh : 2,
flesh_fields : {
- acp : ['status','location','circ_lib'],
+ acp : ['status','location','circ_lib','parts'],
acn : ['prefix','suffix','copies']
}
}
}
);
+ // create virtual field for displaying active parts
+ angular.forEach(svc.copies, function (cp) {
+ cp.monograph_parts = '';
+ if (cp.parts && cp.parts.length > 0) {
+ cp.monograph_parts = cp.parts.map(function(obj) { return obj.label; }).join();
+ }
+ });
+
// create a label using just the unique part of the owner list
var index = 0;
var prev_owner_list;