webstaff: Attempt to provide defaults
authorMike Rylander <mrylander@gmail.com>
Mon, 22 Jun 2015 17:26:55 +0000 (13:26 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 19 Aug 2015 17:39:18 +0000 (13:39 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
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;
     });