Skip to content

Commit

Permalink
bring ontology acronym if class found
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Sep 14, 2022
1 parent 2b656eb commit 7b67f9d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ def find_class(class_id, submission)
c = LinkedData::Models::Class.find(RDF::URI.new(class_id))
.in(submission)
.first
c.submission.bring :ontology if c.submission.bring?(:ontology)
c.submission.ontology.bring :acronym if c.submission.ontology.bring?(:acronym)
if c
c.submission.bring :ontology if c.submission.bring?(:ontology)
c.submission.ontology.bring :acronym if c.submission.ontology.bring?(:acronym)
end

end
[c, submission]
end
Expand Down

0 comments on commit 7b67f9d

Please sign in to comment.