lNode.style.visibility = 'hidden';
}
+ function setSummaryState(condition) {
+ if (condition) {
+ egCore.hatch.setItem('eg.circ.patron.summary.collapse', true);
+ } else {
+ egCore.hatch.removeItem('eg.circ.patron.summary.collapse');
+ }
+ }
+
+ egCore.hatch.getItem('circ.auto_hide_patron_summary').then(function(res) {
+ setSummaryState(res);
+ });
+
$scope.toggle_expand_summary = function() {
if ($scope.collapsePatronSummary) {
$scope.collapsePatronSummary = false;
- egCore.hatch.removeItem('eg.circ.patron.summary.collapse');
} else {
$scope.collapsePatronSummary = true;
- egCore.hatch.setItem('eg.circ.patron.summary.collapse', true);
}
+ setSummaryState($scope.collapsePatronSummary);
}
// always expand the patron summary in the search UI, regardless