LP#1964629 - Item Status - add column for Total Circs
authorMichele Morgan <mmorgan@noblenet.org>
Tue, 16 Aug 2022 14:36:54 +0000 (10:36 -0400)
committerJane Sandberg <js7389@princeton.edu>
Thu, 27 Oct 2022 22:10:03 +0000 (15:10 -0700)
Adds Total Circulations to the column picker.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Gina Monti <gmonti@biblio.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/templates/staff/cat/item/t_list.tt2
Open-ILS/web/js/ui/default/staff/circ/services/item.js

index cc5a57e..4431a3b 100644 (file)
   <eg-grid-field label="[% l('Status Changed Time') %]"   path="status_changed_time" datatype="timestamp" hidden></eg-grid-field>
   <eg-grid-field label="[% l('TCN') %]"                   path="call_number.record.tcn_value" hidden></eg-grid-field>
   <eg-grid-field label="[% l('TCN Source') %]"            path="call_number.record.tcn_source" hidden></eg-grid-field>
+  <eg-grid-field label="[% l('Total Circulations') %]"    path="total_circ_count.circ_count" hidden></eg-grid-field>
   <eg-grid-field label="[% l('Transaction Complete') %]"  path="_circ.xact_finish" datatype="timestamp" hidden></eg-grid-field>
   <eg-grid-field label="[% l('Alerts') %]" path="copy_alert_count" handlers="gridCellHandlers" visible compiled>
     {{item['copy_alert_count']}}
index 7dfafd1..bd509d7 100644 (file)
@@ -16,7 +16,7 @@ function(egCore , egOrg , egCirc , $uibModal , $q , $timeout , $window , ngToast
         flesh : 4,
         flesh_fields : {
             acp : ['call_number','location','status','floating','circ_modifier',
-                'age_protect','circ_lib','copy_alerts', 'creator', 'editor', 'circ_as_type', 'latest_inventory'],
+                'age_protect','circ_lib','copy_alerts', 'creator', 'editor', 'circ_as_type', 'latest_inventory', 'total_circ_count'],
             acn : ['record','prefix','suffix','label_class'],
             bre : ['simple_record','creator','editor'],
             alci : ['inventory_workstation']