From: Cesar Velez Date: Fri, 27 Jul 2018 15:21:25 +0000 (-0400) Subject: LP#1739087 - add [x] to volcopy editor volume rows X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ad1d99ce712afef42c099b935d377f97a8ffb385;p=working%2FEvergreen.git LP#1739087 - add [x] to volcopy editor volume rows Enable newly created call numbers to be removable in VolCopyEditor. Signed-off by: Cesar Velez Signed-off-by: Jason Etheridge --- 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 72fee0e6da..43a493035f 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 @@ -479,7 +479,7 @@ function(egCore , $q) { '
{{empty_barcode_string}}
'+ ''+ '
'+ - '
'+ + '
'+ '', scope: { focusNext: "=", copy: "=", callNumber: "=", index: "@", record: "@" }, @@ -570,6 +570,7 @@ function(egCore , $q) { template: '
'+ '
'+ + '' + '
'+ + '
'+ '
'+ ''+ + 'focus-next="focusNextFirst" copies="copies" allcopies="allcopies" struct="struct">'+ ''+ '
'+ '
', @@ -975,6 +1004,10 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.data.addCopy(cp); + // manually increase cn_count numeric input + var cn_spinner = $("input[name='cn_count_lib"+ newLib.id() +"']"); + cn_spinner.val(parseInt(cn_spinner.val()) + 1); + if (!$scope.defaults.classification) { egCore.org.settings( ['cat.default_classification_scheme'], @@ -1471,6 +1504,10 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , } ); + angular.forEach(itemSvc.copies, function(c){ + c.call_number().not_ephemeral = true; + }); + return itemSvc.copies; }