From 97f6ff9f21dd773ed54d01df0d141d43b95bc168 Mon Sep 17 00:00:00 2001 From: blagoja Date: Thu, 24 Oct 2024 09:44:25 +0200 Subject: [PATCH] Remove organization and group facet and update dataset schema --- ckanext/alisea/alisea_dataset_schema.yaml | 8 ++++---- ckanext/alisea/plugin.py | 6 ------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/ckanext/alisea/alisea_dataset_schema.yaml b/ckanext/alisea/alisea_dataset_schema.yaml index 1eb9dae..3b3289c 100644 --- a/ckanext/alisea/alisea_dataset_schema.yaml +++ b/ckanext/alisea/alisea_dataset_schema.yaml @@ -202,7 +202,7 @@ dataset_fields: - field_name: agroecology_category label: - en: Agroecology Category + en: Agroecology categories vi: km: my_MM: @@ -324,7 +324,7 @@ dataset_fields: lo: - field_name: agroecology_keyword - label: Agroecology Keyword + label: Agroecology keywords form_snippet: agroecology_keyword.html preset: multiple_select choices: @@ -1819,7 +1819,7 @@ dataset_fields: preset: dataset_organization - field_name: author - label: Author + label: Authors form_placeholder: Joe Bloggs display_property: dc:creator @@ -2019,7 +2019,7 @@ dataset_fields: - field_name : spatial - label: Spatial + label: Spatial information form_placeholder : {\"type\": \"Point\", \"coordinates\": [8.609762390208658, 47.40381297881529]} - field_name: country diff --git a/ckanext/alisea/plugin.py b/ckanext/alisea/plugin.py index a5e703c..44246d2 100644 --- a/ckanext/alisea/plugin.py +++ b/ckanext/alisea/plugin.py @@ -45,8 +45,6 @@ def dataset_facets(self, facet_dict, package_type): ("type_of_document", "Document Type"), ("type_of_alisea_product", "Type of Alisea Product"), ("language", "Language"), - ("organization", "Organizations"), - ("groups", "Groups"), ("agroecology_category", "Agroecology Category"), ("agroecology_keyword", "Agroecology Keyword"), ("res_format", "Format"), @@ -60,8 +58,6 @@ def group_facets(self, facet_dict, group_type, package_type): ("type_of_document", "Document Type"), ("type_of_alisea_product", "Type of Alisea Product"), ("language", "Language"), - ("organization", "Organizations"), - ("groups", "Groups"), ("agroecology_category", "Agroecology Category"), ("agroecology_keyword", "Agroecology Keyword"), ("res_format", "Format"), @@ -75,8 +71,6 @@ def organization_facets(self, facet_dict, organization_type, package_type): ("type_of_document", "Document Type"), ("type_of_alisea_product", "Type of Alisea Product"), ("language", "Language"), - ("organization", "Organizations"), - ("groups", "Groups"), ("agroecology_category", "Agroecology Category"), ("agroecology_keyword", "Agroecology Keyword"), ("res_format", "Format"),