From eb00bc4f24dac0fe2eea928d1b12b6f97075db2e Mon Sep 17 00:00:00 2001 From: Jeremy McDermott Date: Fri, 21 Jun 2024 11:37:50 -0300 Subject: [PATCH] NBNP-390 Consistent fulltext search label+improved readability score --- configuration/views.view.digital_page_lister.yml | 2 +- custom/modules/newspapers_core/newspapers_core.module | 4 ++-- custom/modules/newspapers_core/src/Form/HomePageForm.php | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/configuration/views.view.digital_page_lister.yml b/configuration/views.view.digital_page_lister.yml index f7845987..9039cea9 100644 --- a/configuration/views.view.digital_page_lister.yml +++ b/configuration/views.view.digital_page_lister.yml @@ -2840,7 +2840,7 @@ display: exposed: true expose: operator_id: search_api_fulltext_op - label: 'Search within digitized content' + label: 'Search within our scanned newspaper content' description: '[note] Overwritten via newspapers_core_form_alter()' use_operator: false operator: search_api_fulltext_op diff --git a/custom/modules/newspapers_core/newspapers_core.module b/custom/modules/newspapers_core/newspapers_core.module index 1af34f85..c9802fd8 100644 --- a/custom/modules/newspapers_core/newspapers_core.module +++ b/custom/modules/newspapers_core/newspapers_core.module @@ -273,8 +273,8 @@ function newspapers_core_form_views_exposed_form_alter(&$form, FormStateInterfac break; case 'views-exposed-form-digital-page-lister-page-search': - $extended_description = t('Find 1 or more terms within the fulltext of our digitized newspaper - pages. ') . '
'; diff --git a/custom/modules/newspapers_core/src/Form/HomePageForm.php b/custom/modules/newspapers_core/src/Form/HomePageForm.php index 16aaf60d..8af875d6 100644 --- a/custom/modules/newspapers_core/src/Form/HomePageForm.php +++ b/custom/modules/newspapers_core/src/Form/HomePageForm.php @@ -289,9 +289,10 @@ class="fa-solid fa-circle-question ml-1">')), $about_url ]; $form['panel-wrapper']['tab-content']['fulltext']['search']['input_fulltext'] = [ '#type' => 'search', - '#title' => $this->t('Search the fulltext of digitized newspapers required'), + '#title' => $this->t('Search within our scanned newspaper content required'), '#description' => '' . - $this->t('Search for 1 or more keywords within the fulltext of digitized newspapers') . '', + $this->t('Find 1 or more terms within the fulltext of our digitized newspaper pages') . + '', ]; $form['panel-wrapper']['tab-content']['fulltext']['search']['actions'] = [ '#type' => 'actions',