<%= t('page.search_resource', :model => t('page.resource')) -%>

<%= render 'manifestations/title', :manifestation => @manifestation if @manifestation -%> <% case %> <% when @index_patron[:creator] %> <%= render 'index_form_creator' %> <% when @index_patron[:contributor] %> <%= render 'index_form_contributor' %> <% when @index_patron[:publisher] %> <%= render 'index_form_publisher' %> <% when @manifestation %> <%= render 'index_form_manifestation' %> <% when @item %> <%= render 'index_form_item' %> <% when @series_statement %> <%= render 'index_form_series_statement' %> <% else %> <%= render 'index_form' %> <% end %> <%= set_focus_on_search_form %> <%- if @manifestations.total_entries > 0 -%>

<%= t('page.number_of_search_results', :count => @count[:query_result], :numdocs => Manifestation.search.total, :seconds => sprintf("%.3f", @seconds)) -%> <%- if @count[:query_result] > configatron.max_number_of_results -%>
<%= t('page.limit_exceeded', :count => configatron.max_number_of_results) -%> <%- end -%>

<%= t('page.sort_by') -%>: <%- if params[:sort_by].blank? -%> <%= t('manifestation.date_of_acquisition') -%> <%- else -%> <%= link_to t('manifestation.date_of_acquisition'), url_for(params.merge(:sort_by => nil, :only_path => true)) -%> <%- end -%> <%- if params[:sort_by] == 'pub_date' -%> <%= t('activerecord.attributes.manifestation.date_of_publication') -%> <%- else -%> <%= link_to t('activerecord.attributes.manifestation.date_of_publication'), url_for(params.merge(:sort_by => 'pub_date', :only_path => true)) -%> <%- end -%> <%- if params[:sort_by] == 'title' -%> <%= t('page.title') -%> <%- else -%> <%= link_to t('page.title'), url_for(params.merge(:sort_by => 'sort_title', :only_path => true)) -%> <%- end -%>

<%= render 'manifestations/list', :manifestations => @manifestations -%>
<% if defined?(EnjuBookmark) %>

<%= t('activerecord.models.tag') -%>

<%= image_tag 'spinner.gif', :id => 'spinner_tag_cloud', :style => 'padding-bottom: 15px; padding-left: 40px;' -%>
<% end %> <%- else -%> <%- if @suggested_tag -%>

<%= t('page.did_you_mean') -%>: <%= link_to @suggested_tag.name, manifestations_path(:tag => @suggested_tag.name) -%>

<%- end -%> <%= render 'manifestations/not_found' -%> <%- end -%>
<% if defined?(EnjuBookmark) %> <% end %>