[% l('Mark as Title Hold Transfer Destination') %]</a></li>
<li><a href ng-click="transfer_holds_to_marked()">
[% l('Transfer All Title Holds') %]</a></li>
+ <li><a href ng-click="set_default_record_tab()">
+ [% l('Set bottom view as default') %]</a></li>
</ul>
</div>
</div>
} else {
delete $scope.record_id;
}
+
+ if ($scope.record_id) {
+ var default_tab = egCore.hatch.getLocalItem( 'eg.cat.default_record_tab' );
+ tab = $routeParams.record_tab || default_tab || 'catalog';
+ } else {
+ tab = $routeParams.record_tab || 'catalog';
+ }
+ $scope.set_record_tab(tab);
}
// xulG catalog handlers
}
}
- var tab = $routeParams.record_tab || 'catalog';
+ $scope.set_default_record_tab = function() {
+ egCore.hatch.setLocalItem(
+ 'eg.cat.default_record_tab', $scope.record_tab);
+ }
+
+ var tab;
+ if ($scope.record_id) {
+ var default_tab = egCore.hatch.getLocalItem( 'eg.cat.default_record_tab' );
+ tab = $routeParams.record_tab || default_tab || 'catalog';
+ } else {
+ tab = $routeParams.record_tab || 'catalog';
+ }
$scope.set_record_tab(tab);
}])