var copyId = $routeParams.id;
$scope.tab = $routeParams.tab || 'summary';
$scope.context.page = 'detail';
+ $scope.summaryRecord = null;
$scope.edit = false;
if ($scope.tab == 'edit') {
// use the cached record info
if (itemSvc.copy)
- $scope.summaryRecord = itemSvc.copy.call_number().record();
+ $scope.recordId = itemSvc.copy.call_number().record().id();
function loadCopy(barcode) {
$scope.context.itemNotFound = false;
$scope.copy = copy;
$scope.recordId = copy.call_number().record().id();
- $scope.summaryRecord = itemSvc.copy.call_number().record();
$scope.args.barcode = '';
// locally flesh org units