[% l('Total hits: [_1]', '{{total_hits}}') %]
</div>
<div class="col-md-6 text-right" ng-if="local_overlay_target">
- [% l('Record with TCN [_1] marked for overlay.', '{{local_overlay_target}}') %]
+ [% l('Record [_1] marked for overlay.', '{{local_overlay_target}}') %]
</div>
<div class="col-md-6 text-right" ng-if="!local_overlay_target">
[% l('No record marked for overlay.') %]
// case, result.count is not supplied.
$scope.total_hits += (result.count || 0);
for (var i in result.records) {
+ result.records[i].mvr['bibid'] = result.records[i].bibid;
result.records[i].mvr['service'] = result.service;
result.records[i].mvr['index'] = resultIndex++;
result.records[i].mvr['marcxml'] = result.records[i].marcxml;
$scope.showInCatalog = function() {
var items = $scope.gridControls.selectedItems();
// relying on cant_showInCatalog to protect us
- var url = '/eg2/staff/catalog/record/' + items[0].tcn();
+ var url = '/eg2/staff/catalog/record/' + items[0]['bibid'];
$timeout(function() { $window.open(url, '_blank') });
};
$scope.cant_showInCatalog = function() {
$scope.local_overlay_target = egCore.hatch.getLocalItem('eg.cat.marked_overlay_record') || 0;
$scope.mark_as_overlay_target = function() {
var items = $scope.gridControls.selectedItems();
- if ($scope.local_overlay_target == items[0].tcn()) {
+ if ($scope.local_overlay_target == items[0]['bibid']) {
$scope.local_overlay_target = 0;
} else {
- $scope.local_overlay_target = items[0].tcn();
+ $scope.local_overlay_target = items[0]['bibid'];
}
egCore.hatch.setLocalItem('eg.cat.marked_overlay_record',$scope.local_overlay_target);
}
if (items.length != 1) return true;
if (
items[0]['service'] == 'native-evergreen-catalog' &&
- items[0].tcn() == $scope.local_overlay_target
+ items[0]['bibid'] == $scope.local_overlay_target
) return true;
return false;
}
}]
}).result.then(function (args) {
if (!args || !args.name) return;
- });
+
}
$scope.overlay_record = function() {