app/views/partials/concept/relation/skos/_narrower.html.erb in iqvoc-4.4.0 vs app/views/partials/concept/relation/skos/_narrower.html.erb in iqvoc-4.5.0

- old
+ new

@@ -1,10 +1,14 @@ <div class="relation panel"> <h2><%= Iqvoc::Concept.broader_relation_class.narrower_class.model_name.human(:count => 2) %></h2> <div class="relation-body"> <% if concept.narrower_relations.any? %> <div class="selector"> - <%= treeview(concept.narrower_relations.map(&:target)) %> + <% if(params[:published] == '0') %> + <%= treeview(concept.narrower_relations.published_with_newer_versions.map(&:target)) %> + <% else %> + <%= treeview(concept.narrower_relations.published.map(&:target)) %> + <% end %> </div> <% end %> </div> </div>