Class: TaxonNameRelationship::Iczn::PotentiallyValidating::FamilyBefore1961
Constant Summary
collapse
- NOMEN_URI =
'http://purl.obolibrary.org/obo/NOMEN_0000042'.freeze
Class Method Summary
collapse
Instance Method Summary
collapse
disjoint_object_classes, disjoint_subject_classes, gbif_status_of_object, #subject_status_connector_to_object
disjoint_object_classes, disjoint_subject_classes, #sv_validate_priority
Class Method Details
.assignable ⇒ Object
41
42
43
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 41
def self.assignable
true
end
|
.assignment_method ⇒ Object
30
31
32
33
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 30
def self.assignment_method
:iczn_set_as_family_before_1961_of
end
|
.inverse_assignment_method ⇒ Object
36
37
38
39
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 36
def self.inverse_assignment_method
:iczn_family_before_1961
end
|
.nomenclatural_priority ⇒ Object
26
27
28
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 26
def self.nomenclatural_priority
:direct
end
|
.valid_object_ranks ⇒ Object
14
15
16
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 14
def self.valid_object_ranks
FAMILY_RANK_NAMES_ICZN
end
|
.valid_subject_ranks ⇒ Object
9
10
11
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 9
def self.valid_subject_ranks
FAMILY_RANK_NAMES_ICZN
end
|
Instance Method Details
#object_status ⇒ Object
18
19
20
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 18
def object_status
'family name based on genus synonym replaced before 1961'
end
|
#subject_status ⇒ Object
22
23
24
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 22
def subject_status
'validated as replacement for family-group name based on genus synonym before 1961'
end
|
#sv_coordinated_taxa ⇒ Object
57
58
59
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 57
def sv_coordinated_taxa
true
end
|
#sv_source_after_1960 ⇒ Object
50
51
52
53
54
55
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 50
def sv_source_after_1960
if self.source
s = subject_taxon_name
soft_validations.add(:base, "#{s.cached_html_name_and_author_year} should be accepted as a replacement name before 1961") if self.source.year > 1960
end
end
|
#sv_year_of_description ⇒ Object
45
46
47
48
|
# File 'app/models/taxon_name_relationship/iczn/potentially_validating/family_before1961.rb', line 45
def sv_year_of_description
s = subject_taxon_name
soft_validations.add(:type, "#{s.cached_html_name_and_author_year} was not described before 1961") if s.year_of_publication && s.year_of_publication > 1960
end
|