diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2f90edbeb..c4b6b2d93 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
- Changed the way we were handling DATE type metadata field validation to better match the backend validation and give users better error messages. For example, for an input like “foo AD”, we now show “Production Date is not a valid date. The AD year must be numeric.“. For an input like “99999 AD”, we now show “Production Date is not a valid date. The AD year cant be higher than 9999.“. For an input like “[-9999?], we now show “Production Date is not a valid date. The year in brackets cannot be negative.“, etc.
- The SPA now fetches the runtime configuration from `config.js` on each load, allowing configurations without rebuilding the app. We don't use `.env` variables at build time anymore.
- Renamed dataset template fetch/create use cases and DTOs to `getTemplatesByCollectionId` and `CreateTemplateDTO` for API alignment, and added new `getTemplate` and `deleteTemplate` use cases for retrieving a single template by ID and deleting templates.
+- Dataset page Terms tab title now depends on permissions: users with dataset update permission see `Terms and Guestbook`, and read-only users see `Terms`.
### Fixed
@@ -31,6 +32,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
- Show toast notification when API token is copied to clipboard.
- Dataset versions: (1) file changes should be `Access: Restricted` instead of `isResticted: true/false`; (2) logic of View Detail button. (#879)
- File versions: (1) logic of linking to a file version; (2)If file not included, show text information "File not included in this version.". (#879)
+- Dataset page publish flow now avoids rendering duplicate tab sets by making tabs skeleton and tabs content mutually exclusive.
### Removed
diff --git a/public/locales/en/dataset.json b/public/locales/en/dataset.json
index 47c91d018..64740a8ac 100644
--- a/public/locales/en/dataset.json
+++ b/public/locales/en/dataset.json
@@ -2,6 +2,7 @@
"filesTabTitle": "Files",
"metadataTabTitle": "Metadata",
"termsTabTitle": "Terms and Guestbook",
+ "termsTabTitleReadOnly": "Terms",
"anonymizedFieldValue": "withheld",
"customTerms": {
"title": "Custom Dataset Terms",
diff --git a/public/locales/es/dataset.json b/public/locales/es/dataset.json
index 30ad2dc4e..cf68b11cb 100644
--- a/public/locales/es/dataset.json
+++ b/public/locales/es/dataset.json
@@ -1,7 +1,8 @@
{
"filesTabTitle": "Ficheros",
"metadataTabTitle": "Metadatos",
- "termsTabTitle": "Términos",
+ "termsTabTitle": "Términos y libros de visitas",
+ "termsTabTitleReadOnly": "Términos",
"anonymizedFieldValue": "retirado",
"customTerms": {
"title": "Términos personalizados del dataset",
diff --git a/src/sections/dataset/Dataset.tsx b/src/sections/dataset/Dataset.tsx
index 2097aa8cd..6f52bc06f 100644
--- a/src/sections/dataset/Dataset.tsx
+++ b/src/sections/dataset/Dataset.tsx
@@ -113,6 +113,7 @@ export function Dataset({
const currentVersionNumber = dataset.version.number.toString()
const canUpdateDataset = dataset.permissions.canUpdateDataset
+ const termsTabTitle = canUpdateDataset ? t('termsTabTitle') : t('termsTabTitleReadOnly')
return (
<>
@@ -164,87 +165,86 @@ export function Dataset({
- {publishInProgress && }
-
- {(!publishInProgress || !isDatasetLoading) &&
- (isCurrentVersionDeaccessioned && !canUpdateDataset ? (
-
-
-