[% l('Holdings View') %]
</a>
</li>
+ <li ng-class="{disabled : !record_id}">
+ <button type="button" ng-disabled="disable_mark_for_overlay" class="btn btn-default" ng-click="mark_as_overlay_target()">
+ [% l('Mark Record As Overlay Target') %]
+ </button>
+ </li>
</ul>
<div class="tab-content">
if ($routeParams.record_id) $scope.from_route = true;
else $scope.from_route = false;
+ // FIXME -- we could add a permission check here
+ if ($scope.record_id == egCore.hatch.getLocalItem('eg.cat.marked_overlay_record')) {
+ $scope.disable_mark_for_overlay = true;
+ } else {
+ $scope.disable_mark_for_overlay = false;
+ }
+
// will hold a ref to the opac iframe
$scope.opac_iframe = null;
$scope.parts_iframe = null;
);
}
+ $scope.mark_as_overlay_target = function() {
+ egCore.hatch.setLocalItem('eg.cat.marked_overlay_record',$scope.record_id);
+ $scope.disable_mark_for_overlay = true;
+ }
+
$scope.set_record_tab = function(tab) {
$scope.record_tab = tab;