% if @search_data.results? %> <% add_identifier_column if show_identifier_column? %> <%= render_aspace_partial :partial => "shared/pagination_summary" %>
<% end %> <% if params[:linker]==='true' %> | <% end %> <% if show_record_type? %> | sort-<%= @search_data.current_sort_direction %><% end %>"> <%= link_to I18n.t("search_results.result_type"), build_search_params("sort" => @search_data.sort_filter_for("primary_type")) %> | <% end %> <% if show_title_column? %>sort-<%= @search_data.current_sort_direction %><% end %>"> <%= link_to title_column_header_label, build_search_params("sort" => @search_data.sort_filter_for("title_sort")) %> | <% end %> <% if extra_columns? %> <% extra_columns.each do |col| %><% if col.sortable? %> <%= link_to col.label, build_search_params("sort" => @search_data.sort_filter_for(col.sort_by)) %> <% else %> <%= col.label %> <% end %> | <% end %> <% end %><% if !params[:linker] || params[:linker] === 'false' %> | <% end %> | |
---|---|---|---|---|---|---|---|
<%= check_box_tag "multiselect-item", result["id"], false %> | <% end %> <% if params[:linker] === 'true' %> <% if params[:multiplicity] === 'many' %><%= check_box_tag "linker-item", result["id"], false, :"data-object" => result.to_json %> | <% else %><%= radio_button_tag "linker-item", result["id"], false, :"data-object" => result.to_json %> | <% end %> <% end %> <% if show_record_type? %><%= I18n.t("#{result["primary_type"]}._singular", :default => I18n.t("plugins.#{result["primary_type"]}._singular")) %> | <% end %> <% if show_title_column? %><% if result['primary_type'] === "repository" and session[:repo] === result['id'] %><%= I18n.t("repository._frontend.messages.selected_short") %><% end %> <% if result["suppressed"] %><%= I18n.t("states.suppressed") %><% end %> <% if deleted %><%= I18n.t("states.deleted") %><% end %> <%= clean_mixed_content(result["title"]).html_safe || clean_mixed_content(result['display_string']).html_safe %> | <% end %> <% if extra_columns? %> <% extra_columns.each do |col| %><%= col.value_for(result) %> | <% end %> <% end %><%= display_audit_info(result, :format => 'compact') %> | <% if !params[:linker] || params[:linker] === 'false' %>
<% if not deleted %>
<%= link_to I18n.t("actions.view"), {:controller => :resolver, :action => :resolve_readonly, :uri => result["id"]}, :class => "btn btn-xs btn-default" %>
<% if can_edit_search_result?(result) %>
<%= link_to I18n.t("actions.edit"), {:controller => :resolver, :action => :resolve_edit, :uri => result["id"]}, :class => "btn btn-xs btn-primary" %>
<% end %>
<% if result['primary_type'] === "repository" and @repositories.any?{|r| r['uri'] === result['id']} %>
<% if current_repo['uri'] != result['id'] %>
<%= form_tag({:action => :select, :id => JSONModel(:repository).id_for(result['id'])}, {:style => "display: inline;"}) do |f| %>
<% end %>
<% end %>
<% end %>
<% end %>
|
<% end %>
<%= I18n.t("search_results.no_results") %>
<% end %>