diff --git a/web-ui/src/main/resources/catalog/js/edit/BatchEditController.js b/web-ui/src/main/resources/catalog/js/edit/BatchEditController.js index e85cf45c950d..fff1c9b5434e 100644 --- a/web-ui/src/main/resources/catalog/js/edit/BatchEditController.js +++ b/web-ui/src/main/resources/catalog/js/edit/BatchEditController.js @@ -498,8 +498,7 @@ } } catch (e) { $rootScope.$broadcast("StatusUpdated", { - msg: $translate.instant("batchEditConfigIsNotJson"), - error: e, + msg: $translate.instant("batchEditConfigIsNotValid"), timeout: 2, type: "danger" }); diff --git a/web-ui/src/main/resources/catalog/locales/en-core.json b/web-ui/src/main/resources/catalog/locales/en-core.json index 91cc36c4cca9..cd91167124b0 100644 --- a/web-ui/src/main/resources/catalog/locales/en-core.json +++ b/web-ui/src/main/resources/catalog/locales/en-core.json @@ -591,6 +591,7 @@ "options": "Options", "metadataInfoReport": "Metadata information", "metadataErrorReport": "Metadata errors", + "pasteFromClipboard": "Paste the text from the clipboard", "copyToClipboard": "Copy the text to the clipboard", "textCopied": "Text has been copied to the clipboard.", "metadataApproved": "Metadata approved.", diff --git a/web-ui/src/main/resources/catalog/locales/en-v4.json b/web-ui/src/main/resources/catalog/locales/en-v4.json index 1bf8ace2b0e1..a85eec4e8c4e 100644 --- a/web-ui/src/main/resources/catalog/locales/en-v4.json +++ b/web-ui/src/main/resources/catalog/locales/en-v4.json @@ -381,8 +381,7 @@ "uuidMergePolicy": "UUID merge policy", "filteringAndProcessing": "Filtering and processing response", "recordCreationOptions": "Record creation options", - "batchEditConfigIsNotValid": "Batch edit configuration is invalid. It must be a JSON
{\"insertMode\": \"gn_add\", \"xpath\": \"...\", \"value\": \"...\"}
", - "batchEditConfigIsNotJson": "Batch edit configuration is not JSON.", + "batchEditConfigIsNotValid": "Batch edit configuration is invalid. Copy the configuration from another batch edit rule.", "testLink": "Test", "metadata/link": "Link analysis", "metadata/link/excludedUrlPattern": "Exclude URL from link analysis", diff --git a/web-ui/src/main/resources/catalog/templates/editor/batchedit.html b/web-ui/src/main/resources/catalog/templates/editor/batchedit.html index dbc3e2b6bbb6..9751955b283c 100644 --- a/web-ui/src/main/resources/catalog/templates/editor/batchedit.html +++ b/web-ui/src/main/resources/catalog/templates/editor/batchedit.html @@ -395,6 +395,7 @@

batchediting