<%- 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 %>
  1. <%= select_tag :qt, options_for_select([ [t('txt.views.search_results.exact'), 'exact'], [t('txt.views.search_results.contains'), 'contains'], [t('txt.views.search_results.ends_with'), 'ends_with'], [t('txt.views.search_results.begins_with'), 'begins_with'] ], params[:qt]) %>
  1. <% if Iqvoc.searchable_classes.detect {|c| c.supports_multi_query? } %> <%= text_area_tag :q, params[:query] %> <% else %> <%= text_field_tag :q, params[:query] %> <% end %>
  2. <%= radio_button_tag 'for', 'concept', params[:for] == "concept" %> <%= radio_button_tag 'for', 'collection', params[:for] == "collection" %> <%= radio_button_tag 'for', 'all', !%w(concept collection).include?(params[:for]) %>
  3. <%= select_tag 'c', options_for_select(@collections.sort { |a, b| a.pref_label.to_s <=> b.pref_label.to_s }.map { |c| [c.pref_label.to_s, c.origin] }, params[:c]), :include_blank => true %>
  4. <% @available_languages.sort.each do |lang_tag, label| %> <%= check_box_tag "l[]", lang_tag, select_search_checkbox?(lang_tag), :id => "languages_#{lang_tag}", :class => 'lang_check' %> <% end %>
  5. <%= submit_tag t('txt.views.search_results.submit') %>
<% 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 %>