Module: Protonym::SoftValidationExtensions::Klass

Defined in:
app/models/protonym/soft_validation_extensions.rb

Constant Summary

VALIDATIONS =
{
  sv_validate_parent_rank: {
    set:         :validate_parent_rank,
    resolution:  [],
    name:        'Validate parent rank',
    description: 'Validates parent rank.'
  },

  sv_missing_original_genus: { set: :missing_relationships, has_fix: false},
  sv_missing_type_species: { set: :missing_relationships, has_fix: false},
  sv_missing_type_genus: { set: :missing_relationships, has_fix: false},
  sv_missing_substitute_name: { set: :missing_relationships, has_fix: false},
  sv_missing_part_of_speach: { set: :missing_classifications, has_fix: false},
  sv_missing_gender: { set: :missing_classifications, has_fix: false},
  sv_species_gender_agreement: { set: :species_gender_agreement, has_fix: false},
  sv_species_gender_agreement_not_required: { set: :species_gender_agreement, has_fix: false},
  sv_type_placement: { set: :type_placement, has_fix: false},
  sv_type_placement1: { set: :type_placement, has_fix: false},
  sv_primary_types: { set: :primary_types, has_fix: false},
  sv_primary_types_repository: { set: :primary_types, has_fix: false},
#      sv_validate_coordinated_names: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_source: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_author: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_year: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_gender: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_part_of_speach: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_original_genus: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_original_subgenus: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_original_species: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_original_subspecies: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_original_variety: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_original_form: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_type_species: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_type_species_type: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_type_genus: { set: :validate_coordinated_names, has_fix: true},
  sv_validate_coordinated_names_type_specimen: { set: :validate_coordinated_names, has_fix: true},
  sv_single_sub_taxon: { set: :single_sub_taxon, has_fix: true},
  sv_parent_priority: { set: :parent_priority, has_fix: false},
  sv_homotypic_synonyms: { set: :homotypic_synonyms, has_fix: false},
  sv_potential_family_homonyms: { set: :potential_homonyms, has_fix: false},
  sv_potential_genus_homonyms: { set: :potential_homonyms, has_fix: false},
  sv_potential_species_homonyms: { set: :potential_homonyms, has_fix: false},
  sv_source_not_older_then_description: { set: :dates, has_fix: false},
  sv_original_combination_relationships: { set: :original_combination_relationships, has_fix: false},
  sv_extant_children: { set: :extant_children, has_fix: false},
  sv_protonym_to_combination: { set: :protonym_to_combination, has_fix: false},
  sv_missing_roles: { set: :missing_roles, has_fix: false},
  sv_year_is_not_required: { set: :year_is_not_required, has_fix: true },
  sv_author_is_not_required: { set: :author_is_not_required, has_fix: true },
  sv_misspelling_roles_are_not_required: { set: :roles_are_not_required, has_fix: true },
  sv_misspelling_author_is_not_required: { set: :roles_are_not_required, has_fix: true },
  sv_misspelling_year_is_not_required: { set: :roles_are_not_required, has_fix: true }
}.freeze