Skip to content

Commit

Permalink
Merge branch 'feature/SRL-571-search-enhancements' into deployment/20…
Browse files Browse the repository at this point in the history
…220223
  • Loading branch information
ivanbueno-jcc committed Feb 23, 2022
2 parents 88da986 + d9ba39c commit 4b16eb2
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ content:
more_text: More
more_class: more-link
summary_handler: full
trim_options:
text: true
trim_zero: false
wrap_output: false
more_link: false
trim_options:
text: false
trim_zero: false
third_party_settings: { }
hidden:
body: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ content:
more_text: More
more_class: more-link
summary_handler: full
trim_options:
text: true
trim_zero: false
wrap_output: false
more_link: false
trim_options:
text: false
trim_zero: false
third_party_settings: { }
hidden:
content_moderation_control: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ content:
more_text: More
more_class: more-link
summary_handler: full
trim_options:
text: true
trim_zero: false
wrap_output: false
more_link: false
trim_options:
text: false
trim_zero: false
third_party_settings: { }
hidden:
body: true
Expand Down
79 changes: 72 additions & 7 deletions config/config-default/views.view.search_featured_items.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- taxonomy.vocabulary.search_categories
module:
- taxonomy
- text
- user
id: search_featured_items
label: 'Search featured items'
Expand Down Expand Up @@ -69,7 +70,7 @@ display:
type: default
options:
grouping: { }
row_class: jcc-tiles__item
row_class: ''
default_row_class: false
row:
type: fields
Expand All @@ -79,6 +80,70 @@ display:
hide_empty: false
default_field_elements: true
fields:
description__value:
id: description__value
table: taxonomy_term_field_data
field: description__value
relationship: none
group_type: group
admin_label: ''
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: div
element_class: jcc-text-section__container
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: text_default
settings: { }
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: taxonomy_term
entity_field: description
plugin_id: field
field_referenced_content:
id: field_referenced_content
table: taxonomy_term__field_referenced_content
Expand Down Expand Up @@ -121,25 +186,25 @@ display:
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: 'jcc-tile jcc-tile--hover'
element_wrapper_class: ''
element_default_classes: false
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: target_id
type: entity_reference_label
type: entity_reference_entity_view
settings:
link: true
view_mode: search_index
group_column: target_id
group_columns: { }
group_rows: false
group_rows: true
delta_limit: 3
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
separator: ''
field_api_classes: false
plugin_id: field
filters:
Expand Down Expand Up @@ -214,7 +279,7 @@ display:
display_extenders:
metatag_display_extender: { }
ajax_history: { }
css_class: 'jcc-tiles-section jcc-tiles-section--has-emphasis jcc-tiles-section--has-three-columns'
css_class: ''
cache_metadata:
max-age: -1
contexts:
Expand Down
15 changes: 1 addition & 14 deletions config/config-default/views.view.solr_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,20 +246,7 @@ display:
plugin_id: search_api_language
sorts: { }
title: Search
header:
area:
id: area
table: views
field: area
relationship: none
group_type: group
admin_label: ''
empty: false
tokenize: false
content:
value: '<h2>Featured results</h2>'
format: basic_html
plugin_id: text
header: { }
footer: { }
empty:
area:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@
padding-top: 20px;
}
}

.view-id-search_featured_items{
.views-field-description__value {
@include u-padding-top(4);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

{% block content %}
{% if rows %}
<div class="view__content jcc-tiles">
<div class="view__content">
{{ rows }}
</div>
{% endif %}
Expand Down

0 comments on commit 4b16eb2

Please sign in to comment.