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 28, 2021
1 parent a226e7a commit b3770f0
Show file tree
Hide file tree
Showing 24 changed files with 530 additions and 904 deletions.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"drupal/entity_legal": "^3.0.0-beta2",
"drupal/error_page": "^1.0",
"drupal/facets": "1.6.0",
"drupal/facets_form": "1.x-dev@dev",
"drupal/field_delimiter": "^1.1",
"drupal/field_group": "^3.1",
"drupal/field_permissions": "^1.1",
Expand Down Expand Up @@ -283,6 +284,9 @@
"Facet Summary for Facet Items with a set dependency. @see https://www.drupal.org/node/2873480": "resources/patch/facet_summary_for_facet-2873480-18.patch",
"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
63 changes: 61 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 @@ -43,6 +43,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
Loading

0 comments on commit b3770f0

Please sign in to comment.