Class: TaxonNameRelationship::Icvcn::Unaccepting::Supressed
Constant Summary
collapse
- NOMEN_URI =
'http://purl.obolibrary.org/obo/NOMEN_0000123'.freeze
Class Method Summary
collapse
Instance Method Summary
collapse
assignable
disjoint_object_classes, disjoint_subject_classes, valid_object_ranks, valid_subject_ranks
Class Method Details
.assignment_method ⇒ Object
37
38
39
40
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 37
def self.assignment_method
:icvcn_set_as_suppressed_of
end
|
.disjoint_taxon_name_relationships ⇒ Object
5
6
7
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 5
def self.disjoint_taxon_name_relationships
self.parent.disjoint_taxon_name_relationships
end
|
.gbif_status_of_object ⇒ Object
29
30
31
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 29
def self.gbif_status_of_object
'conservandum'
end
|
.gbif_status_of_subject ⇒ Object
25
26
27
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 25
def self.gbif_status_of_subject
'rejiciendum'
end
|
.inverse_assignment_method ⇒ Object
43
44
45
46
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 43
def self.inverse_assignment_method
:icvcn_suppressed
end
|
.nomenclatural_priority ⇒ Object
33
34
35
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 33
def self.nomenclatural_priority
:reverse
end
|
Instance Method Details
#object_status ⇒ Object
9
10
11
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 9
def object_status
'conserved'
end
|
#object_status_connector_to_subject ⇒ Object
21
22
23
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 21
def object_status_connector_to_subject
' for'
end
|
#subject_status ⇒ Object
13
14
15
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 13
def subject_status
'suppressed'
end
|
#subject_status_connector_to_object ⇒ Object
17
18
19
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 17
def subject_status_connector_to_object
' under'
end
|
#sv_validate_priority ⇒ Object
48
49
50
51
52
53
54
|
# File 'app/models/taxon_name_relationship/icvcn/unaccepting/supressed.rb', line 48
def sv_validate_priority
date1 = self.subject_taxon_name.cached_nomenclature_date
date2 = self.object_taxon_name.cached_nomenclature_date
if !!date1 && !!date2 && date1 > date2 && subject_invalid_statuses.empty?
soft_validations.add(:type, "#{self.subject_status.capitalize} #{self.subject_taxon_name.cached_html_name_and_author_year} should not be younger than #{self.object_taxon_name.cached_html_name_and_author_year}")
end
end
|