diff --git a/core/src/main/java/org/fao/geonet/kernel/setting/Settings.java b/core/src/main/java/org/fao/geonet/kernel/setting/Settings.java index c3c2b209271..89234253a2e 100644 --- a/core/src/main/java/org/fao/geonet/kernel/setting/Settings.java +++ b/core/src/main/java/org/fao/geonet/kernel/setting/Settings.java @@ -71,7 +71,6 @@ public class Settings { public static final String SYSTEM_ENABLE_ALL_THESAURUS = "system/metadata/allThesaurus"; public static final String SYSTEM_METADATA_THESAURUS_NAMESPACE = "system/metadata/thesaurusNamespace"; public static final String SYSTEM_METADATA_VALIDATION_REMOVESCHEMALOCATION = "system/metadata/validation/removeSchemaLocation"; - public static final String SYSTEM_METADATA_HISTORY_ENABLED = "system/metadata/history/enabled"; public static final GNSetting SYSTEM_SITE_SVNUUID = new GNSetting("system/site/svnUuid", true); public static final String SYSTEM_INTRANET_NETWORK = "system/intranet/network"; public static final String SYSTEM_INTRANET_NETMASK = "system/intranet/netmask"; @@ -139,6 +138,8 @@ public class Settings { public static final String METADATA_IMPORT_RESTRICT = "metadata/import/restrict"; public static final String METADATA_IMPORT_USERPROFILE = "metadata/import/userprofile"; public static final String METADATA_BATCH_EDITING_ACCESS_LEVEL = "metadata/batchediting/accesslevel"; + public static final String METADATA_HISTORY_ENABLED = "metadata/history/enabled"; + public static final String METADATA_HISTORY_ACCESS_LEVEL = "metadata/history/accesslevel"; public static final String METADATA_PUBLISHED_DELETE_USERPROFILE = "metadata/delete/profilePublishedMetadata"; public static final String METADATA_PUBLISH_USERPROFILE = "metadata/publication/profilePublishMetadata"; public static final String METADATA_UNPUBLISH_USERPROFILE = "metadata/publication/profileUnpublishMetadata"; diff --git a/docs/manual/docs/administrator-guide/configuring-the-catalog/img/metadata_history.png b/docs/manual/docs/administrator-guide/configuring-the-catalog/img/metadata_history.png new file mode 100644 index 00000000000..a89837bfcbd Binary files /dev/null and b/docs/manual/docs/administrator-guide/configuring-the-catalog/img/metadata_history.png differ diff --git a/docs/manual/docs/administrator-guide/configuring-the-catalog/img/metadata_history_config.png b/docs/manual/docs/administrator-guide/configuring-the-catalog/img/metadata_history_config.png new file mode 100644 index 00000000000..f6a4860342a Binary files /dev/null and b/docs/manual/docs/administrator-guide/configuring-the-catalog/img/metadata_history_config.png differ diff --git a/docs/manual/docs/administrator-guide/configuring-the-catalog/system-configuration.md b/docs/manual/docs/administrator-guide/configuring-the-catalog/system-configuration.md index 37a665a169a..9d923dd46d8 100644 --- a/docs/manual/docs/administrator-guide/configuring-the-catalog/system-configuration.md +++ b/docs/manual/docs/administrator-guide/configuring-the-catalog/system-configuration.md @@ -230,6 +230,19 @@ Allows to configure the user profile allowed to publish and un-publish metadata. ![](img/metadata-publication.png) +## Metadata History + +Allows to view metadata history + +![](img/metadata_history.png) + +- **Minimum user profile allowed to view metadata history** Minimum user profile allowed to delete metadata (`Registered User`, `Editor` or `Administrator`). The default value is `Editor`. +![](img/metadata_history_config.png) + +- **Registered User Configuration** The user who has granted view permission to the metadata record can view the history. +- **Editor Configuration** The user who has granted editing permission to the metadata record can view the history. +- **Administrator Configuration** The user who has granted system administrator permission can view the history. + ## Harvesting *Allow editing on harvested records*: Enables/Disables editing of harvested records in the catalogue. By default, harvested records cannot be edited. diff --git a/listeners/src/main/java/org/fao/geonet/listener/history/GenericMetadataEventListener.java b/listeners/src/main/java/org/fao/geonet/listener/history/GenericMetadataEventListener.java index 06299c4be91..b9e052d5e99 100644 --- a/listeners/src/main/java/org/fao/geonet/listener/history/GenericMetadataEventListener.java +++ b/listeners/src/main/java/org/fao/geonet/listener/history/GenericMetadataEventListener.java @@ -70,7 +70,7 @@ public final void handleEvent(AbstractHistoryEvent event) { */ public final void storeContentHistoryEvent(AbstractHistoryEvent event) { - if(settingManager.getValueAsBool(Settings.SYSTEM_METADATA_HISTORY_ENABLED)) { + if(settingManager.getValueAsBool(Settings.METADATA_HISTORY_ENABLED)) { Integer metadataid = Math.toIntExact(event.getMdId()); diff --git a/services/src/main/java/org/fao/geonet/api/records/MetadataWorkflowApi.java b/services/src/main/java/org/fao/geonet/api/records/MetadataWorkflowApi.java index 64f11419545..385253c659a 100644 --- a/services/src/main/java/org/fao/geonet/api/records/MetadataWorkflowApi.java +++ b/services/src/main/java/org/fao/geonet/api/records/MetadataWorkflowApi.java @@ -60,6 +60,7 @@ import org.fao.geonet.kernel.setting.Settings; import org.fao.geonet.repository.*; import org.fao.geonet.util.MetadataPublicationMailNotifier; +import org.fao.geonet.util.UserUtil; import org.fao.geonet.utils.Log; import org.fao.geonet.utils.Xml; import org.jdom.Element; @@ -71,6 +72,7 @@ import org.springframework.data.domain.Sort; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.security.access.hierarchicalroles.RoleHierarchy; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; @@ -149,6 +151,9 @@ public class MetadataWorkflowApi { @Autowired MetadataPublicationMailNotifier metadataPublicationMailNotifier; + @Autowired + RoleHierarchy roleHierarchy; + // The restore function currently supports these states static final Integer[] supportedRestoreStatuses = { Integer.parseInt(StatusValue.Events.RECORDUPDATED), @@ -635,7 +640,7 @@ public void deleteAllRecordStatus( @io.swagger.v3.oas.annotations.Operation(summary = "Search status", description = "") @RequestMapping(produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET, path = "/status/search") @ResponseStatus(value = HttpStatus.OK) - @PreAuthorize("hasAuthority('Editor')") + @PreAuthorize("hasAuthority('RegisteredUser')") @ResponseBody public List getWorkflowStatusByType( @Parameter(description = "One or more types to retrieve (ie. worflow, event, task). Default is all.", @@ -694,6 +699,9 @@ public List getWorkflowStatusByType( ServiceContext context = ApiUtils.createServiceContext(request); Profile profile = context.getUserSession().getProfile(); + String allowedProfileLevel = org.apache.commons.lang.StringUtils.defaultIfBlank(settingManager.getValue(Settings.METADATA_HISTORY_ACCESS_LEVEL), Profile.Editor.toString()); + Profile allowedAccessLevelProfile = Profile.valueOf(allowedProfileLevel); + if (profile != Profile.Administrator) { if (CollectionUtils.isEmpty(recordIdentifier) && CollectionUtils.isEmpty(uuid)) { @@ -704,7 +712,12 @@ public List getWorkflowStatusByType( if (!CollectionUtils.isEmpty(recordIdentifier)) { for (Integer recordId : recordIdentifier) { try { - ApiUtils.canEditRecord(String.valueOf(recordId), request); + if (allowedAccessLevelProfile == Profile.RegisteredUser) { + ApiUtils.canViewRecord(String.valueOf(recordId), request); + } else { + ApiUtils.canEditRecord(String.valueOf(recordId), request); + } + } catch (SecurityException e) { throw new NotAllowedException(ApiParams.API_RESPONSE_NOT_ALLOWED_CAN_EDIT); } @@ -713,7 +726,12 @@ public List getWorkflowStatusByType( if (!CollectionUtils.isEmpty(uuid)) { for (String recordId : uuid) { try { - ApiUtils.canEditRecord(recordId, request); + if (allowedAccessLevelProfile == Profile.RegisteredUser) { + ApiUtils.canViewRecord(recordId, request); + } else { + ApiUtils.canEditRecord(recordId, request); + } + } catch (SecurityException e) { throw new NotAllowedException(ApiParams.API_RESPONSE_NOT_ALLOWED_CAN_EDIT); } @@ -1310,4 +1328,5 @@ private void changeMetadataStatus(ServiceContext context, AbstractMetadata metad listOfStatusChange.add(metadataStatusValue); sa.onStatusChange(listOfStatusChange, true); } + } diff --git a/services/src/main/java/org/fao/geonet/api/records/editing/BatchEditsApi.java b/services/src/main/java/org/fao/geonet/api/records/editing/BatchEditsApi.java index 63efea7a154..09d038c0fbd 100644 --- a/services/src/main/java/org/fao/geonet/api/records/editing/BatchEditsApi.java +++ b/services/src/main/java/org/fao/geonet/api/records/editing/BatchEditsApi.java @@ -307,21 +307,4 @@ private Pair applyBatchEdits( return Pair.write(report, preview); } - /** - * Checks if the user profile is allowed to batch edit metadata. - * - * @param userSession - */ - private void checkUserProfileToBatchEditMetadata(UserSession userSession) { - if (userSession.getProfile() != Profile.Administrator) { - String allowedUserProfileToImportMetadata = - StringUtils.defaultIfBlank(settingManager.getValue(Settings.METADATA_BATCH_EDITING_ACCESS_LEVEL), Profile.Editor.toString()); - - // Is the user profile is higher than the profile allowed to import metadata? - if (!UserUtil.hasHierarchyRole(allowedUserProfileToImportMetadata, this.roleHierarchy)) { - throw new NotAllowedException("The user has no permissions to batch edit metadata."); - } - } - - } } diff --git a/web-ui/src/main/resources/catalog/components/search/mdview/mdviewModule.js b/web-ui/src/main/resources/catalog/components/search/mdview/mdviewModule.js index f4ec405e092..1310e4a4810 100644 --- a/web-ui/src/main/resources/catalog/components/search/mdview/mdviewModule.js +++ b/web-ui/src/main/resources/catalog/components/search/mdview/mdviewModule.js @@ -105,7 +105,7 @@ gnGlobalSettings.gnCfg.mods.recordview.showStatusTopBarFor; gnConfigService.load().then(function (c) { - $scope.isRecordHistoryEnabled = gnConfig["system.metadata.history.enabled"]; + $scope.isRecordHistoryEnabled = gnConfig["metadata.history.enabled"]; $scope.isPreferGroupLogo = gnConfig["system.metadata.prefergrouplogo"]; var statusSystemRating = gnConfig["system.localrating.enable"]; diff --git a/web-ui/src/main/resources/catalog/js/CatController.js b/web-ui/src/main/resources/catalog/js/CatController.js index 8926a3f28a6..7f9a22d126c 100644 --- a/web-ui/src/main/resources/catalog/js/CatController.js +++ b/web-ui/src/main/resources/catalog/js/CatController.js @@ -1866,6 +1866,17 @@ : ""; return angular.isFunction(this[fnName]) ? this[fnName]() : false; }, + canViewMetadataHistory: function () { + var profile = gnConfig["metadata.history.accesslevel"] || "Editor", + fnName = + profile !== "" + ? "is" + profile[0].toUpperCase() + profile.substring(1) + "OrMore" + : ""; + if (profile === "RegisteredUser") { + return true; + } + return angular.isFunction(this[fnName]) ? this[fnName]() : false; + }, canDeletePublishedMetadata: function () { var profile = gnConfig["metadata.delete.profilePublishedMetadata"] || "Editor", diff --git a/web-ui/src/main/resources/catalog/locales/ca-admin.json b/web-ui/src/main/resources/catalog/locales/ca-admin.json index c1b75f9c354..22ea64f3375 100644 --- a/web-ui/src/main/resources/catalog/locales/ca-admin.json +++ b/web-ui/src/main/resources/catalog/locales/ca-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Eliminar la locatització de l'esquema per a la validació", "system/metadata/validation/removeSchemaLocation-help": "Si s'activa, amb el valor true, l'atribut schemaLocation en l'element arrel de la metadada s'elimina durant la validació i en desar la metadata. Això assegura que l'schemaLocation utilitzat per a la metadada és sempre l'esquema local.", - "system/metadata/history/enabled": "Habilitar la traçabilitat dels històrics de cada registre", - "system/metadata/history/enabled-help": "Quan s'activa, amb el valor 'true', cada esdeveniment que alteri un registre de metadades és registrat a la base de dades.", + "metadata/history/enabled": "Habilitar la traçabilitat dels històrics de cada registre", + "metadata/history/enabled-help": "Quan s'activa, amb el valor 'true', cada esdeveniment que alteri un registre de metadades és registrat a la base de dades.", "system/metadata/allThesaurus-help": "Si s'habilita, un tesaurus virtual es crearà contenint totes les paraules clau dels altres tesaurus. Això és útil quan el nom del tesaurus no és important i només la paraula clau importa. Per assegurar que els blocs de paraules clau es mantenen (amb el nom correcte del tesaurus), habilitar això també s'habilita una transformació en update-fixed-info que assignarà les paraules claus d'aquest tesaurus virtual a blocs amb el tesaurus correcte.", "system/metadataprivs": "Privilegis de la metadada", "system/metadataprivs/usergrouponly": "Només ajustar privilegis als grups de l'usuari", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/cs-admin.json b/web-ui/src/main/resources/catalog/locales/cs-admin.json index 713a57c5858..41eea264e0a 100644 --- a/web-ui/src/main/resources/catalog/locales/cs-admin.json +++ b/web-ui/src/main/resources/catalog/locales/cs-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Na základě tohoto vzoru bude při vytváření nového tezauru navržen jmenný prostor. Vzor může obsahovat zástupný symbol \\{\\{type\\}\\} a \\{\\{filename\\}\\} pro nahrazení.", "system/metadata/validation/removeSchemaLocation": "Odebrat schéma umístění pro ověření", "system/metadata/validation/removeSchemaLocation-help": "Je-li pravda, atribut schemaLocation v kořenovém elementu metadat je během ověřování a ukládání metadat odstraněn. Zaručuje, že schemaLocation použité pro metadata je vždy lokální schéma", - "system/metadata/history/enabled": "Povolit záznam historie záznamů", - "system/metadata/history/enabled-help": "Pokud je to pravda, je v databázi registrována každá událost, která mění záznamy metadat.", + "metadata/history/enabled": "Povolit záznam historie záznamů", + "metadata/history/enabled-help": "Pokud je to pravda, je v databázi registrována každá událost, která mění záznamy metadat.", "system/metadata/allThesaurus-help": "Pokud to platí, bude vytvořen virtuální tezaurus obsahující všechna klíčová slova ve všech ostatních tezaurech. To je užitečné v editoru, kdy není důležitý název tezauru, ale pouze klíčové slovo. Aby bylo možné zajistit uchování správných skupin klíčových slov (se správným názvem tezauru) aktivace této funkce rovněž umožní transformaci do aktualizovat-stanovené-info (update-fixed-info), kterým se přiřadí klíčové slovo do tezauru 'všechny' ke skupinám klíčových slov s odpovídajícím tezaurem pro dané klíčové slovo", "system/metadataprivs": "Výhradní práva k metadatům", "system/metadataprivs/usergrouponly": "Pouze nastavit výhradní práva ke skupinám uživatele", @@ -1491,4 +1491,4 @@ "fieldTooShort": "Hodnota je příliš krátká", "fieldEmailNotValid": "Je vyžadována platná e-mailová adresa", "formConfirmExit": "Formulář obsahuje změny, pokud jej opustíte, změny budou ztraceny. Chcete stránku opustit?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/da-admin.json b/web-ui/src/main/resources/catalog/locales/da-admin.json index ca7b6b2bd32..a2daa51a5c9 100644 --- a/web-ui/src/main/resources/catalog/locales/da-admin.json +++ b/web-ui/src/main/resources/catalog/locales/da-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Når en ny tesaurus skabes, bliver et namespace baseret på dette mønster foreslået. ", "system/metadata/validation/removeSchemaLocation": "Fjern skemaplacering for validering", "system/metadata/validation/removeSchemaLocation-help": "Hvis sandt, fjernes schemaLocation-attributten i metadataens rod-element under valideringsprocessen og ved lagring af metadata. Det sikrer, at skemaplaceringen, der bruges til metadataene, altid er det lokale skema", - "system/metadata/history/enabled": "Aktiver håndtering af historiske poster", - "system/metadata/history/enabled-help": "Hvis denne er sand, registreres ethvert event, som ændrer metadata-instanserne.", + "metadata/history/enabled": "Aktiver håndtering af historiske poster", + "metadata/history/enabled-help": "Hvis denne er sand, registreres ethvert event, som ændrer metadata-instanserne.", "system/metadata/allThesaurus-help": "Hvis slået til, oprettes der en virtuel thesaurus, der indeholder alle søgeord i alle andre thesauri. Dette er nyttigt i editoren, når navnet på thesaurusen er ubetydeligt, og kun nøgleordet er vigtigt. For at sikre, at de korrekte nøgleordsblokke vedligeholdes (med korrekt thesaurus navn) aktiverer denne indstilling også en transformation i update-fixed-info, der vil tildele søgeordet i 'alle' thesaurus til nøgleordsblokke med den korrekte thesaurus som nøgleord.", "system/metadataprivs": "Metadata privilegier", "system/metadataprivs/usergrouponly": "Indstil kun privilegier til brugerens grupper", @@ -1491,4 +1491,4 @@ "fieldTooShort": "Værdien er for kort", "fieldEmailNotValid": "En valid e-mail er nødvendig", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/de-admin.json b/web-ui/src/main/resources/catalog/locales/de-admin.json index b9cf6cedc48..f36aaed19eb 100644 --- a/web-ui/src/main/resources/catalog/locales/de-admin.json +++ b/web-ui/src/main/resources/catalog/locales/de-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Basierend auf diesem Muster wird beim Erstellen eines neuen Thesaurus ein Namensraum vorgeschlagen. Das Muster kann die Platzhalter \\{\\{type\\}\\} und \\{\\{filename\\}\\} für die Ersetzung enthalten.", "system/metadata/validation/removeSchemaLocation": "Entfernen Sie den Schemapfad zur Validierung", "system/metadata/validation/removeSchemaLocation-help": "Wenn zutreffend (true), wird das schemaLocation-Attribut im Stammelement der Metadaten während der Validierung und beim Speichern der Metadaten entfernt. Dadurch wird sichergestellt, dass die für die Metadaten verwendete schemaLocation immer das lokale Schema ist", - "system/metadata/history/enabled": "Aktivieren der Aufzeichnung der History", - "system/metadata/history/enabled-help": "Wenn zutreffend (true), wird jedes Ereignis, das Metadatensätze ändert, in der Datenbank registriert.", + "metadata/history/enabled": "Aktivieren der Aufzeichnung der History", + "metadata/history/enabled-help": "Wenn zutreffend (true), wird jedes Ereignis, das Metadatensätze ändert, in der Datenbank registriert.", "system/metadata/allThesaurus-help": "Wenn das Feld ausgewählt ist, wird ein virtueller Thesaurus generiert, der alle Schlagwörter aller anderen Thesauri enthält. Dies ist nützlich im Editor, wenn der Name des Thesaurus unwichtig ist und nur die Schlagwörter von Bedeutung sind. Um sicherzustellen, dass die richtigen Schlagwort-Blöcke (des korrekten Thesaurus-Namens) bearbeitet werden, wird gleichzeitig eine Transformation in update-fixed-info.xsl durchgeführt.", "system/metadataprivs": "Metadaten Berechtigungen", "system/metadataprivs/usergrouponly": "Nur Berechtigungen an die Gruppen der Nutzer vergeben", diff --git a/web-ui/src/main/resources/catalog/locales/en-admin.json b/web-ui/src/main/resources/catalog/locales/en-admin.json index 36f51a3e9c1..11a480ae116 100644 --- a/web-ui/src/main/resources/catalog/locales/en-admin.json +++ b/web-ui/src/main/resources/catalog/locales/en-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Remove schema location for validation", "system/metadata/validation/removeSchemaLocation-help": "If true, the schemaLocation attribute in root element of the metadata is removed during validation and on metadata save. It ensures that the schemaLocation used for the metadata is always the local schema one", - "system/metadata/history/enabled": "Enable record history recording", - "system/metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", + "metadata/history/enabled": "Enable record history recording", + "metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", "system/metadata/allThesaurus-help": "If true then a virtual thesaurus will be created that contains all keywords in all other thesauri. This is useful in editor when the name of the thesaurus is unimportant and only the keyword is important. In order to ensure that the correct keyword blocks are maintained (with correct thesaurus name) enabling this will also enable a transform in update-fixed-info that will assign the keyword in the 'all' thesaurus to keyword blocks with the correct thesaurus for the keyword", "system/metadataprivs": "Metadata privileges", "system/metadataprivs/usergrouponly": "Only set privileges to user's groups", @@ -883,6 +883,9 @@ "metadata/publication/profilePublishMetadata-help": "Minimum user profile allowed to publish metadata (Reviewer or Administrator). The default value is Reviewer.", "metadata/publication/profileUnpublishMetadata": "Minimum user profile allowed to un-publish metadata", "metadata/publication/profileUnpublishMetadata-help": "Minimum user profile allowed to un-publish metadata (Reviewer or Administrator). The default value is Reviewer.", + "metadata/history": "Metadata History", + "metadata/history/accesslevel": "Select the minimum user profile allowed to view metadata history", + "metadata/history/accesslevel-help": "Select the user profile allowed to view metadata history (Registered User, Editor or Administrator). The Registered User configuration can view the history with view permission granted to the metadata record. The Editor configuration can view the history with editing permission granted to the metadata record. The default value is Editor.", "filterStatusByAuthor":"Status author", "filterStatusByOwner":"Status owner", "filterStatusByRecordId":"Record identifier", diff --git a/web-ui/src/main/resources/catalog/locales/es-admin.json b/web-ui/src/main/resources/catalog/locales/es-admin.json index fdc1654a22c..8e3c768e723 100644 --- a/web-ui/src/main/resources/catalog/locales/es-admin.json +++ b/web-ui/src/main/resources/catalog/locales/es-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Eliminar la ubicación del esquema para la validación", "system/metadata/validation/removeSchemaLocation-help": "Si es verdadero, el atributo schemaLocation en el elemento raíz del metadato se elimina durante la validación y el guardado del metadato. Asegura que schemaLocation utilizado para el metadato es siempre uno en el esquema local", - "system/metadata/history/enabled": "Habilitar el registro del historial de grabación", - "system/metadata/history/enabled-help": "Cuando es verdadero, todos los eventos que alteran los registros de metadatos se registran en la base de datos.", + "metadata/history/enabled": "Habilitar el registro del historial de grabación", + "metadata/history/enabled-help": "Cuando es verdadero, todos los eventos que alteran los registros de metadatos se registran en la base de datos.", "system/metadata/allThesaurus-help": "Si se habilita, un tesauro virtual se creará conteniendo todas las palabras clave de los otros tesauros. Esto es útil cuando el nombre del tesauro no es importante y sólo la palabra clave importa. Para asegurar que los bloques de palabras claves se mantienen (con el nombre correcto del tesauro), habilitar esto también habilita una transformación en update-fixed-info que asignará las palabras claves de este tesauro virtual a bloques con el tesauro correcto.", "system/metadataprivs": "Privilegios del metadato", "system/metadataprivs/usergrouponly": "Sólo ajustar privilegios a los grupos del usuario", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/fi-admin.json b/web-ui/src/main/resources/catalog/locales/fi-admin.json index bd0c62bcb51..d4e61418908 100644 --- a/web-ui/src/main/resources/catalog/locales/fi-admin.json +++ b/web-ui/src/main/resources/catalog/locales/fi-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Remove schema location for validation", "system/metadata/validation/removeSchemaLocation-help": "If true, the schemaLocation attribute in root element of the metadata is removed during validation and on metadata save. It ensures that the schemaLocation used for the metadata is always the local schema one", - "system/metadata/history/enabled": "Enable record history recording", - "system/metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", + "metadata/history/enabled": "Enable record history recording", + "metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", "system/metadata/allThesaurus-help": "Valittuna virtuaalinen, kaikkien tesaurusten avainsanat sisältävä, tesaurus luodaan. Tämä on hyödyllistä editorissa, jossa tesauruksen nimellä ei ole merkitystä. Lisäohje:\nIn order to ensure that the correct keyword blocks are maintained (with correct thesaurus name) enabling this will also enable a transform in update-fixed-info that will assign the keyword in the 'all' thesaurus to keyword blocks with the correct thesaurus for the keyword", "system/metadataprivs": "Oikeudet metatietoihin", "system/metadataprivs/usergrouponly": "Aseta oikeudet vain käyttäjän ryhmille", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/fr-admin.json b/web-ui/src/main/resources/catalog/locales/fr-admin.json index 6b1a8d4b1b7..a255b9b29b3 100644 --- a/web-ui/src/main/resources/catalog/locales/fr-admin.json +++ b/web-ui/src/main/resources/catalog/locales/fr-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "En fonction du modèle, lors de la création d'un nouveau thésaurus, un espace de nom sera proposé automatiquement. Le modèle peut contenir \\{\\{type\\}\\} et \\{\\{filename\\}\\} pour être substituté.", "system/metadata/validation/removeSchemaLocation": "Supprimer l'adresse du schéma XSD pour la validation (@xsi:schemaLocation).", "system/metadata/validation/removeSchemaLocation-help": "Si sélectionné, l'attribut schemaLocation est supprimé de l'élément racine du XML. Cela permet d'utiliser systématiquement le schéma XSD interne définit par le plugin.", - "system/metadata/history/enabled": "Activer l'historique des fiches", - "system/metadata/history/enabled-help": "Une fois actif, les événements réalisés sur la fiche sont enregistrés en base de données.", + "metadata/history/enabled": "Activer l'historique des fiches", + "metadata/history/enabled-help": "Une fois actif, les événements réalisés sur la fiche sont enregistrés en base de données.", "system/metadata/allThesaurus-help": "Si sélectionné, un thésaurus virtuel est créé contenant tous les mots clés de tous les thésaurus. Cela est utilisé dans l'éditeur quand le nom du thésaurus n'est pas important. Lorsque cette option est activée, les mots clés sont répartis dans les thésaurus lors de la sauvegarde (dans le processus update-fixed-info).", "system/metadataprivs": "Gestion des privilèges", "system/metadataprivs/usergrouponly": "Définir uniquement les privilèges pour les groupes de l'utilisateur", @@ -1491,4 +1491,4 @@ "fieldTooShort": "La valeur est trop courte", "fieldEmailNotValid": "Un email valide est requis", "formConfirmExit": "Le formulaire comporte des modifications, si vous quittez, les modifications seront perdues. Voulez-vous quitter la page ?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/is-admin.json b/web-ui/src/main/resources/catalog/locales/is-admin.json index 144ec29bbe0..53fb8d52e96 100644 --- a/web-ui/src/main/resources/catalog/locales/is-admin.json +++ b/web-ui/src/main/resources/catalog/locales/is-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Fjarlægja skema staðsetningu fyrir gæðamat", "system/metadata/validation/removeSchemaLocation-help": "Ef satt, er schemaLocation eigindið í rótarþætti lýsigagnanna fjarlægt á meðan á gæðamati stendur og lýsigögn vistuð. Það tryggir að schemaLocation sem notað er fyrir lýsigögnin er alltaf staðbundna skemað", - "system/metadata/history/enabled": "Enable record history recording", - "system/metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", + "metadata/history/enabled": "Enable record history recording", + "metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", "system/metadata/allThesaurus-help": "Ef rétt þá verður búinn til sýndarhugtakalisti sem inniheldur öll leitarorð annarra hugtakalista. Þetta er gagnlegt í breytiham þegar nafn hugtakalistans skiptir ekki máli og einungis leitarorðið er mikilvægt. Til að tryggja að réttum leitarorðabálki sé haldið við (með réttu nafni á hugtakalista) mun það að virkja þetta einnig virkja ummyndun í update-fixed-info sem mun úthluta leitarorðinu í 'all' hugtakalistanum í leitarorðalista með réttum hugtakalista fyrir leitarorðið", "system/metadataprivs": "Lýsigögn sérrettindi", "system/metadataprivs/usergrouponly": "Aðeins stilla sérrettindi á notendahópa", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/it-admin.json b/web-ui/src/main/resources/catalog/locales/it-admin.json index ea62e2ca157..7b03b902587 100644 --- a/web-ui/src/main/resources/catalog/locales/it-admin.json +++ b/web-ui/src/main/resources/catalog/locales/it-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Rimuovi il percorso dello schema per la validazione", "system/metadata/validation/removeSchemaLocation-help": "Se impostato, l'attributo schemaLocation nell'elemento root dei metadati viene rimosso durante la convalida e il salvataggio dei metadati. Per la validazione, auindi, verrà utilizzato uno schema locale", - "system/metadata/history/enabled": "Enable record history recording", - "system/metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", + "metadata/history/enabled": "Enable record history recording", + "metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", "system/metadata/allThesaurus-help": "Se è vero, verrà creato un thesaurus virtuale contenente tutte le parole chiave degli altri thesauri. Questo è utile nell'editor quando il nome del thesaurus non è importante e solo la parola chiave è importante. Per garantire che i blocchi di parole chiave corretti siano mantenuti (con il nome del thesaurus corretto), abilitando questa opzione si abiliterà anche una trasformazione in update-fixed-info che assegnerà la parola chiave nel thesaurus 'all' a blocchi di parole chiave con il thesaurus corretto per la parola chiave", "system/metadataprivs": "Privilegi sui metadati", "system/metadataprivs/usergrouponly": "Imposta solo i privilegi ai gruppi utente", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/ko-admin.json b/web-ui/src/main/resources/catalog/locales/ko-admin.json index 2f59a3d8684..e85104bd7fb 100644 --- a/web-ui/src/main/resources/catalog/locales/ko-admin.json +++ b/web-ui/src/main/resources/catalog/locales/ko-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "유효성 검증을 위해 스키마 위치 제거", "system/metadata/validation/removeSchemaLocation-help": "true인 경우 유효성 검사 및 메타 데이터 저장시 메타데이터의 루트 요소에 있는 schemaLocation 속성이 제거됩니다. 이는 메타데이터에 사용된 스키마 위치가 항상 로컬 스키마임을 보장합니다.", - "system/metadata/history/enabled": "Enable record history recording", - "system/metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", + "metadata/history/enabled": "Enable record history recording", + "metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", "system/metadata/allThesaurus-help": "만약 true이면 가상 동의어 사전은 다른 동의어 사전의 모든 티워드를 포함하여 생성될 것입니다. 이는 편집시에 동의어 사전의 유형은 중요하지 않고 키워드 만이 중요할때 유용하게 사용됩니다. 정확한 키워드 블럭의 (정확한 어구 이름으로) 유지되는 지를 확인합니다. 이것은 또한 키워드에 대한 올바른 시소러스와 블록을 키워드 'all'동의어 사전에 키워드를 할당합니다. update-fixed-info의 변환을 가능하게 할 것이다", "system/metadataprivs": "메타데이터 권한", "system/metadataprivs/usergrouponly": "사용자 그룹에 대한 권한 설정", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/nl-admin.json b/web-ui/src/main/resources/catalog/locales/nl-admin.json index 7098e1dc8e7..5be009254e7 100644 --- a/web-ui/src/main/resources/catalog/locales/nl-admin.json +++ b/web-ui/src/main/resources/catalog/locales/nl-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Op basis van dit patroon zal een namespace worden gesuggereerd wanneer een nieuwe thesaurus wordt aangemaakt. Het patroon kan placeholders \\{\\{type\\}\\} en \\{\\{filename\\}\\} bevatten ter vervanging.", "system/metadata/validation/removeSchemaLocation": "Verwijder schema locatie voorafgaand aan validatie", "system/metadata/validation/removeSchemaLocation-help": "Indien waar, wordt het attribuut schemaLocation in het hoofdelement van de metadata verwijderd tijdens validatie en bij het opslaan van metadata. Het zorgt ervoor dat de schemaLocation die voor de metadata wordt gebruikt altijd het lokale schema is", - "system/metadata/history/enabled": "Activeer opslag van record historie", - "system/metadata/history/enabled-help": "Alle mutatie activiteit rond een record wordt opgeslagen in de database", + "metadata/history/enabled": "Activeer opslag van record historie", + "metadata/history/enabled-help": "Alle mutatie activiteit rond een record wordt opgeslagen in de database", "system/metadata/allThesaurus-help": "Indien ingeschakeld zal een virtuele thesaurus aangemaakt worden die alle sleutelwoorden uit andere thesauri bevat. Dit is handig in de editor wanneer de naam van de thesaurus onbelangrijk is en enkel het sleutelwoord van belang is. Om ervoor te zorgen dat de correcte sleutelwoord blokken worden behouden (met een correcte thesaurus naam) zorgt dit er ook voor dat een transformatie in update-fixed-info ingeschakeld wordt dat het sleutelwoord in de 'all' thesaurus toewijst aan sleutelwoord blokken met de correcte thesaurus voor het sleutelwoord.", "system/metadataprivs": "metadata privileges", "system/metadataprivs/usergrouponly": "Stel alleen rechten in voor de groepen van de gebruiker", @@ -1491,4 +1491,4 @@ "fieldTooShort": "De waarde is te kort", "fieldEmailNotValid": "Een geldig email adres is vereist", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/pt-admin.json b/web-ui/src/main/resources/catalog/locales/pt-admin.json index b68f07da18b..4784be0b923 100644 --- a/web-ui/src/main/resources/catalog/locales/pt-admin.json +++ b/web-ui/src/main/resources/catalog/locales/pt-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Remover esquema de localização para validação", "system/metadata/validation/removeSchemaLocation-help": "Se verdadeiro, o atributo schemaLocation no elemento root do metadado é removido durante a validação e no metadado salvo. Isto assegura que o schemaLocation usado para o metadado é sempre igual ao esquema local.", - "system/metadata/history/enabled": "Habilitar gravação de histórico de registros", - "system/metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", + "metadata/history/enabled": "Habilitar gravação de histórico de registros", + "metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", "system/metadata/allThesaurus-help": "Se habilitado, um dicionário de sinônimos virtual que contém palavras-chave em todos outros dicionários será criado. Isso é útil no editor quando o nome do dicionário não é importante e somente a palavra-chave importa. A fim de garantir que blocos de palavra-chave corretos são mantidos (com o nome correto do dicionário) isso também habilitará a transformação em update-fixed-info que sa", "system/metadataprivs": "Privilégios de metadados", "system/metadataprivs/usergrouponly": "Só atribua privilégios aos grupos de usuários", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/ru-admin.json b/web-ui/src/main/resources/catalog/locales/ru-admin.json index dba01d5cf1c..5663ad59f9d 100644 --- a/web-ui/src/main/resources/catalog/locales/ru-admin.json +++ b/web-ui/src/main/resources/catalog/locales/ru-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Remove schema location for validation", "system/metadata/validation/removeSchemaLocation-help": "If true, the schemaLocation attribute in root element of the metadata is removed during validation and on metadata save. It ensures that the schemaLocation used for the metadata is always the local schema one", - "system/metadata/history/enabled": "Enable record history recording", - "system/metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", + "metadata/history/enabled": "Enable record history recording", + "metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", "system/metadata/allThesaurus-help": "If true then a virtual thesaurus will be created that contains all keywords in all other thesauri. This is useful in editor when the name of the thesaurus is unimportant and only the keyword is important. In order to ensure that the correct keyword blocks are maintained (with correct thesaurus name) enabling this will also enable a transform in update-fixed-info that will assign the keyword in the 'all' thesaurus to keyword blocks with the correct thesaurus for the keyword", "system/metadataprivs": "Metadata privileges", "system/metadataprivs/usergrouponly": "Only set privileges to user's groups", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/sk-admin.json b/web-ui/src/main/resources/catalog/locales/sk-admin.json index 4ff961ed1a5..cf674dc049b 100644 --- a/web-ui/src/main/resources/catalog/locales/sk-admin.json +++ b/web-ui/src/main/resources/catalog/locales/sk-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Remove schema location for validation", "system/metadata/validation/removeSchemaLocation-help": "If true, the schemaLocation attribute in root element of the metadata is removed during validation and on metadata save. It ensures that the schemaLocation used for the metadata is always the local schema one", - "system/metadata/history/enabled": "Enable record history recording", - "system/metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", + "metadata/history/enabled": "Enable record history recording", + "metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", "system/metadata/allThesaurus-help": "Pokiaľ to platí, bude vytvorený virtuálne tezaurus obsahujúci všetky kľúčové slová vo všetkých ostatných tezauroch. To je užitočné v editore, kedy nie je dôležitý názov tezauru, ale len kľúčové slovo. Aby bolo možné zaistiť uchovanie správnych skupín kľúčových slov (so správnym názvom tezauru) aktivácia tejto funkcie rovnako umožní transformáciu do aktualizovať-stanovené-info (update-fixed-info), ktorým sa priradí kľúčové slovo do tezauru 'všetky' ku skupinám kľúčových slov s odpovedajúcim tezaurom pre dané kľúčové slovo", "system/metadataprivs": "Výhradné práva k metaúdajom", "system/metadataprivs/usergrouponly": "Len nastaviť výhradné práva ku skupinám užívateľa", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/sv-admin.json b/web-ui/src/main/resources/catalog/locales/sv-admin.json index e63c28a9504..99d33f0dbd8 100644 --- a/web-ui/src/main/resources/catalog/locales/sv-admin.json +++ b/web-ui/src/main/resources/catalog/locales/sv-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Ta bort schemaplats för validering", "system/metadata/validation/removeSchemaLocation-help": "Om sann tas schemaLocation-attributet i rotelementet i metadata bort under validering och när metadata sparas. Det säkerställer att schemaLocation som används för metadata alltid är det lokala schemat", - "system/metadata/history/enabled": "Aktivera registrering av historik", - "system/metadata/history/enabled-help": "Om sann registreras varje händelse som ändrar metadataposter i databasen.", + "metadata/history/enabled": "Aktivera registrering av historik", + "metadata/history/enabled-help": "Om sann registreras varje händelse som ändrar metadataposter i databasen.", "system/metadata/allThesaurus-help": "Om sann kommer en virtuell tesaurus att skapas som innehåller alla nyckelord i alla andra tesaurier. Detta är användbart i redigeraren när namnet på ordboken är oviktigigt och bara nyckelordet är viktigt. För att säkerställa att de korrekta sökordsblocken upprätthålls (med rätt ordboksnamn), vilket också möjliggör en omvandling i uppdateringsfix-information som kommer att tilldela nyckelordet i "all" samtal till nyckelordblock med rätt tesaurus för nyckelord", "system/metadataprivs": "Metadatarättigheter", "system/metadataprivs/usergrouponly": "Ange rättigheter endast för användargrupper", @@ -1491,4 +1491,4 @@ "fieldTooShort": "Värdet är för kort", "fieldEmailNotValid": "En giltig emailadress krävs", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/locales/zh-admin.json b/web-ui/src/main/resources/catalog/locales/zh-admin.json index f99bdc29dbd..8a827cab4a2 100644 --- a/web-ui/src/main/resources/catalog/locales/zh-admin.json +++ b/web-ui/src/main/resources/catalog/locales/zh-admin.json @@ -733,8 +733,8 @@ "system/metadata/thesaurusNamespace-help": "Based on this pattern, when creating a new thesaurus a namespace will be suggested. The pattern can contain \\{\\{type\\}\\} and \\{\\{filename\\}\\} placeholder for substitution.", "system/metadata/validation/removeSchemaLocation": "Remove schema location for validation", "system/metadata/validation/removeSchemaLocation-help": "If true, the schemaLocation attribute in root element of the metadata is removed during validation and on metadata save. It ensures that the schemaLocation used for the metadata is always the local schema one", - "system/metadata/history/enabled": "Enable record history recording", - "system/metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", + "metadata/history/enabled": "Enable record history recording", + "metadata/history/enabled-help": "When true, every event that alters metadata records is registered in the database.", "system/metadata/allThesaurus-help": "If true then a virtual thesaurus will be created that contains all keywords in all other thesauri. This is useful in editor when the name of the thesaurus is unimportant and only the keyword is important. In order to ensure that the correct keyword blocks are maintained (with correct thesaurus name) enabling this will also enable a transform in update-fixed-info that will assign the keyword in the 'all' thesaurus to keyword blocks with the correct thesaurus for the keyword", "system/metadataprivs": "元数据特权", "system/metadataprivs/usergrouponly": "只设置用户组的权限", @@ -1491,4 +1491,4 @@ "fieldTooShort": "The value is too short", "fieldEmailNotValid": "A valid email address is required", "formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?" -} \ No newline at end of file +} diff --git a/web-ui/src/main/resources/catalog/templates/admin/settings/system.html b/web-ui/src/main/resources/catalog/templates/admin/settings/system.html index a57c94b85f0..091b81c689d 100644 --- a/web-ui/src/main/resources/catalog/templates/admin/settings/system.html +++ b/web-ui/src/main/resources/catalog/templates/admin/settings/system.html @@ -254,6 +254,28 @@

{{section2.name | translate}}

+ +
diff --git a/web/src/main/webapp/WEB-INF/classes/setup/sql/data/data-db-default.sql b/web/src/main/webapp/WEB-INF/classes/setup/sql/data/data-db-default.sql index 4d09dae7ba7..e2fb6a8a901 100644 --- a/web/src/main/webapp/WEB-INF/classes/setup/sql/data/data-db-default.sql +++ b/web/src/main/webapp/WEB-INF/classes/setup/sql/data/data-db-default.sql @@ -652,7 +652,7 @@ INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('metadata/vcs/enable', 'false', 2, 9161, 'n'); INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/metadata/validation/removeSchemaLocation', 'false', 2, 9170, 'n'); -INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/metadata/history/enabled', 'false', 2, 9171, 'n'); +INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('metadata/history/enabled', 'false', 2, 9171, 'n'); INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/metadatacreate/generateUuid', 'true', 2, 9100, 'n'); INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/metadatacreate/preferredGroup', '', 1, 9105, 'n'); INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/metadatacreate/preferredTemplate', '', 0, 9106, 'n'); @@ -697,6 +697,8 @@ INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('metada INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('metadata/batchediting/accesslevel', 'Editor', 0, 12020, 'n'); +INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('metadata/history/accesslevel', 'Editor', 0, 12021, 'n'); + INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('metadata/delete/profilePublishedMetadata', 'Editor', 0, 12011, 'n'); INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('metadata/publication/profilePublishMetadata', 'Reviewer', 0, 12021, 'n'); diff --git a/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v444/migrate-default.sql b/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v444/migrate-default.sql index 920898cac19..4b8ecffc2f9 100644 --- a/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v444/migrate-default.sql +++ b/web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v444/migrate-default.sql @@ -2,3 +2,6 @@ UPDATE Metadata SET data = replace(data, 'http://standards.iso.org/iso/19115/-3/ UPDATE Settings SET value='4.4.4' WHERE name='system/platform/version'; UPDATE Settings SET value='SNAPSHOT' WHERE name='system/platform/subVersion'; + +UPDATE settings SET name='metadata/history/enabled' WHERE name='system/metadata/history/enabled' +INSERT INTO Settings (name, value, datatype, position, internal) SELECT distinct 'metadata/history/accesslevel', 'Editor', 0, 12021, 'n' from settings WHERE NOT EXISTS (SELECT name FROM Settings WHERE name = 'metadata/history/accesslevel');