% content_for :page_title, "#{application_name} Search Results" %>
<% content_for :page_class, 'search' %>
<% content_for :page_header do %>
<%= type_tab 'Works', 'Work' %>
<%= type_tab 'Collections', 'Collection' %>
<%= type_tab 'People', 'Person' %>
<%= all_type_tab %>
<% end %>
<% content_for :sidebar do %>
<%= render 'facets' %>
<% end %>
<% if has_search_parameters? %>
Limited to:
<%= render_constraints(params) %>
<%= render :partial => 'did_you_mean' %>
<%= render :partial => 'facet_selected' %>
<%= render_pagination_info @response, :entry_name=>'item' %>
<%= render 'sort_and_per_page' %>
<%= render 'results_pagination' %>
<%= render 'document_list' %>
<%= render 'results_pagination' %>
<% else %>
<% if current_user %>
<%= render 'results_pagination' %>
<%= render 'document_list' %>
<%= render 'results_pagination' %>
<% else %>
<%= render 'home' %>
<% end %>
<% end %>