From: Mike Rylander Date: Mon, 26 Oct 2015 16:13:45 +0000 (-0400) Subject: webstaff: Wire up statcat filtering in item attribute editor X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c451a3d14abaa8a43b1da1b2aa5e3475e0768384;p=working%2FEvergreen.git webstaff: Wire up statcat filtering in item attribute editor Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 index 4d1ec8e817..553cb252a8 100644 --- a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 +++ b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 @@ -385,7 +385,7 @@
-
+
diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index b70f81f0cc..dfe8df3ed5 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -1295,6 +1295,15 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.workingGridDataProvider.refresh(); }); + $scope.statcat_visible = function (sc_owner) { + var visible = typeof $scope.working.statcat_filter === 'undefined' || !$scope.working.statcat_filter; + angular.forEach(egCore.org.ancestors(sc_owner), function (anscestor_org) { + if ($scope.working.statcat_filter == anscestor_org.id()) + visible = true; + }); + return visible; + } + $scope.suffix_list = []; itemSvc.get_suffixes(egCore.auth.user().ws_ou()).then(function(list){ $scope.suffix_list = list;