docs, cleanup, minor grid item value repair
authorBill Erickson <berick@esilibrary.com>
Mon, 28 Apr 2014 20:43:05 +0000 (16:43 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 28 Apr 2014 20:43:05 +0000 (16:43 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/staff/services/grid.js
Open-ILS/web/js/ui/default/staff/services/printstore.js

index 6f444f1..ae4e340 100644 (file)
@@ -847,7 +847,7 @@ angular.module('egGridMod',
 
                 if (obj === null || obj === undefined || obj === '') return '';
                 if (!idlField) return obj;
-                return $filter('egGridValueFilter')(obj, column);
+                return $filter('egGridValueFilter')(obj, idlField);
             }
         }
 
index 495a610..6dadbf3 100644 (file)
@@ -3,18 +3,22 @@
  *
  * Dispatches print and data storage requests to the appropriate handler.
  *
- * With each request, if a connection to Hatch is established, the
- * request is relayed.  If a connection has not been attempted, an
+ * With each top-level request, if a connection to Hatch is established,
+ * the request is relayed.  If a connection has not been attempted, an
  * attempt is made then the request is handled.  If Hatch is known to be
  * inaccessible, requests are routed to local handlers.
  *
+ * Most handlers also provide direct remote and local variants to the
+ * application can decide to which to use as needed.
+ *
  * Printing is handled locally with an egPrintContainer whose contents
  * are made visible during printing using CSS print media.
  *
- * Storage requests are handled by $window.localStorage.
+ * Local storage requests are handled by $window.localStorage.
  *
- * Note that all requests return promises, since any request may be
- * subject to aschronous processing by Hatch.
+ * Note that all top-level and remote requests return promises.  All
+ * local requests return immediate values, since local requests are
+ * never asynchronous.
  *
  */
 angular.module('egCoreMod')
@@ -56,8 +60,6 @@ angular.module('egCoreMod')
 
         if (service.hatchAvailable === false) { // Hatch is closed
             msg.deferred.reject(msg);
-            //service.pending.push(msg);
-            //service.handleRequestsLocally();
 
         } else if (service.hatchAvailable === true) { // Hatch is open
             // Hatch is known to be open