Skip to content

Commit

Permalink
Edit advanced search view
Browse files Browse the repository at this point in the history
  • Loading branch information
abelemlih committed Apr 16, 2024
1 parent b52c38e commit c738e81
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<%= facet_field_label(display_facet.name) %>
<% end %>
<% query_parser = BlacklightAdvancedSearch::QueryParser.new(params, blacklight_config) %>
<div class="col-sm-9">
<%= content_tag(:select,
multiple: true,
Expand All @@ -20,7 +21,7 @@
class: 'form-control selectpicker',
data: { 'live-search': 'true', placeholder: "Type or select #{facet_field_label(display_facet.name).downcase.pluralize}", 'size': '6' }) do %>
<% display_facet.items.each do |facet_item| %>
<%= content_tag :option, value: facet_item.value, selected: facet_value_checked?(display_facet.name, facet_item.value) do %>
<%= content_tag :option, value: facet_item.value, selected: query_parser.filters_include_value?(display_facet.name, facet_item.value) do %>
<%= facet_display_value(display_facet.name, facet_item.label) %>
<% end %>
<% end %>
Expand Down

0 comments on commit c738e81

Please sign in to comment.