Skip to content

Commit d96fc77

Browse files
committed
Call the constraints component directly
Deprecate the catalog/_constraints.html.erb partial
1 parent 739b6eb commit d96fc77

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
<% Blacklight.deprecation.warn('The partial catalog/_constraints.html.erb will be removed in Blacklight 9.0. Call the constraints_component instead') %>
12
<%= render (blacklight_config&.view_config(document_index_view_type)&.constraints_component || Blacklight::ConstraintsComponent).new(search_state: search_state) %>

app/views/catalog/_search_results.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
<% content_for(:container_header) do -%>
1515
<%= render 'search_results_header' %>
16-
<%= render 'constraints' %>
17-
<% end %>
16+
<%= render (blacklight_config&.view_config(document_index_view_type)&.constraints_component || Blacklight::ConstraintsComponent).new(search_state: search_state) %>
17+
d<% end %>
1818

1919
<%= render 'search_header' %>
2020

0 commit comments

Comments
 (0)