egCore.hatch.getItem('eg.circ.patron.search.show_extras')
.then(function(val) {$scope.showExtras = val});
-// check searchArgs.inactive setting
- egCore.hatch.getItem('searchArgs.inactive')
+ // check searchArgs.inactive setting
+ egCore.hatch.getItem('eg.circ.patron.search.include_inactive')
.then(function(searchInactive){
- if (searchInactive) $scope.searchArgs.inactive = searchInactive;
- });
+ if (searchInactive) $scope.searchArgs.inactive = searchInactive;
+ });
- $scope.onSearchInactiveChanged = function(){
- egCore.hatch.setItem('searchArgs.inactive', $scope.searchArgs.inactive);
+ $scope.onSearchInactiveChanged = function() {
+ egCore.hatch.setItem('eg.circ.patron.search.include_inactive', $scope.searchArgs.inactive);
}
-// map form arguments into search params
+ // map form arguments into search params
function compileSearch(args) {
var search = {};
angular.forEach(args, function(val, key) {