From f7f0065490f46a8b6aa41416bb3ec5ab685bf780 Mon Sep 17 00:00:00 2001 From: Willow Gillingham Date: Fri, 13 May 2022 08:36:57 -0700 Subject: [PATCH 1/2] configuration changes to add sort_date and remove years field --- ..._display.node.islandora_object.default.yml | 18 +- ...w_display.node.islandora_object.binary.yml | 4 +- ..._display.node.islandora_object.default.yml | 23 ++- ...y.node.islandora_object.open_seadragon.yml | 14 +- ...ew_display.node.islandora_object.pdfjs.yml | 4 +- ...w_display.node.islandora_object.teaser.yml | 4 +- codebase/config/sync/facets.facet.years.yml | 57 ------ ....node.islandora_object.field_sort_date.yml | 26 +++ ...ield.node.islandora_object.field_years.yml | 21 -- .../field.storage.node.field_sort_date.yml | 24 +++ .../sync/field.storage.node.field_years.yml | 26 --- .../search_api.index.default_solr_index.yml | 14 +- .../sync/views.view.export_metadata.yml | 148 +------------- .../views.view.jscholarship_redirects.yml | 10 +- .../sync/views.view.solr_search_content.yml | 183 +++--------------- 15 files changed, 108 insertions(+), 468 deletions(-) delete mode 100644 codebase/config/sync/facets.facet.years.yml create mode 100644 codebase/config/sync/field.field.node.islandora_object.field_sort_date.yml delete mode 100644 codebase/config/sync/field.field.node.islandora_object.field_years.yml create mode 100644 codebase/config/sync/field.storage.node.field_sort_date.yml delete mode 100644 codebase/config/sync/field.storage.node.field_years.yml diff --git a/codebase/config/sync/core.entity_form_display.node.islandora_object.default.yml b/codebase/config/sync/core.entity_form_display.node.islandora_object.default.yml index 5c40458ed..f93086318 100644 --- a/codebase/config/sync/core.entity_form_display.node.islandora_object.default.yml +++ b/codebase/config/sync/core.entity_form_display.node.islandora_object.default.yml @@ -41,19 +41,20 @@ dependencies: - field.field.node.islandora_object.field_publisher - field.field.node.islandora_object.field_publisher_country - field.field.node.islandora_object.field_resource_type + - field.field.node.islandora_object.field_sort_date - field.field.node.islandora_object.field_spatial_coverage - field.field.node.islandora_object.field_subject - field.field.node.islandora_object.field_table_of_contents - field.field.node.islandora_object.field_title_language - field.field.node.islandora_object.field_unique_id - field.field.node.islandora_object.field_weight - - field.field.node.islandora_object.field_years - node.type.islandora_object enforced: module: - islandora_defaults module: - controlled_access_terms + - datetime - field_group - link - reference_value_pair @@ -557,6 +558,12 @@ content: third_party_settings: { } type: options_buttons region: content + field_sort_date: + weight: 69 + settings: { } + third_party_settings: { } + type: datetime_default + region: content field_spatial_coverage: weight: 24 settings: @@ -607,15 +614,6 @@ content: third_party_settings: { } type: number region: content - field_years: - weight: 42 - settings: - strict_dates: false - intervals: true - sets: false - third_party_settings: { } - type: edtf_default - region: content status: type: boolean_checkbox settings: diff --git a/codebase/config/sync/core.entity_view_display.node.islandora_object.binary.yml b/codebase/config/sync/core.entity_view_display.node.islandora_object.binary.yml index 4b938f51e..7e0b716d9 100644 --- a/codebase/config/sync/core.entity_view_display.node.islandora_object.binary.yml +++ b/codebase/config/sync/core.entity_view_display.node.islandora_object.binary.yml @@ -42,13 +42,13 @@ dependencies: - field.field.node.islandora_object.field_publisher - field.field.node.islandora_object.field_publisher_country - field.field.node.islandora_object.field_resource_type + - field.field.node.islandora_object.field_sort_date - field.field.node.islandora_object.field_spatial_coverage - field.field.node.islandora_object.field_subject - field.field.node.islandora_object.field_table_of_contents - field.field.node.islandora_object.field_title_language - field.field.node.islandora_object.field_unique_id - field.field.node.islandora_object.field_weight - - field.field.node.islandora_object.field_years - node.type.islandora_object enforced: module: @@ -172,12 +172,12 @@ hidden: field_model: true field_publisher: true field_publisher_country: true + field_sort_date: true field_spatial_coverage: true field_table_of_contents: true field_title_language: true field_unique_id: true field_weight: true - field_years: true langcode: true openseadragon_media_evas_entity_view_1: true openseadragon_media_evas_entity_view_2: true diff --git a/codebase/config/sync/core.entity_view_display.node.islandora_object.default.yml b/codebase/config/sync/core.entity_view_display.node.islandora_object.default.yml index 15bcf28fe..f1869dc15 100644 --- a/codebase/config/sync/core.entity_view_display.node.islandora_object.default.yml +++ b/codebase/config/sync/core.entity_view_display.node.islandora_object.default.yml @@ -41,19 +41,20 @@ dependencies: - field.field.node.islandora_object.field_publisher - field.field.node.islandora_object.field_publisher_country - field.field.node.islandora_object.field_resource_type + - field.field.node.islandora_object.field_sort_date - field.field.node.islandora_object.field_spatial_coverage - field.field.node.islandora_object.field_subject - field.field.node.islandora_object.field_table_of_contents - field.field.node.islandora_object.field_title_language - field.field.node.islandora_object.field_unique_id - field.field.node.islandora_object.field_weight - - field.field.node.islandora_object.field_years - node.type.islandora_object enforced: module: - islandora_defaults module: - controlled_access_terms + - datetime - link - reference_value_pair - user @@ -395,6 +396,15 @@ content: third_party_settings: { } type: entity_reference_label region: content + field_sort_date: + weight: 43 + label: above + settings: + format_type: medium + timezone_override: '' + third_party_settings: { } + type: datetime_default + region: content field_spatial_coverage: weight: 9 label: above @@ -428,17 +438,6 @@ content: third_party_settings: { } type: entity_reference_label region: content - field_years: - weight: 22 - label: above - settings: - date_separator: dash - date_order: big_endian - month_format: mm - day_format: dd - third_party_settings: { } - type: edtf_default - region: content islandora_fits_checksum: weight: 10 region: content diff --git a/codebase/config/sync/core.entity_view_display.node.islandora_object.open_seadragon.yml b/codebase/config/sync/core.entity_view_display.node.islandora_object.open_seadragon.yml index cd77b42ff..c06ca0605 100644 --- a/codebase/config/sync/core.entity_view_display.node.islandora_object.open_seadragon.yml +++ b/codebase/config/sync/core.entity_view_display.node.islandora_object.open_seadragon.yml @@ -42,13 +42,13 @@ dependencies: - field.field.node.islandora_object.field_publisher - field.field.node.islandora_object.field_publisher_country - field.field.node.islandora_object.field_resource_type + - field.field.node.islandora_object.field_sort_date - field.field.node.islandora_object.field_spatial_coverage - field.field.node.islandora_object.field_subject - field.field.node.islandora_object.field_table_of_contents - field.field.node.islandora_object.field_title_language - field.field.node.islandora_object.field_unique_id - field.field.node.islandora_object.field_weight - - field.field.node.islandora_object.field_years - node.type.islandora_object enforced: module: @@ -405,17 +405,6 @@ content: settings: link: true third_party_settings: { } - field_years: - type: edtf_default - weight: 40 - region: content - label: above - settings: - date_separator: dash - date_order: big_endian - month_format: mm - day_format: dd - third_party_settings: { } islandora_fits_checksum: weight: 39 region: content @@ -451,6 +440,7 @@ hidden: field_dspace_item_id: true field_gemini_uri: true field_jhir: true + field_sort_date: true field_unique_id: true field_weight: true openseadragon_media_evas_entity_view_2: true diff --git a/codebase/config/sync/core.entity_view_display.node.islandora_object.pdfjs.yml b/codebase/config/sync/core.entity_view_display.node.islandora_object.pdfjs.yml index 8d7f35ed6..655a27034 100644 --- a/codebase/config/sync/core.entity_view_display.node.islandora_object.pdfjs.yml +++ b/codebase/config/sync/core.entity_view_display.node.islandora_object.pdfjs.yml @@ -42,13 +42,13 @@ dependencies: - field.field.node.islandora_object.field_publisher - field.field.node.islandora_object.field_publisher_country - field.field.node.islandora_object.field_resource_type + - field.field.node.islandora_object.field_sort_date - field.field.node.islandora_object.field_spatial_coverage - field.field.node.islandora_object.field_subject - field.field.node.islandora_object.field_table_of_contents - field.field.node.islandora_object.field_title_language - field.field.node.islandora_object.field_unique_id - field.field.node.islandora_object.field_weight - - field.field.node.islandora_object.field_years - node.type.islandora_object enforced: module: @@ -177,12 +177,12 @@ hidden: field_model: true field_publisher: true field_publisher_country: true + field_sort_date: true field_spatial_coverage: true field_table_of_contents: true field_title_language: true field_unique_id: true field_weight: true - field_years: true langcode: true openseadragon_media_evas_entity_view_1: true openseadragon_media_evas_entity_view_2: true diff --git a/codebase/config/sync/core.entity_view_display.node.islandora_object.teaser.yml b/codebase/config/sync/core.entity_view_display.node.islandora_object.teaser.yml index 9a73ef62a..d0bb08c5d 100644 --- a/codebase/config/sync/core.entity_view_display.node.islandora_object.teaser.yml +++ b/codebase/config/sync/core.entity_view_display.node.islandora_object.teaser.yml @@ -42,13 +42,13 @@ dependencies: - field.field.node.islandora_object.field_publisher - field.field.node.islandora_object.field_publisher_country - field.field.node.islandora_object.field_resource_type + - field.field.node.islandora_object.field_sort_date - field.field.node.islandora_object.field_spatial_coverage - field.field.node.islandora_object.field_subject - field.field.node.islandora_object.field_table_of_contents - field.field.node.islandora_object.field_title_language - field.field.node.islandora_object.field_unique_id - field.field.node.islandora_object.field_weight - - field.field.node.islandora_object.field_years - node.type.islandora_object enforced: module: @@ -115,13 +115,13 @@ hidden: field_publisher: true field_publisher_country: true field_resource_type: true + field_sort_date: true field_spatial_coverage: true field_subject: true field_table_of_contents: true field_title_language: true field_unique_id: true field_weight: true - field_years: true islandora_fits_checksum: true langcode: true members_eva_entity_view_1: true diff --git a/codebase/config/sync/facets.facet.years.yml b/codebase/config/sync/facets.facet.years.yml deleted file mode 100644 index 7a2e8b67d..000000000 --- a/codebase/config/sync/facets.facet.years.yml +++ /dev/null @@ -1,57 +0,0 @@ -uuid: abeba1dd-9a63-4043-99db-8f9d5493d99b -langcode: en -status: true -dependencies: - config: - - search_api.index.default_solr_index - - views.view.solr_search_content - module: - - search_api -id: years -name: Years -url_alias: years -weight: 0 -min_count: 1 -show_only_one_result: false -field_identifier: field_years -facet_source_id: 'search_api:views_rest__solr_search_content__rest_export_1' -widget: - type: array - config: - show_numbers: true -query_operator: or -use_hierarchy: false -keep_hierarchy_parents_active: 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: ASC - count_widget_order: - processor_id: count_widget_order - weights: - sort: -8 - settings: - sort: DESC - display_value_widget_order: - processor_id: display_value_widget_order - weights: - sort: -9 - settings: - sort: ASC - url_processor_handler: - processor_id: url_processor_handler - weights: - pre_query: 50 - build: 15 - settings: { } -empty_behavior: - behavior: none -show_title: false diff --git a/codebase/config/sync/field.field.node.islandora_object.field_sort_date.yml b/codebase/config/sync/field.field.node.islandora_object.field_sort_date.yml new file mode 100644 index 000000000..53c5d7d34 --- /dev/null +++ b/codebase/config/sync/field.field.node.islandora_object.field_sort_date.yml @@ -0,0 +1,26 @@ +uuid: f1c1e21c-7ac1-4e2f-bba5-8cb17765293f +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_sort_date + - node.type.islandora_object + module: + - datetime + - epp +third_party_settings: + epp: + value: '' + on_update: 1 +id: node.islandora_object.field_sort_date +field_name: field_sort_date +entity_type: node +bundle: islandora_object +label: 'Sort Date' +description: 'This field is for the purpose of overriding the singular sort date that is derived from the Published and Created date fields. Metadata Librarian and Collection Admins should not enter a Sort Date unless the system cannot process the Pub Date/Created Date to determine the sort.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: datetime diff --git a/codebase/config/sync/field.field.node.islandora_object.field_years.yml b/codebase/config/sync/field.field.node.islandora_object.field_years.yml deleted file mode 100644 index 90bf3b427..000000000 --- a/codebase/config/sync/field.field.node.islandora_object.field_years.yml +++ /dev/null @@ -1,21 +0,0 @@ -uuid: af8a3738-b3b5-4664-ac9d-374eda504bcd -langcode: en -status: true -dependencies: - config: - - field.storage.node.field_years - - node.type.islandora_object - module: - - controlled_access_terms -id: node.islandora_object.field_years -field_name: field_years -entity_type: node -bundle: islandora_object -label: Years -description: "Required. This field is only used for Solr indexing and will not show up to end-users. Enter one year (YYYY) only per field, repeating field if necessary. See full instructions at [link].\r\n" -required: true -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: edtf diff --git a/codebase/config/sync/field.storage.node.field_sort_date.yml b/codebase/config/sync/field.storage.node.field_sort_date.yml new file mode 100644 index 000000000..235188e39 --- /dev/null +++ b/codebase/config/sync/field.storage.node.field_sort_date.yml @@ -0,0 +1,24 @@ +uuid: 90599c8b-a166-4ac8-8e6e-5a383b9c40dc +langcode: en +status: true +dependencies: + module: + - datetime + - field_permissions + - node +third_party_settings: + field_permissions: + permission_type: public +id: node.field_sort_date +field_name: field_sort_date +entity_type: node +type: datetime +settings: + datetime_type: datetime +module: datetime +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/codebase/config/sync/field.storage.node.field_years.yml b/codebase/config/sync/field.storage.node.field_years.yml deleted file mode 100644 index f652f9b9b..000000000 --- a/codebase/config/sync/field.storage.node.field_years.yml +++ /dev/null @@ -1,26 +0,0 @@ -uuid: 096166cc-ed09-444b-8287-afa882539111 -langcode: en -status: true -dependencies: - module: - - controlled_access_terms - - field_permissions - - node -third_party_settings: - field_permissions: - permission_type: private -id: node.field_years -field_name: field_years -entity_type: node -type: edtf -settings: - max_length: '128' - is_ascii: false - case_sensitive: false -module: controlled_access_terms -locked: false -cardinality: -1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/codebase/config/sync/search_api.index.default_solr_index.yml b/codebase/config/sync/search_api.index.default_solr_index.yml index c055324c5..49080bd93 100644 --- a/codebase/config/sync/search_api.index.default_solr_index.yml +++ b/codebase/config/sync/search_api.index.default_solr_index.yml @@ -67,7 +67,6 @@ dependencies: - field.storage.node.field_title_language - field.storage.taxonomy_term.field_language_code - field.storage.node.field_unique_id - - field.storage.node.field_years - search_api.server.default_solr_server - core.entity_view_mode.node.search_index third_party_settings: @@ -701,14 +700,6 @@ field_settings: dependencies: config: - field.storage.node.field_unique_id - field_years: - label: Years - datasource_id: 'entity:node' - property_path: field_years - type: string - dependencies: - config: - - field.storage.node.field_years idc_reverse_reference_parent_of_page: label: 'Page metadata' property_path: idc_reverse_reference_parent_of_page @@ -817,6 +808,10 @@ field_settings: dependencies: module: - node + sort_date: + label: 'Sort Date' + property_path: sort_date + type: date status: label: 'Publishing status' datasource_id: 'entity:node' @@ -952,6 +947,7 @@ processor_settings: solr_date_range: weights: preprocess_index: 0 + sort_date: { } tracker_settings: default: indexing_order: fifo diff --git a/codebase/config/sync/views.view.export_metadata.yml b/codebase/config/sync/views.view.export_metadata.yml index e254b9d79..98ee43552 100644 --- a/codebase/config/sync/views.view.export_metadata.yml +++ b/codebase/config/sync/views.view.export_metadata.yml @@ -1,6 +1,6 @@ uuid: d4f64eb8-a73c-47b5-975f-a0d8a14302fd langcode: en -status: true +status: false dependencies: config: - field.storage.node.field_abstract @@ -48,7 +48,6 @@ dependencies: - field.storage.node.field_table_of_contents - field.storage.node.field_title_language - field.storage.node.field_unique_id - - field.storage.node.field_years - search_api.index.default_solr_index module: - controlled_access_terms @@ -1181,12 +1180,6 @@ display: field: uuid entity_type: node plugin_id: search_api_field - field_years: - id: field_years - table: search_api_datasource_default_solr_index_entity_node - field: field_years - entity_type: node - plugin_id: search_api_field cache_metadata: contexts: - 'languages:language_content' @@ -1235,7 +1228,6 @@ display: - 'config:field.storage.node.field_subject' - 'config:field.storage.node.field_table_of_contents' - 'config:field.storage.node.field_title_language' - - 'config:field.storage.node.field_years' - 'config:search_api.index.default_solr_index' data_export_1: display_plugin: data_export @@ -5510,143 +5502,6 @@ display: view_mode: default entity_type: node plugin_id: search_api_field - field_years: - id: field_years - table: search_api_datasource_default_solr_index_entity_node - field: field_years - relationship: none - group_type: group - admin_label: '' - label: years - 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: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - 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: edtf_default - settings: - relationship: none - field_rendering: 1 - fieldsets: - - more - - admin_label - custom_label: 1 - label: years - element_label_colon: 1 - exclude: 0 - element_type_enable: 0 - element_type: '' - element_class_enable: 0 - element_class: '' - element_label_type_enable: 0 - element_label_type: '' - element_label_class_enable: 0 - element_label_class: '' - element_wrapper_type_enable: 0 - element_wrapper_type: '' - element_wrapper_class_enable: 0 - element_wrapper_class: '' - element_default_classes: 1 - alter: - alter_text: 0 - text: '' - make_link: 0 - path: '' - absolute: 0 - replace_spaces: 0 - external: 0 - path_case: none - link_class: '' - alt: '' - rel: '' - prefix: '' - suffix: '' - target: '' - trim: 0 - max_length: '0' - word_boundary: 1 - ellipsis: 1 - more_link: 0 - more_link_text: '' - more_link_path: '' - html: 0 - strip_tags: 0 - preserve_tags: '' - trim_whitespace: 0 - nl2br: 0 - empty: '' - empty_zero: 0 - hide_empty: 0 - hide_alter_empty: 1 - group_rows: 1 - multi_type: separator - separator: '||' - delta_limit: '0' - delta_offset: '0' - delta_reversed: 0 - delta_first_last: 0 - click_sort_column: value - type: edtf_default - field_api_classes: 0 - date_separator: dash - date_order: big_endian - month_format: mm - day_format: dd - 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 - field_rendering: true - fallback_handler: search_api - fallback_options: - link_to_item: false - use_highlighting: false - multi_type: separator - multi_separator: ', ' - entity_type: node - plugin_id: search_api_field defaults: fields: false filters: false @@ -5811,7 +5666,6 @@ display: - 'config:field.storage.node.field_table_of_contents' - 'config:field.storage.node.field_title_language' - 'config:field.storage.node.field_unique_id' - - 'config:field.storage.node.field_years' - 'config:search_api.index.default_solr_index' data_export_2: display_plugin: data_export diff --git a/codebase/config/sync/views.view.jscholarship_redirects.yml b/codebase/config/sync/views.view.jscholarship_redirects.yml index 16e15898c..2d5ef5324 100644 --- a/codebase/config/sync/views.view.jscholarship_redirects.yml +++ b/codebase/config/sync/views.view.jscholarship_redirects.yml @@ -1,6 +1,6 @@ uuid: 91d4a00b-6c6d-4e3b-8247-70b14f4cab2b langcode: en -status: true +status: false dependencies: config: - field.storage.node.field_abstract @@ -40,7 +40,6 @@ dependencies: - field.storage.node.field_subject - field.storage.node.field_table_of_contents - field.storage.node.field_title_language - - field.storage.node.field_years - search_api.index.default_solr_index module: - controlled_access_terms @@ -962,12 +961,6 @@ display: field: uuid entity_type: node plugin_id: search_api_field - field_years: - id: field_years - table: search_api_datasource_default_solr_index_entity_node - field: field_years - entity_type: node - plugin_id: search_api_field pager: type: mini options: @@ -1200,7 +1193,6 @@ display: - 'config:field.storage.node.field_subject' - 'config:field.storage.node.field_table_of_contents' - 'config:field.storage.node.field_title_language' - - 'config:field.storage.node.field_years' - 'config:search_api.index.default_solr_index' cacheable: false rest_export_1: diff --git a/codebase/config/sync/views.view.solr_search_content.yml b/codebase/config/sync/views.view.solr_search_content.yml index 2bca552c2..cf584a2cf 100644 --- a/codebase/config/sync/views.view.solr_search_content.yml +++ b/codebase/config/sync/views.view.solr_search_content.yml @@ -40,7 +40,6 @@ dependencies: - field.storage.node.field_subject - field.storage.node.field_table_of_contents - field.storage.node.field_title_language - - field.storage.node.field_years - search_api.index.default_solr_index - taxonomy.vocabulary.islandora_models content: @@ -266,18 +265,6 @@ display: error_message: true plugin_id: search_api_term sorts: - type: - id: type - table: search_api_index_default_solr_index - field: type - relationship: none - group_type: group - admin_label: '' - order: ASC - exposed: false - expose: - label: 'Content type' - plugin_id: search_api search_api_relevance: id: search_api_relevance table: search_api_index_default_solr_index @@ -302,6 +289,30 @@ display: expose: label: Title plugin_id: search_api + sort_date: + id: sort_date + table: search_api_index_default_solr_index + field: sort_date + relationship: none + group_type: group + admin_label: '' + order: ASC + exposed: true + expose: + label: Date + plugin_id: search_api + type: + id: type + table: search_api_index_default_solr_index + field: type + relationship: none + group_type: group + admin_label: '' + order: ASC + exposed: false + expose: + label: 'Content type' + plugin_id: search_api title_1: id: title_1 table: search_api_index_default_solr_index @@ -1229,12 +1240,6 @@ display: field: uuid entity_type: node plugin_id: search_api_field - field_years: - id: field_years - table: search_api_datasource_default_solr_index_entity_node - field: field_years - entity_type: node - plugin_id: search_api_field cache_metadata: contexts: - 'languages:language_content' @@ -1284,7 +1289,6 @@ display: - 'config:field.storage.node.field_subject' - 'config:field.storage.node.field_table_of_contents' - 'config:field.storage.node.field_title_language' - - 'config:field.storage.node.field_years' - 'config:search_api.index.default_solr_index' page_1: display_plugin: page @@ -1348,7 +1352,6 @@ display: - 'config:field.storage.node.field_subject' - 'config:field.storage.node.field_table_of_contents' - 'config:field.storage.node.field_title_language' - - 'config:field.storage.node.field_years' - 'config:search_api.index.default_solr_index' rest_export_1: display_plugin: rest_export @@ -4916,143 +4919,6 @@ display: view_mode: default entity_type: node plugin_id: search_api_field - field_years: - id: field_years - table: search_api_datasource_default_solr_index_entity_node - field: field_years - 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: '' - element_class: '' - 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: edtf_default - settings: - relationship: none - field_rendering: 1 - fieldsets: - - more - - admin_label - custom_label: 0 - label: '' - element_label_colon: 1 - exclude: 0 - element_type_enable: 0 - element_type: '' - element_class_enable: 0 - element_class: '' - element_label_type_enable: 0 - element_label_type: '' - element_label_class_enable: 0 - element_label_class: '' - element_wrapper_type_enable: 0 - element_wrapper_type: '' - element_wrapper_class_enable: 0 - element_wrapper_class: '' - element_default_classes: 1 - alter: - alter_text: 0 - text: '' - make_link: 0 - path: '' - absolute: 0 - replace_spaces: 0 - external: 0 - path_case: none - link_class: '' - alt: '' - rel: '' - prefix: '' - suffix: '' - target: '' - trim: 0 - max_length: '0' - word_boundary: 1 - ellipsis: 1 - more_link: 0 - more_link_text: '' - more_link_path: '' - html: 0 - strip_tags: 0 - preserve_tags: '' - trim_whitespace: 0 - nl2br: 0 - empty: '' - empty_zero: 0 - hide_empty: 0 - hide_alter_empty: 1 - group_rows: 1 - multi_type: separator - separator: ', ' - delta_limit: '0' - delta_offset: '0' - delta_reversed: 0 - delta_first_last: 0 - click_sort_column: value - type: edtf_default - field_api_classes: 0 - date_separator: dash - date_order: big_endian - month_format: mm - day_format: dd - 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 - field_rendering: true - fallback_handler: search_api - fallback_options: - link_to_item: false - use_highlighting: false - multi_type: separator - multi_separator: ', ' - entity_type: node - plugin_id: search_api_field nid: id: nid table: search_api_datasource_default_solr_index_entity_node @@ -5702,5 +5568,4 @@ display: - 'config:field.storage.node.field_subject' - 'config:field.storage.node.field_table_of_contents' - 'config:field.storage.node.field_title_language' - - 'config:field.storage.node.field_years' - 'config:search_api.index.default_solr_index' From bbf327e18198704d53eb27fd9ea54191e89411c9 Mon Sep 17 00:00:00 2001 From: Willow Gillingham Date: Fri, 13 May 2022 15:59:21 -0700 Subject: [PATCH 2/2] added solr_years config for index and facet --- ..._display.node.islandora_object.default.yml | 32 ++++-------- codebase/config/sync/facets.facet.date.yml | 51 +++++++++++++++++++ .../search_api.index.default_solr_index.yml | 5 ++ 3 files changed, 65 insertions(+), 23 deletions(-) create mode 100644 codebase/config/sync/facets.facet.date.yml diff --git a/codebase/config/sync/core.entity_form_display.node.islandora_object.default.yml b/codebase/config/sync/core.entity_form_display.node.islandora_object.default.yml index f93086318..e1cf85d02 100644 --- a/codebase/config/sync/core.entity_form_display.node.islandora_object.default.yml +++ b/codebase/config/sync/core.entity_form_display.node.islandora_object.default.yml @@ -113,7 +113,7 @@ third_party_settings: - field_date_created - field_date_published - field_date_copyrighted - - group_date_solr_year + - field_sort_date parent_name: '' weight: 2 format_type: details @@ -195,20 +195,6 @@ third_party_settings: classes: '' open: false label: Resources - group_date_solr_year: - children: - - field_years - parent_name: group_dates - weight: 46 - format_type: details - region: content - format_settings: - id: '' - classes: '' - description: '' - open: false - required_fields: true - label: 'Date - Solr Year' _core: default_config_hash: HLvUbruUDjxBUB1PEtEQF7ZvGRY-87E68yLt78KBruM id: node.islandora_object.default @@ -238,7 +224,7 @@ content: type: options_buttons region: content field_access_terms: - weight: 10 + weight: 11 settings: { } third_party_settings: { } type: options_select @@ -378,12 +364,12 @@ content: region: content field_display_hints: type: options_buttons - weight: 11 + weight: 12 region: content settings: { } third_party_settings: { } field_dspace_identifier: - weight: 67 + weight: 68 settings: placeholder_url: '' placeholder_title: '' @@ -391,7 +377,7 @@ content: type: link_default region: content field_dspace_item_id: - weight: 68 + weight: 69 settings: size: 60 placeholder: '' @@ -491,7 +477,7 @@ content: region: content field_member_of: type: entity_reference_autocomplete - weight: 9 + weight: 10 region: content settings: match_operator: CONTAINS @@ -559,7 +545,7 @@ content: type: options_buttons region: content field_sort_date: - weight: 69 + weight: 46 settings: { } third_party_settings: { } type: datetime_default @@ -600,7 +586,7 @@ content: type: options_select region: content field_unique_id: - weight: 12 + weight: 13 settings: size: 60 placeholder: '' @@ -608,7 +594,7 @@ content: type: string_textfield region: content field_weight: - weight: 13 + weight: 14 settings: placeholder: '' third_party_settings: { } diff --git a/codebase/config/sync/facets.facet.date.yml b/codebase/config/sync/facets.facet.date.yml new file mode 100644 index 000000000..0a6597871 --- /dev/null +++ b/codebase/config/sync/facets.facet.date.yml @@ -0,0 +1,51 @@ +uuid: 36253efe-86ba-4782-9f32-74c27203c6fa +langcode: en +status: true +dependencies: + config: + - search_api.index.default_solr_index + - views.view.solr_search_content + module: + - search_api +id: date +name: Date +url_alias: date +weight: 0 +min_count: 1 +show_only_one_result: false +field_identifier: solr_years +facet_source_id: 'search_api:views_rest__solr_search_content__rest_export_1' +widget: + type: array + config: + show_numbers: false +query_operator: or +use_hierarchy: false +keep_hierarchy_parents_active: 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: 20 + settings: + sort: DESC + display_value_widget_order: + processor_id: display_value_widget_order + weights: + sort: 40 + settings: + sort: DESC + url_processor_handler: + processor_id: url_processor_handler + weights: + pre_query: 50 + build: 15 + settings: { } +empty_behavior: + behavior: none +show_title: false diff --git a/codebase/config/sync/search_api.index.default_solr_index.yml b/codebase/config/sync/search_api.index.default_solr_index.yml index 49080bd93..7853084ee 100644 --- a/codebase/config/sync/search_api.index.default_solr_index.yml +++ b/codebase/config/sync/search_api.index.default_solr_index.yml @@ -808,6 +808,10 @@ field_settings: dependencies: module: - node + solr_years: + label: 'Solr Years' + property_path: solr_years + type: string sort_date: label: 'Sort Date' property_path: sort_date @@ -947,6 +951,7 @@ processor_settings: solr_date_range: weights: preprocess_index: 0 + solr_years: { } sort_date: { } tracker_settings: default: