|
4 | 4 |
|
5 | 5 | <p>Showing results for: |
6 | 6 | <ul> |
7 | | - <% if params[:q].present? %> |
8 | | - <li>Keyword anywhere: <%= params[:q] %></li> |
| 7 | + <% if @enhanced_query[:q].present? %> |
| 8 | + <li>Keyword anywhere: <%= @enhanced_query[:q] %></li> |
9 | 9 | <% end %> |
10 | | - <% if params[:citation].present? %> |
11 | | - <li>Citation: <%= params[:citation] %></li> |
| 10 | + <% if @enhanced_query[:citation].present? %> |
| 11 | + <li>Citation: <%= @enhanced_query[:citation] %></li> |
12 | 12 | <% end %> |
13 | | - <% if params[:contributors].present? %> |
14 | | - <li>Contributors: <%= params[:contributors] %></li> |
| 13 | + <% if @enhanced_query[:contentType].present? %> |
| 14 | + <li>Content type: <%= @enhanced_query[:contentType] %></li> |
15 | 15 | <% end %> |
16 | | - <% if params[:fundingInformation].present? %> |
17 | | - <li>Funders: <%= params[:fundingInformation] %></li> |
| 16 | + <% if @enhanced_query[:contributors].present? %> |
| 17 | + <li>Contributors: <%= @enhanced_query[:contributors] %></li> |
18 | 18 | <% end %> |
19 | | - <% if params[:identifiers].present? %> |
20 | | - <li>Identifiers: <%= params[:identifiers] %></li> |
| 19 | + <% if @enhanced_query[:fundingInformation].present? %> |
| 20 | + <li>Funders: <%= @enhanced_query[:fundingInformation] %></li> |
21 | 21 | <% end %> |
22 | | - <% if params[:locations].present? %> |
23 | | - <li>Locations: <%= params[:locations] %></li> |
| 22 | + <% if @enhanced_query[:identifiers].present? %> |
| 23 | + <li>Identifiers: <%= @enhanced_query[:identifiers] %></li> |
24 | 24 | <% end %> |
25 | | - <% if params[:subjects].present? %> |
26 | | - <li>Subjects: <%= params[:subjects] %></li> |
| 25 | + <% if @enhanced_query[:locations].present? %> |
| 26 | + <li>Locations: <%= @enhanced_query[:locations] %></li> |
27 | 27 | <% end %> |
28 | | - <% if params[:title].present? %> |
29 | | - <li>Title: <%= params[:title] %></li> |
| 28 | + <% if @enhanced_query[:subjects].present? %> |
| 29 | + <li>Subjects: <%= @enhanced_query[:subjects] %></li> |
30 | 30 | <% end %> |
31 | | - <% if params[:source].present? %> |
32 | | - <li>Source: <%= params[:source] %></li> |
| 31 | + <% if @enhanced_query[:title].present? %> |
| 32 | + <li>Title: <%= @enhanced_query[:title] %></li> |
| 33 | + <% end %> |
| 34 | + <% if @enhanced_query[:source].present? %> |
| 35 | + <li>Source: <%= @enhanced_query[:source] %></li> |
33 | 36 | <% end %> |
34 | 37 | </ul> |
35 | 38 | </p> |
|
55 | 58 | <aside class="col1q facet-container"> |
56 | 59 | <div id="facets"> |
57 | 60 | <h2>Available filters</h2> |
58 | | - <%= render(partial: 'search/facet', collection: @facets) || render('facet_empty') %> |
| 61 | + <% @facets&.each do |category, values| %> |
| 62 | + <%= render(partial: 'search/facet', locals: {category: category, values: values}) %> |
| 63 | + <% end %> |
59 | 64 | </div> |
60 | 65 | </aside> |
61 | 66 | </div> |
|
0 commit comments