lp1538678 MARC edit warning prompt translateable strings
authorKyle Huckins <khuckins@catalyte.io>
Mon, 20 May 2019 18:07:07 +0000 (18:07 +0000)
committerBill Erickson <berickxx@gmail.com>
Mon, 20 May 2019 20:49:19 +0000 (16:49 -0400)
- Define "There is unsaved data in this record." as a translateable string.

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>

 Changes to be committed:
modified:   Open-ILS/src/templates/staff/cat/share/marcedit_strings.tt2
modified:   Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js

Signed-off-by: Bill Erickson <berickxx@gmail.com>

Open-ILS/src/templates/staff/cat/share/marcedit_strings.tt2
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js

index 0f6fa33..8067b96 100644 (file)
@@ -12,5 +12,6 @@ angular.module('egCoreMod').run(['egStrings', function(s) {
     s.CONFIRM_DELETE_BRE_MSG    = "[% l('Are you sure you want to delete title record [_1] from the catalog?', '{{id}}') %]";
     s.CONFIRM_DELETE_ARE_MSG    = "[% l('Are you sure you want to delete authority record [_1] from the catalog?', '{{id}}') %]";
     s.ALERT_DELETE_FAILED       = "[% l('Could not delete record [_1]: [_2]', '{{id}}', '{{desc}}') %]";
+    s.DIRTY_MARC_WARNING        = "[% l('There is unsaved data in this record.') %]"
 }]);
 </script>
index 81ff40d..c41b1d5 100644 (file)
@@ -708,7 +708,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap'])
                     function(newVal, oldVal) {
                         if (newVal && newVal != oldVal && !$scope.opac_iframe) {
                             $($window).on('beforeunload', function(){
-                                return 'There is unsaved data in this record.'
+                                return egCore.strings.DIRTY_MARC_WARNING;
                             });
                         } else {
                             if (!$scope.opac_iframe)