-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make this feature opt-in. You can add suggest: true to your facet config in the catalog controller to start using it. * Use text_field_tag
- Loading branch information
1 parent
079ec45
commit efab330
Showing
4 changed files
with
43 additions
and
17 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
app/components/blacklight/search/facet_suggest_input.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<label for="facet-suggest-<%= facet.key %>"> | ||
<label for="facet_suggest_<%= facet.key %>"> | ||
<%= I18n.t('blacklight.search.facets.suggest.label', field_label: presenter&.label) %> | ||
</label> | ||
<input class="facet-suggest form-control" | ||
id="facet-suggest-<%= facet.key %>" | ||
data-facet-field="<%= facet.key %>" | ||
name="facet_suggest_<%= facet.key %>" | ||
placeholder="<%= I18n.t('blacklight.search.form.search.placeholder') %>"> | ||
</input> | ||
<%= text_field_tag "facet_suggest_#{facet.key}", | ||
nil, | ||
class: "facet-suggest form-control", | ||
data: {facet_field: facet.key}, | ||
placeholder: I18n.t('blacklight.search.form.search.placeholder') | ||
%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters