diff --git a/contrib/occtax/backend/occtax/conf_schema_toml.py b/contrib/occtax/backend/occtax/conf_schema_toml.py index f3e6b8783c..edf6147c0e 100644 --- a/contrib/occtax/backend/occtax/conf_schema_toml.py +++ b/contrib/occtax/backend/occtax/conf_schema_toml.py @@ -191,3 +191,4 @@ class GnModuleSchemaConf(Schema): ADD_MEDIA_IN_EXPORT = fields.Boolean(load_default=False) ID_LIST_HABITAT = fields.Integer(load_default=None) CD_TYPO_HABITAT = fields.Integer(load_default=None) + ADVANCED_DETAILS_OCCURRENCE_EXPANDED = fields.Boolean(load_default=False) diff --git a/contrib/occtax/frontend/app/occtax-form/occurrence/occurrence.component.ts b/contrib/occtax/frontend/app/occtax-form/occurrence/occurrence.component.ts index 047506c63f..cda1ab9bf1 100644 --- a/contrib/occtax/frontend/app/occtax-form/occurrence/occurrence.component.ts +++ b/contrib/occtax/frontend/app/occtax-form/occurrence/occurrence.component.ts @@ -77,7 +77,9 @@ export class OcctaxFormOccurrenceComponent implements OnInit, OnDestroy { ) .subscribe((display: boolean) => (this.displayProofFromElements = display)) ); - + this.advanced = this.config.OCCTAX.ADVANCED_DETAILS_OCCURRENCE_EXPANDED + ? 'expanded' + : 'collapsed'; this.initTaxrefSearch(); } diff --git a/contrib/occtax/occtax_config.toml.example b/contrib/occtax/occtax_config.toml.example index 6f05007c01..6acedbcd02 100644 --- a/contrib/occtax/occtax_config.toml.example +++ b/contrib/occtax/occtax_config.toml.example @@ -24,6 +24,9 @@ DATE_FORM_WITH_TODAY = true # Displays the possibility for the user to indicate a default value for the different fields of the form ENABLE_SETTINGS_TOOLS = false +# Automatically expand the advanced button when adding a taxon +ADVANCED_DETAILS_OCCURRENCE_EXPANDED = false + # -------- MAPLIST PARAMETER ------------ # Zoom level on the map from which you can add point/line/polygon