Skip to content

Commit

Permalink
Merge pull request #13 from ontoportal-lirmm/fix/bug-obsolete-class
Browse files Browse the repository at this point in the history
Fix: bug of obsolete class
  • Loading branch information
syphax-bouazzouni authored Oct 16, 2023
2 parents 8823ac7 + da65de5 commit dc6ede1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ontologies_api_client/models/class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class Class < LinkedData::Client::Base

# triple store predicate is <http://www.w3.org/2002/07/owl#deprecated>
def obsolete?
self.obsolete
self.obsolete && self.obsolete.to_s.eql?("true")
end

def prefLabel(options = {})
if options[:use_html]
if self.obsolete
if obsolete?
return "<span class='obsolete_class' title='obsolete class'>#{@prefLabel}</span>"
else
return "<span class='prefLabel'>#{@prefLabel}</span>"
Expand Down

0 comments on commit dc6ede1

Please sign in to comment.