Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
ISAICP-6584: Integrate Facets Form & Date Range Widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
saidatom committed Sep 30, 2021
1 parent 4004852 commit 128d303
Show file tree
Hide file tree
Showing 20 changed files with 284 additions and 886 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@
"Configurable dropdown child prefix. @see https://www.drupal.org/project/facets/issues/3214662": "https://git.drupalcode.org/project/facets/-/merge_requests/20.diff",
"SA-CONTRIB-2021-008. @see https://www.drupal.org/sa-contrib-2021-008": "https://www.drupal.org/files/issues/2021-05-17/3213582-facets-1.6-1.7.patch"
},
"drupal/facets_form": {
"Implement calculate dependencies. @see https://www.drupal.org/project/facets_form/issues/3230468": "https://git.drupalcode.org/project/facets_form/-/merge_requests/15.diff"
},
"drupal/honeypot": {
"Behat integration. @see https://www.drupal.org/project/honeypot/issues/3059040": "https://www.drupal.org/files/issues/2020-09-09/3059040-31.patch",
"Provide ways to clean up old honeypot_time_restriction values @see https://www.drupal.org/project/honeypot/issues/2997609": "https://git.drupalcode.org/project/honeypot/-/merge_requests/2.diff"
Expand Down
29 changes: 0 additions & 29 deletions config/sync/block.block.entity_bundle_facet.yml

This file was deleted.

37 changes: 37 additions & 0 deletions config/sync/block.block.facetformviewsearchdisplaypage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
uuid: 33e5f26c-41da-4f9b-85a8-144a7b0bfe07
langcode: en
status: true
dependencies:
config:
- facets.facet.creation_date
- facets.facet.group
- facets.facet.spatial_coverage
- facets.facet.topic
- facets.facet.type
module:
- facets_form
- system
theme:
- joinup_theme
id: facetformviewsearchdisplaypage
theme: joinup_theme
region: sidebar_left
weight: 0
provider: null
plugin: 'facets_form:search_api:views_page__search__page_1'
settings:
id: 'facets_form:search_api:views_page__search__page_1'
label: 'Facet form: View Search, display Page'
provider: facets_form
label_display: '0'
button:
label:
submit: Search
reset: 'Clear filters'
facets: { }
visibility:
request_path:
id: request_path
pages: "/search\r\n/search/*"
negate: false
context_mapping: { }
29 changes: 0 additions & 29 deletions config/sync/block.block.group_facet.yml

This file was deleted.

29 changes: 0 additions & 29 deletions config/sync/block.block.spatial_coverage_facet.yml

This file was deleted.

2 changes: 2 additions & 0 deletions config/sync/block.block.three_dots_menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ uuid: 998c6074-0e67-43ac-b241-615239dee76a
langcode: en
status: true
dependencies:
module:
- joinup_core
theme:
- joinup_theme
id: three_dots_menu
Expand Down
29 changes: 0 additions & 29 deletions config/sync/block.block.topic_facet.yml

This file was deleted.

2 changes: 2 additions & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ module:
eu_sic: 0
eupl: 0
facets: 0
facets_form: 0
facets_form_date_range: 0
facets_summary: 0
field: 0
field_delimiter: 0
Expand Down
63 changes: 63 additions & 0 deletions config/sync/facets.facet.creation_date.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
uuid: d23291d8-c77d-4c38-a3ae-d6c6d900d0c3
langcode: en
status: true
dependencies:
config:
- search_api.index.published
- views.view.search
module:
- search_api
id: creation_date
name: 'Creation Date'
url_alias: creation_date
weight: 0
min_count: 1
show_only_one_result: true
field_identifier: rdf_created
facet_source_id: 'search_api:views_page__search__page_1'
widget:
type: facets_form_date_range
config:
date_type: date
label:
from: 'Date from'
to: 'Date to'
date_format:
type: date_only
custom: ''
show_numbers: false
query_operator: or
use_hierarchy: false
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
exclude: false
only_visible_when_facet_source_is_visible: true
processor_configs:
active_widget_order:
processor_id: active_widget_order
weights:
sort: -10
settings:
sort: DESC
count_widget_order:
processor_id: count_widget_order
weights:
sort: -10
settings:
sort: DESC
display_value_widget_order:
processor_id: display_value_widget_order
weights:
sort: -10
settings:
sort: ASC
url_processor_handler:
processor_id: url_processor_handler
weights:
pre_query: 50
build: -10
settings: { }
empty_behavior:
behavior: none
show_title: true
11 changes: 6 additions & 5 deletions config/sync/facets.facet.group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ show_only_one_result: true
field_identifier: entity_groups
facet_source_id: 'search_api:views_page__search__page_1'
widget:
type: dropdown
type: facets_form_dropdown
config:
show_numbers: true
default_option_label: 'Any Collection or Solution'
arbitrary_facet_plugin: _none
child_items_prefix: '-'
disabled_on_empty: false
show_numbers: true
query_operator: or
use_hierarchy: false
expand_hierarchy: false
Expand All @@ -34,7 +35,7 @@ processor_configs:
weights:
sort: -2
settings:
sort: DESC
sort: ASC
aggregated_entity_reference_label:
processor_id: aggregated_entity_reference_label
weights:
Expand All @@ -52,7 +53,7 @@ processor_configs:
weights:
sort: -1
settings:
sort: DESC
sort: ASC
display_value_widget_order:
processor_id: display_value_widget_order
weights:
Expand Down
23 changes: 12 additions & 11 deletions config/sync/facets.facet.spatial_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ dependencies:
id: spatial_coverage
name: 'Geographic coverage'
url_alias: spatial_coverage
weight: 0
weight: -1
min_count: 1
show_only_one_result: true
field_identifier: spatial_coverage
facet_source_id: 'search_api:views_page__search__page_1'
widget:
type: dropdown
type: facets_form_dropdown
config:
show_numbers: true
default_option_label: 'Any location'
arbitrary_facet_plugin: _none
child_items_prefix: '-'
disabled_on_empty: false
show_numbers: true
query_operator: or
use_hierarchy: false
expand_hierarchy: false
Expand All @@ -34,36 +35,36 @@ processor_configs:
weights:
sort: -8
settings:
sort: DESC
sort: ASC
aggregated_entity_reference_label:
processor_id: aggregated_entity_reference_label
weights:
build: 0
build: -10
settings: { }
count_limit:
processor_id: count_limit
weights:
build: -2
build: 5
settings:
minimum_items: 1
maximum_items: null
count_widget_order:
processor_id: count_widget_order
weights:
sort: -9
sort: -10
settings:
sort: DESC
sort: ASC
display_value_widget_order:
processor_id: display_value_widget_order
weights:
sort: -10
sort: -8
settings:
sort: ASC
url_processor_handler:
processor_id: url_processor_handler
weights:
pre_query: -10
build: -1
build: 5
settings: { }
empty_behavior:
behavior: none
Expand Down
Loading

0 comments on commit 128d303

Please sign in to comment.