Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Oct 16, 2023
2 parents f49cd49 + dc6ede1 commit 775c594
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 775c594

Please sign in to comment.