From 0742edd42afa08b218d1d4ef04ecae4798120a9f Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Thu, 30 Nov 2017 15:36:35 -0500 Subject: [PATCH] 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 --- Open-ILS/src/templates/staff/cat/z3950/t_edit_overlay_record.tt2 | 4 +--- Open-ILS/web/js/ui/default/staff/cat/z3950/app.js | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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 09bf70f2aa..5ca05828f6 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 @@ -360,7 +360,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', @@ -371,7 +372,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) { -- 2.11.0