[%# dupe_search_encoded is uri escaped in the JS %]
<div class="alert alert-danger" ng-show="dupe_counts.name">
<a target="_blank"
- href="/eg/staff/circ/patron/search?search={{dupe_search_encoded}}">
+ href="/eg/staff/circ/patron/search?search={{dupe_search_encoded}}&inactive=1">
[% l('[_1] patron(s) with same name', '{{dupe_counts.name}}') %]
</a>
</div>
patronSvc.urlSearch.sort = [];
}
delete patronSvc.urlSearch.search.search_sort;
+
+ // include inactive patrons if "inactive" param
+ if ($location.search().inactive) {
+ patronSvc.urlSearch.inactive = $location.search().inactive;
+ }
}
var propagate;
+ var propagate_inactive;
if (patronSvc.lastSearch) {
propagate = patronSvc.lastSearch.search;
// home_ou needs to be treated specially
};
} else if (patronSvc.urlSearch) {
propagate = patronSvc.urlSearch.search;
+ if (patronSvc.urlSearch.inactive) {
+ propagate_inactive = patronSvc.urlSearch.inactive;
+ }
}
if (egCore.env.pgt) {
val.value = egCore.org.get(val.value);
$scope.searchArgs[key] = val.value;
});
+ if (propagate_inactive) {
+ $scope.searchArgs[inactive] = propagate_inactive;
+ }
}
var provider = egGridDataProvider.instance({});