Skip to content
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
1 change: 1 addition & 0 deletions app/views/catalog/_constraints.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<% Blacklight.deprecation.warn('The partial catalog/_constraints.html.erb will be removed in Blacklight 9.0. Call the constraints_component instead') unless hide_warning %>
<%= render (blacklight_config&.view_config(document_index_view_type)&.constraints_component || Blacklight::ConstraintsComponent).new(search_state: search_state) %>
8 changes: 6 additions & 2 deletions app/views/catalog/_search_results.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@

<% content_for(:container_header) do -%>
<%= render 'search_results_header' %>
<%= render 'constraints' %>
<% end %>
<% partials = lookup_context.find_all('constraints', lookup_context.prefixes, true, [], {}) %>
<% unless partials.first.identifier.starts_with? Blacklight.root %>
<% Blacklight.deprecation.warn('The partial catalog/_constraints.html.erb will be removed in Blacklight 9.0. Call the constraints_component instead') %>
<% end %>
<%= render 'constraints', hide_warning: true %>
d<% end %>

<%= render 'search_header' %>

Expand Down