From 4064ce9bd5fc2b2b1fa026734c396ebd0196069d Mon Sep 17 00:00:00 2001 From: hel-platta-automation <95360595+hel-platta-automation@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:59:39 +0000 Subject: [PATCH] Update configuration --- composer.lock | 24 +++---- ...m_display.paragraph.event_list.default.yml | 13 +++- ...my_term.linked_events_keywords.default.yml | 72 +++++++++++++++++++ ...w_display.paragraph.event_list.default.yml | 12 +++- ...my_term.linked_events_keywords.default.yml | 27 +++++++ ...graph.event_list.field_filter_keywords.yml | 31 ++++++++ ...inked_events_keywords.field_keyword_id.yml | 21 ++++++ ...torage.paragraph.field_filter_keywords.yml | 22 ++++++ ...storage.taxonomy_term.field_keyword_id.yml | 23 ++++++ ...graph.event_list.field_filter_keywords.yml | 2 + ...nomy.vocabulary.linked_events_keywords.yml | 10 +++ 11 files changed, 243 insertions(+), 14 deletions(-) create mode 100644 conf/cmi/core.entity_form_display.taxonomy_term.linked_events_keywords.default.yml create mode 100644 conf/cmi/core.entity_view_display.taxonomy_term.linked_events_keywords.default.yml create mode 100644 conf/cmi/field.field.paragraph.event_list.field_filter_keywords.yml create mode 100644 conf/cmi/field.field.taxonomy_term.linked_events_keywords.field_keyword_id.yml create mode 100644 conf/cmi/field.storage.paragraph.field_filter_keywords.yml create mode 100644 conf/cmi/field.storage.taxonomy_term.field_keyword_id.yml create mode 100644 conf/cmi/language/fi/field.field.paragraph.event_list.field_filter_keywords.yml create mode 100644 conf/cmi/taxonomy.vocabulary.linked_events_keywords.yml diff --git a/composer.lock b/composer.lock index b315eee7..2db8178a 100644 --- a/composer.lock +++ b/composer.lock @@ -3732,16 +3732,16 @@ }, { "name": "drupal/hdbt", - "version": "6.4.24", + "version": "6.4.25", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-hdbt.git", - "reference": "fe102ccdea777e304bcbae1cc3cc15eff201c7f4" + "reference": "fda238d677f4b044b239eb4916a5fd4a0a7e0eb5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/fe102ccdea777e304bcbae1cc3cc15eff201c7f4", - "reference": "fe102ccdea777e304bcbae1cc3cc15eff201c7f4", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/fda238d677f4b044b239eb4916a5fd4a0a7e0eb5", + "reference": "fda238d677f4b044b239eb4916a5fd4a0a7e0eb5", "shasum": "" }, "require": { @@ -3759,10 +3759,10 @@ "Drupal" ], "support": { - "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/6.4.24", + "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/6.4.25", "issues": "https://github.com/City-of-Helsinki/drupal-hdbt/issues" }, - "time": "2024-03-11T18:00:19+00:00" + "time": "2024-03-12T12:56:27+00:00" }, { "name": "drupal/hdbt_admin", @@ -4055,16 +4055,16 @@ }, { "name": "drupal/helfi_platform_config", - "version": "4.3.19", + "version": "4.3.20", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config.git", - "reference": "cd47f23c5db588c3b504299467fa6862953669fb" + "reference": "9d7def6814bf8a94f662f4fd983cb8fe5114ae03" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/cd47f23c5db588c3b504299467fa6862953669fb", - "reference": "cd47f23c5db588c3b504299467fa6862953669fb", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/9d7def6814bf8a94f662f4fd983cb8fe5114ae03", + "reference": "9d7def6814bf8a94f662f4fd983cb8fe5114ae03", "shasum": "" }, "require": { @@ -4174,10 +4174,10 @@ ], "description": "HELfi platform config", "support": { - "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/4.3.19", + "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/4.3.20", "issues": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/issues" }, - "time": "2024-03-11T12:22:35+00:00" + "time": "2024-03-12T08:04:15+00:00" }, { "name": "drupal/helfi_proxy", diff --git a/conf/cmi/core.entity_form_display.paragraph.event_list.default.yml b/conf/cmi/core.entity_form_display.paragraph.event_list.default.yml index 8976cc2c..844868e3 100644 --- a/conf/cmi/core.entity_form_display.paragraph.event_list.default.yml +++ b/conf/cmi/core.entity_form_display.paragraph.event_list.default.yml @@ -9,6 +9,7 @@ dependencies: - field.field.paragraph.event_list.field_event_list_title - field.field.paragraph.event_list.field_event_location - field.field.paragraph.event_list.field_event_time + - field.field.paragraph.event_list.field_filter_keywords - field.field.paragraph.event_list.field_free_events - field.field.paragraph.event_list.field_remote_events - paragraphs.paragraphs_type.event_list @@ -16,7 +17,7 @@ dependencies: - link - text _core: - default_config_hash: bGb0ZQ38-NxHtZ1rrdqclYHeStlwA5q3ucy5Wpnb0ng + default_config_hash: 26rzwNcMiiF5Bucl9iUliZYoL4vZcdmdNkYBAr9DYOU id: paragraph.event_list.default targetEntityType: paragraph bundle: event_list @@ -66,6 +67,16 @@ content: settings: display_label: true third_party_settings: { } + field_filter_keywords: + type: entity_reference_autocomplete_tags + weight: 8 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } field_free_events: type: boolean_checkbox weight: 7 diff --git a/conf/cmi/core.entity_form_display.taxonomy_term.linked_events_keywords.default.yml b/conf/cmi/core.entity_form_display.taxonomy_term.linked_events_keywords.default.yml new file mode 100644 index 00000000..37b0a8c1 --- /dev/null +++ b/conf/cmi/core.entity_form_display.taxonomy_term.linked_events_keywords.default.yml @@ -0,0 +1,72 @@ +uuid: d3bdb49e-461c-4a0f-a88c-c34eb54f7101 +langcode: en +status: true +dependencies: + config: + - field.field.taxonomy_term.linked_events_keywords.field_keyword_id + - taxonomy.vocabulary.linked_events_keywords + module: + - hdbt_admin_tools + - path + - readonly_field_widget +_core: + default_config_hash: wrJ7qU6IE5H0AiZu6m8w7XCBXT-dqOntJPqFqR0iyU8 +id: taxonomy_term.linked_events_keywords.default +targetEntityType: taxonomy_term +bundle: linked_events_keywords +mode: default +content: + description: + type: formatted_text_character_counter + weight: 0 + region: content + settings: + counter_step: 160 + counter_total: 200 + rows: 5 + placeholder: '' + third_party_settings: { } + field_keyword_id: + type: readonly_field_widget + weight: 101 + region: content + settings: + label: above + formatter_type: null + formatter_settings: { } + show_description: false + third_party_settings: { } + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + name: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + status: + type: boolean_checkbox + weight: 100 + region: content + settings: + display_label: true + third_party_settings: { } + translation: + weight: 10 + region: content + settings: { } + third_party_settings: { } +hidden: { } diff --git a/conf/cmi/core.entity_view_display.paragraph.event_list.default.yml b/conf/cmi/core.entity_view_display.paragraph.event_list.default.yml index 3a812553..fb89e715 100644 --- a/conf/cmi/core.entity_view_display.paragraph.event_list.default.yml +++ b/conf/cmi/core.entity_view_display.paragraph.event_list.default.yml @@ -9,6 +9,7 @@ dependencies: - field.field.paragraph.event_list.field_event_list_title - field.field.paragraph.event_list.field_event_location - field.field.paragraph.event_list.field_event_time + - field.field.paragraph.event_list.field_filter_keywords - field.field.paragraph.event_list.field_free_events - field.field.paragraph.event_list.field_remote_events - paragraphs.paragraphs_type.event_list @@ -16,7 +17,7 @@ dependencies: - options - text _core: - default_config_hash: dMZ_8jKpOaA7CkuxlB2baa1apQcQ_vFlXM04jq4bqQY + default_config_hash: klW1qrhnmScBqsz4kDhFjtI4wmrMjLZynRsx9475Egs id: paragraph.event_list.default targetEntityType: paragraph bundle: event_list @@ -64,6 +65,14 @@ content: third_party_settings: { } weight: 3 region: content + field_filter_keywords: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 6 + region: content field_free_events: type: boolean label: above @@ -86,3 +95,4 @@ content: region: content hidden: field_api_url: true + search_api_excerpt: true diff --git a/conf/cmi/core.entity_view_display.taxonomy_term.linked_events_keywords.default.yml b/conf/cmi/core.entity_view_display.taxonomy_term.linked_events_keywords.default.yml new file mode 100644 index 00000000..968b3c93 --- /dev/null +++ b/conf/cmi/core.entity_view_display.taxonomy_term.linked_events_keywords.default.yml @@ -0,0 +1,27 @@ +uuid: 19cd3ce0-e5a8-4db8-ab50-ae7bde5fa981 +langcode: en +status: true +dependencies: + config: + - field.field.taxonomy_term.linked_events_keywords.field_keyword_id + - taxonomy.vocabulary.linked_events_keywords + module: + - text +_core: + default_config_hash: fBcG1sEoN3MYNH4WUM9M_e2jo304Kha_sUVu26s05ig +id: taxonomy_term.linked_events_keywords.default +targetEntityType: taxonomy_term +bundle: linked_events_keywords +mode: default +content: + description: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 0 + region: content +hidden: + field_keyword_id: true + langcode: true + search_api_excerpt: true diff --git a/conf/cmi/field.field.paragraph.event_list.field_filter_keywords.yml b/conf/cmi/field.field.paragraph.event_list.field_filter_keywords.yml new file mode 100644 index 00000000..65279cf3 --- /dev/null +++ b/conf/cmi/field.field.paragraph.event_list.field_filter_keywords.yml @@ -0,0 +1,31 @@ +uuid: 05609557-0317-49a6-b2dd-1e7a2e69c10b +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_filter_keywords + - paragraphs.paragraphs_type.event_list + - taxonomy.vocabulary.linked_events_keywords +_core: + default_config_hash: zOO1RpDPCcNOWimUEMWLWWTZGDfOxr1BadD0vxMwZl8 +id: paragraph.event_list.field_filter_keywords +field_name: field_filter_keywords +entity_type: paragraph +bundle: event_list +label: Topics +description: 'Select options for "filter by topic" filter. The filter is hidden if no keywords are selected.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + linked_events_keywords: linked_events_keywords + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/conf/cmi/field.field.taxonomy_term.linked_events_keywords.field_keyword_id.yml b/conf/cmi/field.field.taxonomy_term.linked_events_keywords.field_keyword_id.yml new file mode 100644 index 00000000..3c5d8bda --- /dev/null +++ b/conf/cmi/field.field.taxonomy_term.linked_events_keywords.field_keyword_id.yml @@ -0,0 +1,21 @@ +uuid: f04d1d15-8a22-440d-aa3f-1af424df9124 +langcode: en +status: true +dependencies: + config: + - field.storage.taxonomy_term.field_keyword_id + - taxonomy.vocabulary.linked_events_keywords +_core: + default_config_hash: VHWaAjAYzxCy2U7_c3Vc3MAfurLC2QCPAimZVamsAuU +id: taxonomy_term.linked_events_keywords.field_keyword_id +field_name: field_keyword_id +entity_type: taxonomy_term +bundle: linked_events_keywords +label: 'Keyword ID' +description: 'Linked events keyword id.' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/conf/cmi/field.storage.paragraph.field_filter_keywords.yml b/conf/cmi/field.storage.paragraph.field_filter_keywords.yml new file mode 100644 index 00000000..05ad130e --- /dev/null +++ b/conf/cmi/field.storage.paragraph.field_filter_keywords.yml @@ -0,0 +1,22 @@ +uuid: 2950aba3-734a-4bd3-9791-775aceae8e5e +langcode: en +status: true +dependencies: + module: + - paragraphs + - taxonomy +_core: + default_config_hash: p5gLAIXKUuxZdeUFP1juUwV9fUPwzJ7uRLik5wOAK6Y +id: paragraph.field_filter_keywords +field_name: field_filter_keywords +entity_type: paragraph +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/conf/cmi/field.storage.taxonomy_term.field_keyword_id.yml b/conf/cmi/field.storage.taxonomy_term.field_keyword_id.yml new file mode 100644 index 00000000..c4f0a47e --- /dev/null +++ b/conf/cmi/field.storage.taxonomy_term.field_keyword_id.yml @@ -0,0 +1,23 @@ +uuid: 8c76f060-07d3-4c16-b305-cc4ade3105a9 +langcode: en +status: true +dependencies: + module: + - taxonomy +_core: + default_config_hash: 7xItqwaMwhMih7aOv7ihiQx1wvkRGKrWiRJLJnM3RYA +id: taxonomy_term.field_keyword_id +field_name: field_keyword_id +entity_type: taxonomy_term +type: string +settings: + max_length: 255 + case_sensitive: false + is_ascii: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/conf/cmi/language/fi/field.field.paragraph.event_list.field_filter_keywords.yml b/conf/cmi/language/fi/field.field.paragraph.event_list.field_filter_keywords.yml new file mode 100644 index 00000000..048db90c --- /dev/null +++ b/conf/cmi/language/fi/field.field.paragraph.event_list.field_filter_keywords.yml @@ -0,0 +1,2 @@ +label: Asiasanat +description: 'Valitse "suodata asiasanoilla" -suodattimen vaihtoehdot. Suodatinta ei näytetä jos ainuttakaan asiasanaa ei ole valittu.' diff --git a/conf/cmi/taxonomy.vocabulary.linked_events_keywords.yml b/conf/cmi/taxonomy.vocabulary.linked_events_keywords.yml new file mode 100644 index 00000000..6b0b8609 --- /dev/null +++ b/conf/cmi/taxonomy.vocabulary.linked_events_keywords.yml @@ -0,0 +1,10 @@ +uuid: 757cd796-00f7-445a-907d-0977ffe099be +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: e0eqaMehV63Hmtfc20QLyE7IGXuwqhSMNZg9hLgizfM +name: 'Linked Events Keywords' +vid: linked_events_keywords +description: 'Keywords from yso dataset.' +weight: 0