LP#1402797 webby: catalog record -> view holds org filter repair
authorBill Erickson <berickxx@gmail.com>
Mon, 15 Dec 2014 18:47:51 +0000 (13:47 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 12 Feb 2015 16:58:28 +0000 (11:58 -0500)
Selecting a pickup library from the filter in the Catalog -> View Holds
UI shows holds for the selected org unit and descendant org units.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index 8c06ad5..9b466a9 100644 (file)
@@ -101,7 +101,7 @@ function($scope , $routeParams , $location , $q , egCore , egHolds,
             'open-ils.circ',
             'open-ils.circ.holds.retrieve_all_from_title',
             egCore.auth.token(), $scope.record_id, 
-            {pickup_lib : $scope.pickup_ou.id()}
+            {pickup_lib : egCore.org.descendants($scope.pickup_ou.id(), true)}
         ).then(
             function(hold_data) {
                 angular.forEach(hold_data, function(list, type) {