<%= page_header :title => t("txt.views.similar_terms.title") %> <% if @terms %> <%= sidebar do %> <%= sidebar_header t('txt.common.representations') %> <%= sidebar_item :icon => 'share', :text => 'HTML', :path => similar_path(:terms => params[:terms], :format => :html) %> <%= sidebar_item :icon => 'share', :text => 'RDF/XML', :path => similar_path(:terms => params[:terms], :format => :rdf) %> <%= sidebar_item :icon => 'share', :text => 'RDF/Turtle', :path => similar_path(:terms => params[:terms], :format => :ttl) %> <% end %> <% end %> <%= bootstrap_form_tag(:url => similar_path, :method => :get, :layout => :inline) do |f| %> <%= f.text_field :terms, :hide_label => true, :value => (@terms ? InlineDataHelper.generate_inline_values(@terms) : params[:terms]) %> <%= f.submit t('txt.views.search_results.submit'), :class => 'btn btn-primary' %> <% end %>
    <% (@results || []).each do |data| label = data[0] concepts = data[1..-1] %>
  1. <%= label.value %> (<%= concepts.map do |concept| origin = concept.origin link_to origin, rdf_url(origin, :format => nil, :lang => nil) end.join(", ").html_safe %>)
  2. <% end %>