From: Cesar Velez Date: Thu, 30 Nov 2017 20:36:35 +0000 (-0500) Subject: LP#1710405 - remove Modify + Use Edits buttons in z3950 overlay X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bfd5b2f43a0d603972440d727310c7f03a5583e1;p=contrib%2FConifer.git LP#1710405 - remove Modify + Use Edits buttons in z3950 overlay The workflow for using a z3950 record to overlay a marked bib was confusing since it requires first saving the z3950 marc edits via the Modify button at the top, and only then hitting Use Edits, at the bottom of the modals. User often miss the click Modify part, thus this simplifies that, having just a "Save" button and a Cancel. Signed-off by: Cesar Velez Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/templates/staff/cat/z3950/t_edit_overlay_record.tt2 b/Open-ILS/src/templates/staff/cat/z3950/t_edit_overlay_record.tt2 index 0362fe3de7..7ebc94e5f3 100644 --- a/Open-ILS/src/templates/staff/cat/z3950/t_edit_overlay_record.tt2 +++ b/Open-ILS/src/templates/staff/cat/z3950/t_edit_overlay_record.tt2 @@ -6,11 +6,9 @@ diff --git a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js index 83be9cec68..5e54ee5ef5 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js @@ -380,7 +380,8 @@ function($scope , $q , $location , $timeout , $window, egCore , egGridDataProvi args.overlay_target = $scope.overlay_target; $scope.ok = function(args) { $uibModalInstance.close(args) }; $scope.cancel = function () { $uibModalInstance.dismiss() }; - $scope.editOverlayRecord = function() { + + $scope.editOverlayRecord = function() { $uibModal.open({ templateUrl: './cat/z3950/t_edit_overlay_record', backdrop: 'static', @@ -391,7 +392,7 @@ function($scope , $q , $location , $timeout , $window, egCore , egGridDataProvi $scope.record_id = 0; $scope.dirty_flag = false; $scope.args = args; - $scope.ok = function(args) { $uibModalInstance.close(args) } + $scope.ok = function() { $uibModalInstance.close($scope.args) } $scope.cancel = function () { $uibModalInstance.dismiss() } }] }).result.then(function (args) {