From 15dfe17836c473f37a5dc67ea4c39eaf1625f0c2 Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Wed, 19 Oct 2022 16:44:26 -0400 Subject: [PATCH 1/2] Update spotlight.en.yml --- config/locales/spotlight.en.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/locales/spotlight.en.yml b/config/locales/spotlight.en.yml index 0b0a83963..e6570606f 100644 --- a/config/locales/spotlight.en.yml +++ b/config/locales/spotlight.en.yml @@ -475,8 +475,12 @@ en: edit: header: Edit exhibit-specific field form: + slug: + help: A machine friendly name for the Solr specification. See https://github.com/projectblacklight/blacklight/wiki/Blacklight-configuration#search-fields field: help: Specify fields to be searched and their boost values (e.g., full_title_tesim^100 personal_name_tesim^50). + label: + help: A human friendly label for the Solr specification. new: header: Add exhibit-specific field dashboards: From c12c54a647ecdf9ac123bdd22e24e569338cb01e Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Wed, 19 Oct 2022 16:46:04 -0400 Subject: [PATCH 2/2] Update _form.html.erb --- app/views/spotlight/custom_search_fields/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/spotlight/custom_search_fields/_form.html.erb b/app/views/spotlight/custom_search_fields/_form.html.erb index d0ffcfc26..49c119097 100644 --- a/app/views/spotlight/custom_search_fields/_form.html.erb +++ b/app/views/spotlight/custom_search_fields/_form.html.erb @@ -1,8 +1,8 @@ <%= bootstrap_form_for @custom_search_field.new_record? ? [current_exhibit, @custom_search_field] : [@custom_search_field.exhibit, @custom_search_field], layout: :horizontal, label_col: 'col-md-3', control_col: 'col-md-9', html: {class: 'col-md-9', id: 'edit-search-field'} do |f| %> - <%= f.text_field :slug %> + <%= f.text_field :slug, help: t('.slug.help') %> <%= f.text_field :field, help: t('.field.help') %> - <%= f.text_field :label %> + <%= f.text_field :label, help: t('.label.help') %>