From 10dfe2dfee8f4b31d88dbe566240ff3cb2a035e8 Mon Sep 17 00:00:00 2001 From: Mattia Giupponi Date: Mon, 8 Mar 2021 16:38:17 +0100 Subject: [PATCH 1/4] Doc for Mandatory fields in editor --- basic/settings/index.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/basic/settings/index.rst b/basic/settings/index.rst index 1fa64b8d..6c85d235 100644 --- a/basic/settings/index.rst +++ b/basic/settings/index.rst @@ -2173,6 +2173,33 @@ TINYMCE_DEFAULT_CONFIG U = +UI_REQUIRED_FIELDS +-------------- +If this option is enabled, the input selected (we are referring about the onece present in the Optional Metadata tab on Metadata Wizard) will become Mandatory. + +The fields that can be mandatory are: + + | id_resource-edition => Label: Edition + | id_resource-purpose => Label: Purpose + | id_resource-supplemental_information => Label: Supplemental information + | id_resource-temporal_extent_start_pickers => Label: temporal extent start + | id_resource-temporal_extent_end => Label: temporal extent end + | id_resource-maintenance_frequency => Label: Maintenance frequency + | id_resource-spatial_representation_type => Label: Spatial representation type + +If at least one on the above ids is set in this configuration, the panel header will change from `Optional` to `Mandatory` + +With configuration disabled: + + figure:: admin/admin_panel/img/ui_required_fields_disabled.png + + | Confiugration Example: + | UI_REQUIRED_FIELDS = ['id_resource-edition'] + +With configuration enabled: + + figure:: admin/admin_panel/img/ui_required_fields_enabled.png + UNOCONV_ENABLE -------------- From 82817dc7ed915652dd5010ed59fc9853f38ab25c Mon Sep 17 00:00:00 2001 From: Mattia Giupponi Date: Mon, 8 Mar 2021 16:38:31 +0100 Subject: [PATCH 2/4] Doc for Mandatory fields in editor --- basic/settings/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/settings/index.rst b/basic/settings/index.rst index 6c85d235..4eb98801 100644 --- a/basic/settings/index.rst +++ b/basic/settings/index.rst @@ -2174,7 +2174,7 @@ U = UI_REQUIRED_FIELDS --------------- +------------------ If this option is enabled, the input selected (we are referring about the onece present in the Optional Metadata tab on Metadata Wizard) will become Mandatory. The fields that can be mandatory are: From 2c19d9517493023a74c28689b6958f4d57e12449 Mon Sep 17 00:00:00 2001 From: Mattia Giupponi Date: Mon, 8 Mar 2021 16:52:19 +0100 Subject: [PATCH 3/4] Doc for Mandatory fields in editor --- basic/settings/index.rst | 7 ------- 1 file changed, 7 deletions(-) diff --git a/basic/settings/index.rst b/basic/settings/index.rst index 4eb98801..d7991bde 100644 --- a/basic/settings/index.rst +++ b/basic/settings/index.rst @@ -2189,16 +2189,9 @@ The fields that can be mandatory are: If at least one on the above ids is set in this configuration, the panel header will change from `Optional` to `Mandatory` -With configuration disabled: - - figure:: admin/admin_panel/img/ui_required_fields_disabled.png - | Confiugration Example: | UI_REQUIRED_FIELDS = ['id_resource-edition'] -With configuration enabled: - - figure:: admin/admin_panel/img/ui_required_fields_enabled.png UNOCONV_ENABLE -------------- From 70704a53089a1598c94cfb7598fe9ed580c4b3a8 Mon Sep 17 00:00:00 2001 From: Mattia Giupponi Date: Mon, 8 Mar 2021 18:13:15 +0100 Subject: [PATCH 4/4] #84: fix typo --- basic/settings/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/settings/index.rst b/basic/settings/index.rst index d7991bde..038fe446 100644 --- a/basic/settings/index.rst +++ b/basic/settings/index.rst @@ -2175,7 +2175,7 @@ U UI_REQUIRED_FIELDS ------------------ -If this option is enabled, the input selected (we are referring about the onece present in the Optional Metadata tab on Metadata Wizard) will become Mandatory. +If this option is enabled, the input selected (we are referring to the one present in the optional Metadata-Tab on the Metadata-Wizard) will become mandatory. The fields that can be mandatory are: