Skip to content

Commit

Permalink
FIx #43
Browse files Browse the repository at this point in the history
  • Loading branch information
vdkkia committed Jun 3, 2022
1 parent 54b8648 commit f647ff5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/helpers/sample_types_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ def attribute_type_link(sample_type_attribute)
end

if sample_type_attribute.controlled_vocab?
type += ' - ' + link_to(sample_type_attribute.sample_controlled_vocab.title, sample_type_attribute.sample_controlled_vocab)
title =
if sample_type_attribute.sample_attribute_type.ontology?
sample_type_attribute.sample_controlled_vocab.ols_root_term_uri
else
sample_type_attribute.sample_controlled_vocab.title
end
type += ' - ' + link_to(title, sample_type_attribute.sample_controlled_vocab)
end
type
end
Expand Down

0 comments on commit f647ff5

Please sign in to comment.