%- if @results -%>
<%= render(:partial => 'search_results/head_contents') %>
<%- end -%>
<%= t('txt.views.search_results.header') %>
<%- if @results -%>
<%= render(:partial => 'search_results/rdf_links') %>
<%- end -%>
<%= form_tag(search_path, :method => :get, :class => :form, :id => 'search') do %>
<% end %>
<% if @results %>
<% if @results.any? %>
<%= t('txt.views.search_results.search_results') %> (<%= @results.total_count %>)
<% else %>
<%= t('txt.views.search_results.search_results') %>
<%= t('txt.views.search_results.no_results_found') %>
<% end %>
<% @results.each do |result| %>
<% if @klass %>
<%= render :partial => @klass.search_result_partial_name,
:locals => { :result => result } %>
<% else %>
<%= render :partial => result.class.search_result_partial_name,
:locals => { :result => result } %>
<% end %>
<% end %>
<%= paginate @results %>
<% end %>
<%= content_for :sub_navigation do %>
<% end %>