From: Mike Rylander Date: Wed, 9 Sep 2015 23:51:27 +0000 (-0400) Subject: webstaff: Allow editing of /only/ volume data X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=de538a7b15bc0736c66667115807fc7205cc79e5;p=evergreen%2Fmasslnc.git webstaff: Allow editing of /only/ volume data Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 b/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 index d6805ade97..14b46bd428 100644 --- a/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 @@ -1,5 +1,5 @@
-
+
- + +
diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index fde2e068b5..86927a8f1b 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -275,13 +275,13 @@ function(egCore , $q) { '
'+ '
'+ - '
'+ + '
'+ + '
'+ ''+ '
'+ '
', - scope: {focusNext: "=", allcopies: "=", copies: "=" }, + scope: {focusNext: "=", allcopies: "=", copies: "=", onlyVols: "=" }, controller : ['$scope','itemSvc','egCore', function ( $scope , itemSvc , egCore ) { $scope.callNumber = $scope.copies[0].call_number(); @@ -424,14 +424,14 @@ function(egCore , $q) { '
'+ '
'+ '
'+ - ''+ ''+ '
'+ '', - scope: { focusNext: "=", allcopies: "=", struct: "=", lib: "@", record: "@" }, + scope: { focusNext: "=", allcopies: "=", struct: "=", lib: "@", record: "@", onlyVols: "=" }, controller : ['$scope','itemSvc','egCore', function ( $scope , itemSvc , egCore ) { $scope.first_cn = Object.keys($scope.struct)[0]; @@ -607,6 +607,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , } ); + $scope.only_vols = false; $scope.show_vols = true; $scope.show_copies = true; @@ -629,6 +630,8 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.completed_copies = $scope.completed_copies.concat(itemSvc.copies.splice(i,1)); }); }); + + return true; } $scope.completeToWorking = function () { @@ -638,6 +641,8 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , itemSvc.copies = itemSvc.copies.concat($scope.completed_copies.splice(i,1)); }); }); + + return true; } createSimpleUpdateWatcher = function (field) { @@ -850,7 +855,10 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , if (data) { if (data.hide_vols && !$scope.defaults.always_vols) $scope.show_vols = false; - if (data.hide_copies) $scope.show_copies = false; + if (data.hide_copies) { + $scope.show_copies = false; + $scope.only_vols = true; + } $scope.record_id = data.record_id;