-
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.
Forward-port improvements to the facet suggest feature
Thanks to @cbeer and @maxkadel for identifying these issues while backporting this feature to release-8.x! * Provide the option to opt out of this feature (in 8.x, it is opt-in). You can add suggest: false to your facet config in the catalog controller if you don't want to use it for a particular field. * Use text_field_tag * Correct typo in debounce.js * Run i18n-tasks translate-missing, rather than add-missing. This pulls preliminary translations from the Google Cloud Translate API. * Remove redundant assignment * Remove unnecessary assignment Co-authored-by: Chris Beer <chris@cbeer.info> Co-authored-by: Max Kadel <mkadel@princeton.edu>
- Loading branch information
1 parent
ae4e8fd
commit 98d3827
Showing
15 changed files
with
63 additions
and
30 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
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
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
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
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