app/views/partials/concept/relation/skos/broader/_mono.html.erb in iqvoc-3.5.3 vs app/views/partials/concept/relation/skos/broader/_mono.html.erb in iqvoc-3.5.4
- old
+ new
@@ -1,8 +1,11 @@
<div class="relation">
<h4><%= Iqvoc::Concept.broader_relation_class.model_name.human(:count => 2) %></h4>
<div class="relation-body block">
+ <% if concept.top_term? %>
+ <strong><%= concept.class.human_attribute_name("top_term") %></strong>
+ <% end %>
<%-
only_published = params[:published] != "0"
related_concepts = concept.related_concepts_for_relation_class(
Iqvoc::Concept.broader_relation_class, only_published)
@@ -19,10 +22,10 @@
end %>
<%= parents.map { |concept|
render concept.class.inline_partial_name, :concept => concept
}.join(" « ").html_safe %>
</div>
- <% else %>
+ <% elsif not concept.top_term? %>
<p>-</p>
<% end %>
</div>
</div>