Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding further hints for fields #2850

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/spotlight/custom_search_fields/_form.html.erb
Original file line number Diff line number Diff line change
@@ -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') %>

<div class="form-actions">
<div class="primary-actions">
Expand Down
4 changes: 4 additions & 0 deletions config/locales/spotlight.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down