Attempt to provide defaults
authorMike Rylander <mrylander@gmail.com>
Mon, 22 Jun 2015 17:26:55 +0000 (13:26 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 8 Jul 2015 19:31:18 +0000 (15:31 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index eb9cb1e..85bbf80 100644 (file)
@@ -224,14 +224,17 @@ function($scope , $routeParams , $location , $q , egCore , egHolds,
     );
 
     egCore.hatch.getItem('cat.holdings.show_copies').then(function(x){
-        $scope.holdings_show_copies = x
+        if (x === null) x = true;
+        $scope.holdings_show_copies = x;
     });
 
     egCore.hatch.getItem('cat.holdings.show_vols').then(function(x){
+        if (x === null) x = true;
         $scope.holdings_show_vols = x;
     });
 
     egCore.hatch.getItem('cat.holdings.show_emtpy').then(function(x){
+        if (x === null) x = false;
         $scope.holdings_show_empty = x;
     });