Skip to content

Commit

Permalink
soft validation for misapplication
Browse files Browse the repository at this point in the history
  • Loading branch information
proceps committed Jan 21, 2025
1 parent b5dfe36 commit c7b5e07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ def self.disjoint_taxon_name_relationships
TaxonNameRelationship::Iczn::Invalidating::Homonym)
end

def self.disjoint_subject_classes
self.parent.disjoint_subject_classes +
self.collect_to_s(TaxonNameClassification::Iczn::Available::Valid)
end

def self.disjoint_object_classes
self.parent.disjoint_object_classes +
self.collect_descendants_and_itself_to_s(TaxonNameClassification::Iczn::Unavailable)
Expand Down
5 changes: 5 additions & 0 deletions app/models/taxon_name_relationship/iczn/invalidating/usage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ def self.disjoint_taxon_name_relationships
[TaxonNameRelationship::Iczn::Invalidating.to_s]
end

def self.disjoint_subject_classes
self.parent.disjoint_subject_classes +
self.collect_to_s(TaxonNameClassification::Iczn::Available::Valid)
end

def self.assignable
false
end
Expand Down

0 comments on commit c7b5e07

Please sign in to comment.