|
11 | 11 |
|
12 | 12 | <%= turbo_frame_tag "search-results", data: { turbo_action: "advance" } do %> |
13 | 13 | <div id="results-section"> |
| 14 | + |
14 | 15 | <% if @show_primo_continuation %> |
| 16 | + |
15 | 17 | <%= render partial: 'search/primo_continuation' %> |
| 18 | + |
16 | 19 | <% elsif @results.present? && @errors.blank? %> |
17 | | - <h2 class="results-context"><%= results_summary(@pagination[:hits]) %></h2> |
18 | | - <p class="results-context-description">From all MIT Libraries sources</p> |
19 | | - <div id="results-layout-wrapper"> |
20 | | - <main id="results"> |
| 20 | + |
| 21 | + <h2 class="results-context"><%= results_summary(@pagination[:hits]) %></h2> |
| 22 | + <p class="results-context-description">From all MIT Libraries sources</p> |
| 23 | + <div id="results-layout-wrapper"> |
| 24 | + <main id="results"> |
21 | 25 | <ol class="results-list" start="<%= @pagination[:start] %>"> |
22 | 26 | <% case @active_tab %> |
23 | 27 | <% when 'primo' %> |
|
35 | 39 | <% end %> |
36 | 40 | </ol> |
37 | 41 | <%= render partial: "results_callouts" %> |
38 | | - <% elsif @errors.blank? %> |
39 | | - <main id="results"> |
40 | | - <div class="no-results"> |
41 | | - <p class="hd-2">No results found for your search</p> |
42 | | - </div> |
43 | | - </main> |
44 | | - <% end %> |
45 | | - </main> |
46 | | - <% if @results.present? %> |
| 42 | + </main> |
47 | 43 | <%= render partial: "results_sidebar" %> |
48 | | - <% end %> |
49 | | - </div> |
| 44 | + </div> |
| 45 | + <%= render partial: "pagination" %> |
| 46 | + |
| 47 | + <% elsif @errors.blank? %> |
| 48 | + |
| 49 | + <div id="results-layout-wrapper"> |
| 50 | + <main id="results"> |
| 51 | + <div class="no-results"> |
| 52 | + <p class="hd-2">No results found for your search</p> |
| 53 | + </div> |
| 54 | + </main> |
| 55 | + </div> |
| 56 | + |
| 57 | + <% end %> |
| 58 | + |
50 | 59 | </div> |
51 | 60 |
|
52 | | - <% if @results.present? %> |
53 | | - <%= render partial: "pagination" %> |
54 | | - <% end %> |
55 | 61 | <% end %> |
56 | 62 |
|
57 | 63 | </div> |
|
0 commit comments