<link field="id" reltype="has_a" key="id" map="" class="bre"/>
</links>
</class>
- <class id="erfcc" controller="open-ils.reporter-store" oils_obj:fieldmapper="extend_reporter::full_circ_count" oils_persist:tablename="extend_reporter.full_circ_count" reporter:label="Total Circulation Count, Including Legacy">
+ <class id="erfcc" controller="open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="extend_reporter::full_circ_count" oils_persist:tablename="extend_reporter.full_circ_count" reporter:label="Total Circulation Count, Including Legacy">
<fields oils_persist:primary="id">
<field reporter:label="Copy ID" name="id" reporter:datatype="int" />
<field reporter:label="Total Circulation Count" name="circ_count" reporter:datatype="int" />
<links>
<link field="id" reltype="has_a" key="id" map="" class="acp"/>
</links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="STAFF_LOGIN" context_field="circ_lib"/>
+ </actions>
+ </permacrud>
</class>
<class id="erccpo" controller="open-ils.reporter-store" oils_obj:fieldmapper="extend_reporter::copy_count_per_org" oils_persist:tablename="extend_reporter.copy_count_per_org" reporter:label="Library Holdings Count with Deleted">
<fields oils_persist:primary="bibid">
<eg-grid-column i18n-label label="Active/Create Date"
path="copy.active_date" datatype="timestamp">
</eg-grid-column>
+ <eg-grid-column i18n-label label="Total Circ Count"
+ path="copy.total_circ_count.circ_count">
+ </eg-grid-column>
+ <eg-grid-column i18n-label label="Last Circ Date"
+ path="copy.last_circ.last_circ" datatype="timestamp">
+ </eg-grid-column>
<eg-grid-column i18n-label label="Age Hold Protection"
path="copy.age_protect.name" name="age_protect.name"></eg-grid-column>
<eg-grid-column i18n-label label="Item Price"
flesh: 3,
flesh_fields: {
acp: ['status', 'location', 'circ_lib', 'parts', 'notes',
- 'tags', 'age_protect', 'copy_alerts', 'latest_inventory'],
+ 'tags', 'age_protect', 'copy_alerts', 'latest_inventory',
+ 'total_circ_count', 'last_circ'],
acn: ['prefix', 'suffix', 'copies'],
acli: ['inventory_workstation']
}