app/views/search_results/_sidebar.html.erb in iqvoc-4.12.0 vs app/views/search_results/_sidebar.html.erb in iqvoc-4.12.1

- old
+ new

@@ -1,8 +1,13 @@ -<% if results %> - <%= sidebar do %> +<%= sidebar do %> + <% if results %> <%= sidebar_header t('txt.common.representations') %> <%= sidebar_item :icon => 'link', :text => 'RDF/XML', :path => rdf_search_path({:lang => nil, :page => results.current_page, :format => :rdf}.merge(request.query_parameters)), :id => 'rdf_link_xml' %> <%= sidebar_item :icon => 'link', :text => 'RDF/Turtle', :path => rdf_search_path({:lang => nil, :page => @results.current_page, :format => :ttl}.merge(request.query_parameters)), :id => 'rdf_link_ttl' %> <%= sidebar_item :icon => 'link', :text => 'RDF/NTriples', :path => rdf_search_path({:lang => nil, :page => @results.current_page, :format => :nt}.merge(request.query_parameters)), :id => 'rdf_link_nt' %> + <% end %> + + <%= sidebar_header 'Links' if can?(:create, Iqvoc::Concept.base_class) %> + <% (Iqvoc.first_level_classes - [Collection::SKOS::Unordered]).each do |klass| %> + <%= sidebar_item { render(klass.new_link_partial_name) } %> <% end %> <% end %>