From ef9c34527daca33c652f79ef65d472f71590fd9b Mon Sep 17 00:00:00 2001 From: josegar74 Date: Mon, 15 Jun 2026 08:35:56 +0200 Subject: [PATCH] =?UTF-8?q?Update=20the=20error=20messages=20that=20appear?= =?UTF-8?q?=20when=20linking=20a=20dataset=20to=20a=20service=E2=80=99s=20?= =?UTF-8?q?metadata=20if=20the=20user=20cannot=20edit=20either=20the=20dat?= =?UTF-8?q?aset=20or=20the=20service.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - When adding the service to the metadata of a dataset: the service cannot be editable. The message was confusing. - When adding the dataset to the metadata of the service: the dataset cannot be editable and the addition of the distribution may fail. The same message was used as in the previous case, which was also confusing. --- .../catalog/components/edit/onlinesrc/OnlineSrcService.js | 2 +- web-ui/src/main/resources/catalog/locales/en-editor.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web-ui/src/main/resources/catalog/components/edit/onlinesrc/OnlineSrcService.js b/web-ui/src/main/resources/catalog/components/edit/onlinesrc/OnlineSrcService.js index 8fd953ce4a6c..a64c5dcea7cc 100644 --- a/web-ui/src/main/resources/catalog/components/edit/onlinesrc/OnlineSrcService.js +++ b/web-ui/src/main/resources/catalog/components/edit/onlinesrc/OnlineSrcService.js @@ -697,7 +697,7 @@ // that only the service will be updated. $rootScope.$broadcast("StatusUpdated", { title: $translate.instant("linkToServiceError"), - msg: $translate.instant("cantAddLinkToDataset"), + msg: $translate.instant("cantAddLinkToService"), timeout: 0, type: "danger" }); diff --git a/web-ui/src/main/resources/catalog/locales/en-editor.json b/web-ui/src/main/resources/catalog/locales/en-editor.json index 925b4942b2ea..3ee1502293bf 100644 --- a/web-ui/src/main/resources/catalog/locales/en-editor.json +++ b/web-ui/src/main/resources/catalog/locales/en-editor.json @@ -117,7 +117,8 @@ "createMetadataUniformResourceName": "Metadata Uniform Resource Name", "createNewMetadata": "Add a new record", "createSmall": "Create small", - "cantAddLinkToDataset": "Can't add link to target dataset. You probably can't edit that record. Updating the service only.", + "cantAddLinkToDataset": "You cannot add the link to the target dataset, as you will likely be unable to edit the service record. The dataset will be updated to include the link to the service as a distribution, if you have selected that option in the dialogue box.", + "cantAddLinkToService": "You cannot add the link to the target service in the dataset, as you will likely be unable to edit the dataset record.", "current": "current", "datasetFound": "Dataset found and added to map preview", "datasetNotFound": "Dataset not found - 404",