JBAS-1891 Remove 2.10-era hold copy count columns (LP#1402770)
authorBill Erickson <berickxx@gmail.com>
Wed, 11 Oct 2017 18:35:37 +0000 (14:35 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
This paritally reverts LP bug #1402770.

Avoid displaying or fetching data for the 2.10-era copy hold_count columns.
The data is unused locally and adds unnecessary API calls.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js
Open-ILS/xul/staff_client/server/circ/util.js

index 7f41136..2ce2a60 100644 (file)
@@ -97,7 +97,6 @@
     </a>
   </eg-grid-field>
   <eg-grid-field path="*" hidden></eg-grid-field>
-  <eg-grid-field path="target_copy.holds_count.count" hidden></eg-grid-field>
   <eg-grid-field label="[% l('Item Status') %]" path="target_copy.status.name" hidden></eg-grid-field>
   <eg-grid-field path="target_copy.circ_modifier" hidden></eg-grid-field>
   <eg-grid-field path="target_copy.*" hidden></eg-grid-field>
index 110ead8..9797514 100644 (file)
@@ -108,7 +108,7 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc ,
             {   flesh : 4,
                 flesh_fields : {
                     circ : ['target_copy', 'workstation', 'checkin_workstation'],
-                    acp : ['call_number', 'holds_count', 'status', 'circ_lib', 'location', 'floating', 'age_protect'],
+                    acp : ['call_number', 'status', 'circ_lib', 'location', 'floating', 'age_protect'],
                     acn : ['record', 'owning_lib', 'prefix', 'suffix'],
                     bre : ['wide_display_entry']
                 },
index 45de87c..72e4740 100644 (file)
@@ -596,17 +596,6 @@ circ.util.columns = function(modify,params) {
                 }
             }
         },
-       {
-            'id' : 'ahhc',
-            'fm_class' : 'hasholdscount',
-            'label' : 'Holds Count',
-            'flex' : 1,
-            'primary' : false,
-            'hidden' : true,
-            'editable' : false, 'render' : function(my) {
-               return network.simple_request("FM_CIRC_HAS_HOLDS_COUNT_RETRIEVE_VIA_COPY",[ ses(), my.acp.id() ] );
-               }
-        },
         {
             'id' : 'prefix',
             'fm_class' : 'acn',