onoma 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/LICENSE.md +609 -0
- data/config/locales/eng.yml +15 -0
- data/config/locales/fra.yml +15 -0
- data/lib/onoma.rb +2 -0
- data/lib/onoma/item.rb +32 -19
- data/lib/onoma/migration/actions/item_change.rb +5 -5
- data/lib/onoma/migration/actions/item_creation.rb +4 -5
- data/lib/onoma/migration/actions/nomenclature_change.rb +1 -0
- data/lib/onoma/migration/actions/nomenclature_creation.rb +8 -1
- data/lib/onoma/migration/actions/property_creation.rb +2 -1
- data/lib/onoma/migration/base.rb +1 -0
- data/lib/onoma/migrator/translation.rb +2 -1
- data/lib/onoma/nomenclature.rb +57 -24
- data/lib/onoma/nomenclature_set.rb +3 -0
- data/lib/onoma/property_nature.rb +1 -0
- data/lib/onoma/record/base.rb +4 -2
- data/lib/onoma/version.rb +1 -1
- data/onoma.gemspec +14 -12
- metadata +54 -294
- data/.gitignore +0 -13
- data/.gitlab-ci.yml +0 -14
- data/.travis.yml +0 -4
- data/LICENSE.txt +0 -21
- data/db/migrate/20150813022423_add_data.xml +0 -5740
- data/db/migrate/20150813224145_fix_zea.xml +0 -14
- data/db/migrate/20150813224155_fix_hordeum.xml +0 -175
- data/db/migrate/20150814104907_rename_charts_of_accounts.xml +0 -4
- data/db/migrate/20150817202608_rename_abaci.xml +0 -19
- data/db/migrate/20150818132801_add_vinifera_product_exchangers.xml +0 -4
- data/db/migrate/20150818152001_add_wine_bottles.xml +0 -13
- data/db/migrate/20150818232501_add_vinifera_sale_exchangers.xml +0 -4
- data/db/migrate/20150820212931_remove_abaci.xml +0 -19
- data/db/migrate/20150821082601_add_grain_variants.xml +0 -4
- data/db/migrate/20150821230800_rename_invalid_document_natures.xml +0 -12
- data/db/migrate/20150825180658_add_production_usages.xml +0 -5
- data/db/migrate/20150826091319_add_leguminous_crop.xml +0 -11
- data/db/migrate/20150826092813_add_cannabis_varieties.xml +0 -51
- data/db/migrate/20150826100013_add_thicket_varieties.xml +0 -9
- data/db/migrate/20150826103353_add_eis_plant.xml +0 -31
- data/db/migrate/20150902081701_add_garden_varieties.xml +0 -7
- data/db/migrate/20150905094701_add_milklic_individual_production_exchangers.xml +0 -4
- data/db/migrate/20150914095928_add_meteorological_analysis_nature.xml +0 -46
- data/db/migrate/20150916110501_add_grain_analysis.xml +0 -5
- data/db/migrate/20150916151652_fix_product_nature_variant_units.xml +0 -515
- data/db/migrate/20150919123840_fix_plant_varieties.xml +0 -36
- data/db/migrate/20150919223801_change_walnut_nature.xml +0 -6
- data/db/migrate/20150920212201_add_fruit_harvest.xml +0 -4
- data/db/migrate/20150921104001_add_fuel_consumption_indicator.xml +0 -7
- data/db/migrate/20150921110601_add_crumbs_exchangers.xml +0 -4
- data/db/migrate/20150921175601_add_units_liter_per_hour.xml +0 -4
- data/db/migrate/20151001154701_add_missing_variants.xml +0 -9
- data/db/migrate/20151019090110_add_json_exchange_natures.xml +0 -11
- data/db/migrate/20151021172901_add_missing_indicator_on_animals.xml +0 -12
- data/db/migrate/20151027095601_add_missing_issue_natures.xml +0 -6
- data/db/migrate/20151102110723_add_daily_nitrogen_production_indicator.xml +0 -4
- data/db/migrate/20151107122501_add_cap_statements_exchangers.xml +0 -4
- data/db/migrate/20151111212501_add_missing_cap_productions.xml +0 -15
- data/db/migrate/20151117192943_change_procedure_nomenclatures.xml +0 -159
- data/db/migrate/20151122101101_add_missing_tropical_cap_varieties.xml +0 -33
- data/db/migrate/20151125163801_add_missing_varieties.xml +0 -7
- data/db/migrate/20151209000401_add_missing_crop_sets.xml +0 -12
- data/db/migrate/20151209011801_add_missing_varieties.xml +0 -45
- data/db/migrate/20151209094701_add_oleaginous_missing_varieties.xml +0 -11
- data/db/migrate/20151209103601_add_proteaginous_missing_varieties.xml +0 -6
- data/db/migrate/20151210150144_add_daucus_carota_varieties.xml +0 -38
- data/db/migrate/20151210163440_add_phaseolus_varieties.xml +0 -11
- data/db/migrate/20151210164511_add_allium_porrum_varieties.xml +0 -13
- data/db/migrate/20151210170103_add_allium_cepa_varieties.xml +0 -6
- data/db/migrate/20151211114316_add_beta_varieties.xml +0 -4
- data/db/migrate/20151211115500_add_brassica_varieties.xml +0 -50
- data/db/migrate/20151211124757_add_allium_schoenoprasum_varieties.xml +0 -4
- data/db/migrate/20151211132045_add_cucurbita_varieties.xml +0 -13
- data/db/migrate/20151211143806_add_spinacia_oleracea_varieties.xml +0 -5
- data/db/migrate/20151211151402_add_lactuca_varieties.xml +0 -6
- data/db/migrate/20151211153218_add_zea_mays_varieties.xml +0 -46
- data/db/migrate/20151214084817_add_hordeum_varieties.xml +0 -5
- data/db/migrate/20151214085342_add_pastinaca_sativa_varieties.xml +0 -4
- data/db/migrate/20151214085721_add_pisum_sativum_varieties.xml +0 -8
- data/db/migrate/20151214090420_add_solanum_tuberosum_varieties.xml +0 -4
- data/db/migrate/20151214091020_add_raphanus_varieties.xml +0 -8
- data/db/migrate/20151214092727_add_glycine_max_varieties.xml +0 -4
- data/db/migrate/20151215132825_add_abilities.xml +0 -7
- data/db/migrate/20151215133320_add_equipment_variants.xml +0 -43
- data/db/migrate/20151215214901_add_openwheatermap_identifiers.xml +0 -5
- data/db/migrate/20151216095351_add_ridger_equipment_variants.xml +0 -4
- data/db/migrate/20151216100708_add_lifter_equipment_variants.xml +0 -4
- data/db/migrate/20151216160914_add_raphanus_sativus_varieties.xml +0 -4
- data/db/migrate/20151216182551_add_more_units.xml +0 -7
- data/db/migrate/20151218081701_add_crops_issue_natures.xml +0 -11
- data/db/migrate/20151222162657_add_varieties.xml +0 -18
- data/db/migrate/20151222180021_remove_population.xml +0 -402
- data/db/migrate/20151223164501_update_organic_fertilizer.xml +0 -4
- data/db/migrate/20151223171801_update_indicators.xml +0 -4
- data/db/migrate/20160104145418_add_matters.xml +0 -14
- data/db/migrate/20160104160843_change_product_nature_variants_drain.xml +0 -4
- data/db/migrate/20160105095120_add_plugin_cap_varieties.xml +0 -261
- data/db/migrate/20160106095232_add_orchard_plugin_cap_varieties.xml +0 -405
- data/db/migrate/20160108142009_add_product_nature_variants_nematicide.xml +0 -6
- data/db/migrate/20160113144856_update_prunus_avium_parent.xml +0 -32
- data/db/migrate/20160115090243_change_plant_varieties.xml +0 -7
- data/db/migrate/20160119115401_add_shipping_note_document.xml +0 -4
- data/db/migrate/20160128093149_fixes_invalid_parent.xml +0 -102
- data/db/migrate/20160128154202_add_product_natures_protective_canvas.xml +0 -6
- data/db/migrate/20160204115942_change_protective_net_nature.xml +0 -4
- data/db/migrate/20160204122030_change_cover_implanter_abilities.xml +0 -6
- data/db/migrate/20160206163031_simplifies_activity_families.xml +0 -135
- data/db/migrate/20160207142352_fix_spelling_mistakes_on_associate_accounts.xml +0 -7
- data/db/migrate/20160210124624_fix_invalid_abilities_on_product_natures.xml +0 -5
- data/db/migrate/20160224234901_add_seedling_sorting.xml +0 -4
- data/db/migrate/20160310145038_add_rhodes_grass.xml +0 -5
- data/db/migrate/20160315152217_remove_exchange_natures.xml +0 -4
- data/db/migrate/20160402125244_add_some_heavy_equipment.xml +0 -14
- data/db/migrate/20160408223901_change_zea_variety.xml +0 -14
- data/db/migrate/20160410082230_add_chemical_classifications.xml +0 -486
- data/db/migrate/20160425100840_add_product_nature_corn_topper.xml +0 -6
- data/db/migrate/20160427115742_add_production_systems.xml +0 -9
- data/db/migrate/20160428085808_add_rows_count_indicator.xml +0 -4
- data/db/migrate/20160503131928_add_equipment_indicators.xml +0 -34
- data/db/migrate/20160503155351_fix_taxes.xml +0 -15
- data/db/migrate/20160504143733_add_units.xml +0 -6
- data/db/migrate/20160509100749_change_item_corn_topper.xml +0 -4
- data/db/migrate/20160516075201_add_plant_analysis.xml +0 -4
- data/db/migrate/20160520144901_update_plant_analysis.xml +0 -5
- data/db/migrate/20160525073342_update_spreader_trailer_product_nature.xml +0 -4
- data/db/migrate/20160526075245_update_spreader_trailer_abilities.xml +0 -4
- data/db/migrate/20160526092246_update_product_natures_and_variants_for_vegetables.xml +0 -37
- data/db/migrate/20160527090330_update_product_natures_seed.xml +0 -5
- data/db/migrate/20160531071525_add_procedure_actions.xml +0 -6
- data/db/migrate/20160531094927_add_items_for_pollination_pocedure.xml +0 -9
- data/db/migrate/20160605122001_add_worker_register.xml +0 -4
- data/db/migrate/20160608075549_update_spatial_reference_systems.xml +0 -5437
- data/db/migrate/20160608202134_add_missing_procedure_actions.xml +0 -6
- data/db/migrate/20160613154204_add_product_nature_variants_hoe_weeder.xml +0 -6
- data/db/migrate/20160615121350_add_pivots_in_nomenclature.xml +0 -11
- data/db/migrate/20160615122805_add_daily_average_working_time_indicator_and_lifespan_indicators.xml +0 -6
- data/db/migrate/20160617142409_add_items_for_hay_bales.xml +0 -8
- data/db/migrate/20160622121241_add_procedure_action_conservation_plowing.xml +0 -4
- data/db/migrate/20160624073237_add_musca_varieties.xml +0 -5
- data/db/migrate/20160627095008_add_weeding_kit.xml +0 -5
- data/db/migrate/20160630075849_update_product_nature_additive.xml +0 -4
- data/db/migrate/20160630124401_fix_coop_variants.xml +0 -9
- data/db/migrate/20160719094049_add_new_procedure_actions.xml +0 -6
- data/db/migrate/20160719100836_add_issue_nature.xml +0 -4
- data/db/migrate/20160720144130_update_equipment_varieties.xml +0 -33
- data/db/migrate/20160721124220_update_product_natures_varieties.xml +0 -58
- data/db/migrate/20160725182008_fix_abilities_on_old_equipment.xml +0 -4
- data/db/migrate/20160726173309_rename_equipments_to_equipment.xml +0 -6
- data/db/migrate/20160727092830_update_malus_pumila_variety_name.xml +0 -4
- data/db/migrate/20160802123639_update_unit_name_for_equipment_product_nature_variants.xml +0 -39
- data/db/migrate/20160816083232_add_issue_natures.xml +0 -6
- data/db/migrate/20160819082951_Add_plant_varieties.xml +0 -10
- data/db/migrate/20160829072846_add_procedure_action.xml +0 -4
- data/db/migrate/20160830153251_add_new_varieties.xml +0 -6
- data/db/migrate/20160909225801_add_missing_stock_variation_accounts.xml +0 -17
- data/db/migrate/20160911091901_update_product_nature_categories.xml +0 -53
- data/db/migrate/20160912182501_fix_product_nature_categories.xml +0 -5
- data/db/migrate/20160914114043_add_tool_maintaining_support.xml +0 -7
- data/db/migrate/20160915143142_add_pest_related_indicators.xml +0 -5
- data/db/migrate/20160919210501_add_transportation_actions.xml +0 -4
- data/db/migrate/20160928113101_add_missing_general_accounts.xml +0 -108
- data/db/migrate/20160930091201_add_missing_tax_natures.xml +0 -17
- data/db/migrate/20161017090516_fix_product_nature_categories_stock_movement_account.xml +0 -5
- data/db/migrate/20161019133613_add_ednotif_eu_country_code.xml +0 -33
- data/db/migrate/20161019145441_add_ednotif_animal_indicators.xml +0 -22
- data/db/migrate/20161022103401_add_portuguese_chart_of_account.xml +0 -34
- data/db/migrate/20161024115013_add_ednotif_indicators_to_cow_product_natures.xml +0 -7
- data/db/migrate/20161030174001_add_missing_cap_2016_varieties.xml +0 -13
- data/db/migrate/20161103111303_add_plants_sorting_action.xml +0 -4
- data/db/migrate/20161202083820_add_new_plant_varieties.xml +0 -13
- data/db/migrate/20161212181852_add_procedure_categories.xml +0 -5
- data/db/migrate/20161214093347_add_procedure_actions.xml +0 -10
- data/db/migrate/20161219171601_add_missing_vat_accounts.xml +0 -4
- data/db/migrate/20161219231801_add_outgoing_payment_report.xml +0 -4
- data/db/migrate/20170104161824_add_indicators_for_plant_analysis.xml +0 -6
- data/db/migrate/20170201180806_set_animal_group_population_counting_to_unitary.xml +0 -23
- data/db/migrate/20170203132125_update_momenclature_for_animal_housing_mulching_procedure.xml +0 -7
- data/db/migrate/20170206125311_update_nomenclature_for_animal_housing_disinfection_procedure.xml +0 -5
- data/db/migrate/20170206163322_update_disinfectant_product_variant.xml +0 -4
- data/db/migrate/20170214125925_clean_cow_indicators.xml +0 -8
- data/db/migrate/20170216100144_add_algerian_vat.xml +0 -10
- data/db/migrate/20170219210901_add_fixed_asset_registry.xml +0 -4
- data/db/migrate/20170220211447_add_procedure_category.xml +0 -4
- data/db/migrate/20170220222412_add_procedure_action.xml +0 -4
- data/db/migrate/20170221102405_add_milking_robot_in_nomenclature.xml +0 -6
- data/db/migrate/20170222113119_add_animal_varieties.xml +0 -29
- data/db/migrate/20170306154901_add_missing_outstanding_account.xml +0 -4
- data/db/migrate/20170308232701_add_fr_pcga_profit_and_loss.xml +0 -4
- data/db/migrate/20170312112401_add_fr_pcga_balance_sheet.xml +0 -4
- data/db/migrate/20170312172301_add_fr_pcg82_balance_sheet.xml +0 -5
- data/db/migrate/20170320073301_add_journal_entry_sheet.xml +0 -8
- data/db/migrate/20170320144338_add_sundry_debtors_and_creditors_usage.xml +0 -4
- data/db/migrate/20170322223101_add_loan_registry.xml +0 -4
- data/db/migrate/20170324084701_add_fixed_asset_sheet.xml +0 -4
- data/db/migrate/20170328144501_add_pnt_loan_accounts.xml +0 -5
- data/db/migrate/20170328165900_update_foliar_spray_product_nature.xml +0 -4
- data/db/migrate/20170328170000_add_indicator.xml +0 -4
- data/db/migrate/20170328170100_update_product_nature_seedling.xml +0 -6
- data/db/migrate/20170328170200_add_indicators.xml +0 -4
- data/db/migrate/20170328170300_add_indicators2.xml +0 -4
- data/db/migrate/20170328170400_update_seedling_product_natures.xml +0 -4
- data/db/migrate/20170405135101_add_account_journal_entry_sheet.xml +0 -4
- data/db/migrate/20170407214236_add_portuguese_account_config.xml +0 -4
- data/db/migrate/20170524094443_add_urtica_variety.xml +0 -5
- data/db/migrate/20170614130921_add_varieties.xml +0 -117
- data/db/migrate/20170627075545_add_varieties2.xml +0 -37
- data/db/migrate/20170627081533_add_pending_deposit_payments_account_number_for_pt_accounting_system.xml +0 -4
- data/db/migrate/20170718131724_add_issue_natures.xml +0 -54
- data/db/migrate/20170803164344_add_procedure_nature_and_category.xml +0 -5
- data/db/migrate/20170904223101_add_cultivable_zone_registry.xml +0 -4
- data/db/migrate/20170914083358_add_new_product_nature_variants.xml +0 -14
- data/db/migrate/20170927144852_add_kiwi_varieties.xml +0 -7
- data/db/migrate/20171106085357_update_account_numbers.xml +0 -431
- data/db/migrate/20171212081801_add_fiscal_positions.xml +0 -12
- data/db/migrate/20180408190101_add_new_plant_variants.xml +0 -7
- data/db/migrate/20180409130101_add_common_crop.xml +0 -4
- data/db/migrate/20180418085027_add-hour-counter-indicator.xml +0 -9
- data/db/migrate/20180709134310_add_centralizing_field_to_accounts.xml +0 -22
- data/db/migrate/20180711093131_review_all_accounts_number_and_fallbacks.xml +0 -431
- data/db/migrate/20180806080646_edit_centralizing_field_accounts.xml +0 -17
- data/db/migrate/20180814184001_add_missing_categories.xml +0 -12
- data/db/migrate/20180907160001_edit_accounts_to_unlock_first_run.xml +0 -21
- data/db/migrate/20181004220301_add_journal_ledger.xml +0 -4
- data/db/migrate/20181205162401_add_intra_vat.xml +0 -6
- data/db/migrate/20181213153405_fix_accounting_systems.xml +0 -7
- data/db/migrate/20181217155149_fiscal_position_refers_to_accounting_system.xml +0 -10
- data/db/migrate/20181217173101_fiscal_position_reference_typo.xml +0 -4
- data/db/migrate/20190315154040_add_suspense_account.xml +0 -4
- data/db/migrate/20190326110849_add_asset_fixable_to_product_nature_categories.xml +0 -25
- data/db/migrate/20190326135443_change_product_nature_category_cultivable_zone_into_land.xml +0 -21
- data/db/migrate/20190329133808_change_land_fixed_assets_account_usage.xml +0 -7
- data/db/migrate/20190405120711_delete_land_sales_account_and_assign_land_parcels_sell_revenues_to_land.xml +0 -5
- data/db/migrate/20190412071057_add_new_fixed_assets_andn_depreciable_accounts.xml +0 -22
- data/db/migrate/20190509092804_add_account_exceptional_depreciations_imputations_expenses_for_fixed_assets.xml +0 -4
- data/db/migrate/20190514084753_add_approved_input_volume.xml +0 -9
- data/db/migrate/20190520072403_add_new_accounts.xml +0 -58
- data/db/migrate/20190521170601_add_missing_taxes.xml +0 -7
- data/db/migrate/20190611101014_change_deductible_vat_account.xml +0 -5
- data/db/migrate/20190620092151_fix_conflicts_in_new_accounts.xml +0 -6
- data/db/migrate/20190625152636_change_mixture_seed_product_nature_variant.xml +0 -4
- data/db/migrate/20190718130243_remove_services_expenses.xml +0 -5
- data/db/migrate/20190801142431_remove_accounts_from_pcg82.xml +0 -5
- data/db/migrate/20190807125202_add_nature_to_product_natures.xml +0 -326
- data/db/migrate/20190823091727_fix-cubic-meter-per-hectare-symbol.xml +0 -5
- data/db/migrate/20190909150402_add_staff_supply_stock_account.xml +0 -4
- data/db/migrate/20190913102036_add_caliber_indicator.xml +0 -4
- data/db/migrate/20190917161215_add_missing_mass_area_density_units.xml +0 -21
- data/db/migrate/20190917161216_update_quintal_symbol.xml +0 -4
- data/db/migrate/20190917161217_adds_more_info_to_units.xml +0 -133
- data/db/migrate/20190918074757_add_new_accounts.xml +0 -8
- data/db/migrate/20191001122750_add_accounts_fixed_assets_related.xml +0 -10
- data/db/migrate/20191016152118_add_missing_document_templates.xml +0 -6
- data/db/migrate/20191028175001_add_short_balance_sheet.xml +0 -4
- data/db/migrate/20191029131921_add_vine_equipments.xml +0 -117
- data/db/migrate/20191112132413_remove_roller_from_product_natures.xml +0 -5
- data/db/migrate/20191113134626_add_nature_to_new_product_natures.xml +0 -11
- data/db/migrate/20191125133327_add_missing_units_and_indicators.xml +0 -5
- data/db/migrate/20200107095554_add_signed_field_to_document_nature.xml +0 -9
- data/db/migrate/20200305160358_add_varieties_for_phytosanitary.xml +0 -11
- data/db/migrate/20200421123503_add_type_to_categories_and_variants.xml +0 -1136
- data/db/migrate/20200514092205_add_liter_per_hectoliter_unit.xml +0 -4
- data/db/migrate/20200722091859_triticale_derivative_of.xml +0 -5
- data/db/migrate/20200826000010_add_area_units.xml +0 -4
- data/db/migrate/20200826000020_change_trailer_indicators.xml +0 -5
- data/db/migrate/20200826000030_add_new_production_systems.xml +0 -6
- data/db/migrate/20200826000040_add_viti_abilities.xml +0 -6
- data/db/migrate/20200826000060_create_vine_farming_activity_famillies.xml +0 -4
- data/db/migrate/20200826000070_remove_certifications_and_vitis_varieties.xml +0 -55
- data/db/migrate/20200826000080_add_new_indicators.xml +0 -14
- data/db/migrate/20200826000100_add_viti_procedure_actions.xml +0 -19
- data/db/migrate/20200826000110_add_vine_puning_systems.xml +0 -9
- data/db/migrate/20200826000120_add_vine_procedure_categories.xml +0 -10
- data/db/migrate/20200826000130_update_viti_product_nauture_variant.xml +0 -10
- data/db/migrate/20200925153320_fix_outgoing_payment_list_document_nature.xml +0 -7
- data/db/reference.xml +0 -12922
data/config/locales/eng.yml
CHANGED
@@ -719,6 +719,7 @@ eng:
|
|
719
719
|
silage_analysis: "Silage analysis"
|
720
720
|
soil_analysis: "Soil analysis"
|
721
721
|
unitary_cow_milk_analysis: "Unitary cow milk analysis"
|
722
|
+
vine_harvesting_analysis: "Vine harvesting analysis"
|
722
723
|
water_analysis: "Water analysis"
|
723
724
|
name: "Analysis natures"
|
724
725
|
property_natures:
|
@@ -2109,10 +2110,13 @@ eng:
|
|
2109
2110
|
period: "Period"
|
2110
2111
|
items:
|
2111
2112
|
aluminium_concentration: "Aluminium concentration"
|
2113
|
+
amino_nitrogen_concentration: "Amino nitrogen concentration"
|
2114
|
+
ammoniacal_nitrogen_concentration: "Ammoniacal nitrogen concentration"
|
2112
2115
|
animal_life_state: "Animal life state"
|
2113
2116
|
application_width: "Application width"
|
2114
2117
|
approved_input_dose: "Approved input dose"
|
2115
2118
|
approved_input_volume: "Approved input volume"
|
2119
|
+
assimilated_nitrogen_concentration: "Assimilated nitrogen concentration"
|
2116
2120
|
atmospheric_pressure: "Atmospheric pressure"
|
2117
2121
|
available_water_capacity_per_area: "Available water capacity per area"
|
2118
2122
|
average_atmospheric_pressure: "Average atmospheric pressure"
|
@@ -2154,6 +2158,8 @@ eng:
|
|
2154
2158
|
energy: "Energy"
|
2155
2159
|
entry_date: "Entry date"
|
2156
2160
|
entry_reason: "Entry reason"
|
2161
|
+
estimated_harvest_alcoholic_volumetric_concentration: "Estimated harvest alcoholic volumetric concentration"
|
2162
|
+
estimated_pressed_harvest_alcoholic_volumetric_concentration: "Estimated pressed harvest alcoholic volumetric concentration"
|
2157
2163
|
exit_date: "Exit date"
|
2158
2164
|
exit_reason: "Exit reason"
|
2159
2165
|
fat_matter_concentration_index: "Fat matter concentration index"
|
@@ -2192,6 +2198,7 @@ eng:
|
|
2192
2198
|
lipolysis: "Lipolysis"
|
2193
2199
|
livestock_unit: "Livestock unit"
|
2194
2200
|
magnesium_concentration: "Magnesium concentration"
|
2201
|
+
malic_acid_concentration: "Malic acid concentration"
|
2195
2202
|
mammalia_birth_condition: "Mammalia parturtion condition"
|
2196
2203
|
mammalia_birth_count: "Mammalia birth count"
|
2197
2204
|
mammalia_reproduction_event_abortion: "Mammalia reproduction event abortion"
|
@@ -2228,6 +2235,7 @@ eng:
|
|
2228
2235
|
mother_identification_number: "Mother identification number"
|
2229
2236
|
mother_race_code: "Mother race code"
|
2230
2237
|
motor_power: "Motor power"
|
2238
|
+
must_tasting: "Must tasting"
|
2231
2239
|
net_length: "Net length"
|
2232
2240
|
net_mass: "Net mass"
|
2233
2241
|
net_surface_area: "Net surface area"
|
@@ -2266,6 +2274,7 @@ eng:
|
|
2266
2274
|
rows_count: "Rows count"
|
2267
2275
|
rows_interval: "Rows interval"
|
2268
2276
|
rows_orientation: "Rows orientation"
|
2277
|
+
sanitary_vine_harvesting_state: "Sanitary vine harvesting state"
|
2269
2278
|
seedling_area_density: "Seedling area density"
|
2270
2279
|
seedling_count: "Seedling count"
|
2271
2280
|
sex: "Sex"
|
@@ -2290,6 +2299,7 @@ eng:
|
|
2290
2299
|
theoretical_working_speed: "Theoretical working speed"
|
2291
2300
|
thousand_grains_mass: "Thousand grains mass"
|
2292
2301
|
tiller_count: "Tiller count"
|
2302
|
+
total_acid_concentration: "Total acid concentration"
|
2293
2303
|
total_bacteria_concentration: "Total bacteria concentration"
|
2294
2304
|
unique_synthesis_index: "Unique synthesis index"
|
2295
2305
|
untreated_zone_length: "Untreated zone length"
|
@@ -2852,6 +2862,7 @@ eng:
|
|
2852
2862
|
plants_transformation: "Plants transformation"
|
2853
2863
|
soil_working: "Soil preparation"
|
2854
2864
|
textile_transformation: "Textile transformation"
|
2865
|
+
trellising: "Trellising"
|
2855
2866
|
troubleshooting: "Troubleshooting"
|
2856
2867
|
vine_fertilizing: "Vine fertilizing"
|
2857
2868
|
vine_land_maintenance: "Vine land maintenance"
|
@@ -3580,6 +3591,7 @@ eng:
|
|
3580
3591
|
gas_engine: "Gas engine"
|
3581
3592
|
gasoline: "Gasoline"
|
3582
3593
|
generic_animal_medicine: "Generic animal medicine"
|
3594
|
+
geolocation_box: "Geolocation box"
|
3583
3595
|
goat_herd: "Goat herd"
|
3584
3596
|
goat_milk: "Goat milk"
|
3585
3597
|
gooseberry_crop: "Gooseberry crop"
|
@@ -4087,6 +4099,7 @@ eng:
|
|
4087
4099
|
computer: "Computer"
|
4088
4100
|
computer_device: "Computer device"
|
4089
4101
|
congress: "Congress"
|
4102
|
+
connected_object: "Connected object"
|
4090
4103
|
construction_material_in_own_outstanding_installation: "Construction material in own outstanding installation"
|
4091
4104
|
consumer_goods_office_item: "Consumer goods office item"
|
4092
4105
|
cork: "Cork"
|
@@ -4651,6 +4664,7 @@ eng:
|
|
4651
4664
|
unity_per_kilogram: "Unity per kilogram"
|
4652
4665
|
unity_per_liter: "Unity per liter"
|
4653
4666
|
unity_per_square_meter: "Unity per square meter"
|
4667
|
+
volume_percent: "Percentage by volume"
|
4654
4668
|
watt: "Watt"
|
4655
4669
|
watt_per_square_meter: "Watt per square meter"
|
4656
4670
|
name: "Units"
|
@@ -5165,6 +5179,7 @@ eng:
|
|
5165
5179
|
coffea_stenophylla: "Coffea stenophylla"
|
5166
5180
|
compost: "Compost"
|
5167
5181
|
concentrated_rectified_must: "Concentrated rectified must"
|
5182
|
+
connected_object: "connected object"
|
5168
5183
|
convolvulaceae: "Convolvulaceae"
|
5169
5184
|
coriandrum: "Coriandrum"
|
5170
5185
|
coriandrum_sativum: "Coriander"
|
data/config/locales/fra.yml
CHANGED
@@ -793,6 +793,7 @@ fra:
|
|
793
793
|
silage_analysis: "Analyse d’ensilage"
|
794
794
|
soil_analysis: "Analyse de sol"
|
795
795
|
unitary_cow_milk_analysis: "Analyse d’un contrôle laitier"
|
796
|
+
vine_harvesting_analysis: "Analyse de vendange"
|
796
797
|
water_analysis: "Analyse d’eau"
|
797
798
|
name: "Types d’analyses"
|
798
799
|
property_natures:
|
@@ -2216,10 +2217,13 @@ fra:
|
|
2216
2217
|
period: "Périodique"
|
2217
2218
|
items:
|
2218
2219
|
aluminium_concentration: "Teneur en aluminium"
|
2220
|
+
amino_nitrogen_concentration: "Teneur en azote aminée"
|
2221
|
+
ammoniacal_nitrogen_concentration: "Teneur en azote ammoniacal"
|
2219
2222
|
animal_life_state: "Phase du bioprocessus de vie d’un animal"
|
2220
2223
|
application_width: "Largeur de travail"
|
2221
2224
|
approved_input_dose: "Dose autorisée"
|
2222
2225
|
approved_input_volume: "Dose autorisée"
|
2226
|
+
assimilated_nitrogen_concentration: "Teneur en azote assimilable"
|
2223
2227
|
atmospheric_pressure: "Pression atmosphérique"
|
2224
2228
|
available_water_capacity_per_area: "Réserve utile d’eau (RU)"
|
2225
2229
|
average_atmospheric_pressure: "Pression atmosphérique moyenne"
|
@@ -2260,6 +2264,8 @@ fra:
|
|
2260
2264
|
energy: "Énergie"
|
2261
2265
|
entry_date: "Date d'entrée"
|
2262
2266
|
entry_reason: "Motif d'entrée"
|
2267
|
+
estimated_harvest_alcoholic_volumetric_concentration: "TAVP vendange"
|
2268
|
+
estimated_pressed_harvest_alcoholic_volumetric_concentration: "TAVP jus de presse"
|
2263
2269
|
exit_date: "Date de sortie"
|
2264
2270
|
exit_reason: "Motif de sortie"
|
2265
2271
|
fat_matter_concentration_index: "Taux butyreux (TB)"
|
@@ -2298,6 +2304,7 @@ fra:
|
|
2298
2304
|
lipolysis: "Lipolyse"
|
2299
2305
|
livestock_unit: "Unité de gros bétail (UGB)"
|
2300
2306
|
magnesium_concentration: "Teneur en magnésium"
|
2307
|
+
malic_acid_concentration: "Teneur en acide malique"
|
2301
2308
|
mammalia_birth_condition: "Condition de mise bas"
|
2302
2309
|
mammalia_birth_count: "Cycle de naissance"
|
2303
2310
|
mammalia_reproduction_event_abortion: "Avortement"
|
@@ -2333,6 +2340,7 @@ fra:
|
|
2333
2340
|
mother_identification_number: "Numéro d'identification de la mère"
|
2334
2341
|
mother_race_code: "Code de la race de la mère"
|
2335
2342
|
motor_power: "Puissance du moteur"
|
2343
|
+
must_tasting: "Dégustation des moûts"
|
2336
2344
|
net_length: "Longueur nette"
|
2337
2345
|
net_mass: "Masse nette"
|
2338
2346
|
net_surface_area: "Surface nette"
|
@@ -2371,6 +2379,7 @@ fra:
|
|
2371
2379
|
rows_count: "Nombre de rangs"
|
2372
2380
|
rows_interval: "Intervalle inter-rangs"
|
2373
2381
|
rows_orientation: "Orientation des rangs"
|
2382
|
+
sanitary_vine_harvesting_state: "Etat sanitaire de la vendange"
|
2374
2383
|
seedling_area_density: "Plants par surface"
|
2375
2384
|
seedling_count: "Nombre de plants"
|
2376
2385
|
sex: "Sexe"
|
@@ -2395,6 +2404,7 @@ fra:
|
|
2395
2404
|
theoretical_working_speed: "Vitesse de travail théorique"
|
2396
2405
|
thousand_grains_mass: "Poids de mille grains"
|
2397
2406
|
tiller_count: "Nombre de talles"
|
2407
|
+
total_acid_concentration: "Acidité totale"
|
2398
2408
|
total_bacteria_concentration: "Dénombrement des germes totaux"
|
2399
2409
|
unique_synthesis_index: "Index de synthèse unique (ISU)"
|
2400
2410
|
untreated_zone_length: "Zone Non Traitée (ZNT)"
|
@@ -2957,6 +2967,7 @@ fra:
|
|
2957
2967
|
plants_transformation: "Transformation produits végétaux"
|
2958
2968
|
soil_working: "Travail du sol"
|
2959
2969
|
textile_transformation: "Transformation produits textiles"
|
2970
|
+
trellising: "Palissage"
|
2960
2971
|
troubleshooting: "Dépannage"
|
2961
2972
|
vine_fertilizing: "Fertilisation"
|
2962
2973
|
vine_land_maintenance: "Travaux fonciers / entretiens des installations"
|
@@ -3699,6 +3710,7 @@ fra:
|
|
3699
3710
|
gas_engine: "Machine à gaz"
|
3700
3711
|
gasoline: "Essence"
|
3701
3712
|
generic_animal_medicine: "Médicament vétérinaire"
|
3713
|
+
geolocation_box: "Boitier de géolocalisation"
|
3702
3714
|
goat_herd: "Troupeau de caprins"
|
3703
3715
|
goat_milk: "Lait de chèvre"
|
3704
3716
|
gooseberry_crop: "Culture de groseillier"
|
@@ -4210,6 +4222,7 @@ fra:
|
|
4210
4222
|
computer: "Ordinateur"
|
4211
4223
|
computer_device: "Pièce informatique"
|
4212
4224
|
congress: "Congrès"
|
4225
|
+
connected_object: "Objet connecté"
|
4213
4226
|
construction_material_in_own_outstanding_installation: "Matériel de construction sur sol propre"
|
4214
4227
|
consumer_goods_office_item: "Fourniture de bureau (consommable)"
|
4215
4228
|
cooperative_participation: "Titre de participations (cooperative)"
|
@@ -4900,6 +4913,7 @@ fra:
|
|
4900
4913
|
unity_per_kilogram: "Unité par kilogramme"
|
4901
4914
|
unity_per_liter: "Unité par litre"
|
4902
4915
|
unity_per_square_meter: "Unité par mètre carré"
|
4916
|
+
volume_percent: "Pourcentage volumique"
|
4903
4917
|
watt: "Watt"
|
4904
4918
|
watt_per_square_meter: "Watt par mètre carré"
|
4905
4919
|
name: "Unités de mesure"
|
@@ -5414,6 +5428,7 @@ fra:
|
|
5414
5428
|
coffea_stenophylla: "Caféier - Coffea stenophylla"
|
5415
5429
|
compost: "Compost"
|
5416
5430
|
concentrated_rectified_must: "Moût concentré rectifié"
|
5431
|
+
connected_object: "Objet connecté"
|
5417
5432
|
convolvulaceae: "Convolvulacée"
|
5418
5433
|
coriandrum: "Coriandrum"
|
5419
5434
|
coriandrum_sativum: "Coriandre"
|
data/lib/onoma.rb
CHANGED
@@ -62,6 +62,7 @@ module Onoma
|
|
62
62
|
# Returns version of DB
|
63
63
|
def reference_version
|
64
64
|
return 0 unless reference_path.exist?
|
65
|
+
|
65
66
|
reference_document.root['version'].to_i
|
66
67
|
end
|
67
68
|
|
@@ -116,6 +117,7 @@ module Onoma
|
|
116
117
|
elsif args.size == 1
|
117
118
|
return nomenclature.find(args.shift) if nomenclature
|
118
119
|
end
|
120
|
+
|
119
121
|
nil
|
120
122
|
end
|
121
123
|
|
data/lib/onoma/item.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# rubocop:disable Style/MissingRespondToMissing
|
1
2
|
require 'set'
|
2
3
|
|
3
4
|
module Onoma
|
@@ -48,6 +49,7 @@ module Onoma
|
|
48
49
|
if item.parents.any? { |p| self == p } || self == item
|
49
50
|
raise 'Circular dependency. Item can be parent of itself.'
|
50
51
|
end
|
52
|
+
|
51
53
|
@parent = item
|
52
54
|
@parent_name = @parent.name.to_s
|
53
55
|
end
|
@@ -78,10 +80,12 @@ module Onoma
|
|
78
80
|
|
79
81
|
def parent
|
80
82
|
return @parent if @parent
|
83
|
+
|
81
84
|
@parent = find_parent
|
82
85
|
@parent.add_child(self) if @parent
|
83
86
|
@parent
|
84
87
|
end
|
88
|
+
|
85
89
|
alias fetch_parent parent
|
86
90
|
|
87
91
|
def find_parent
|
@@ -93,9 +97,11 @@ module Onoma
|
|
93
97
|
a = self_and_parents.reverse
|
94
98
|
b = other_item.self_and_parents.reverse
|
95
99
|
return nil if a.first != b.first
|
100
|
+
|
96
101
|
common_lineage = 0
|
97
102
|
a.size.times do |index|
|
98
103
|
break if a[index].nil? || b[index].nil? || a[index] != b[index]
|
104
|
+
|
99
105
|
common_lineage += 1
|
100
106
|
end
|
101
107
|
a.size + b.size - 2 * common_lineage
|
@@ -103,6 +109,7 @@ module Onoma
|
|
103
109
|
|
104
110
|
def original_nomenclature_name
|
105
111
|
return parent.name.to_sym unless root?
|
112
|
+
|
106
113
|
nil
|
107
114
|
end
|
108
115
|
|
@@ -118,16 +125,14 @@ module Onoma
|
|
118
125
|
list
|
119
126
|
end
|
120
127
|
end
|
128
|
+
elsif options[:recursively].is_a?(FalseClass)
|
129
|
+
nomenclature.list.select do |item|
|
130
|
+
@left < item.left && item.right < @right && item.depth == @depth + 1
|
131
|
+
end
|
121
132
|
else
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
end
|
126
|
-
else
|
127
|
-
# @children ||=
|
128
|
-
nomenclature.list.select do |item|
|
129
|
-
@left < item.left && item.right < @right
|
130
|
-
end
|
133
|
+
# @children ||=
|
134
|
+
nomenclature.list.select do |item|
|
135
|
+
@left < item.left && item.right < @right
|
131
136
|
end
|
132
137
|
end
|
133
138
|
end
|
@@ -152,6 +157,7 @@ module Onoma
|
|
152
157
|
def rise(&block)
|
153
158
|
result = yield(self)
|
154
159
|
return result if result
|
160
|
+
|
155
161
|
parent ? parent.rise(&block) : nil
|
156
162
|
end
|
157
163
|
|
@@ -196,6 +202,7 @@ module Onoma
|
|
196
202
|
end
|
197
203
|
I18n.t(root, options.merge(default: [*defaults.map(&:to_sym), "items.#{Onoma.escape_key(name)}".to_sym, "enumerize.#{Onoma.escape_key(nomenclature.name)}.#{Onoma.escape_key(name)}".to_sym, "labels.#{Onoma.escape_key(name)}".to_sym, name.humanize]))
|
198
204
|
end
|
205
|
+
|
199
206
|
alias humanize human_name
|
200
207
|
alias localize human_name
|
201
208
|
alias l localize
|
@@ -266,6 +273,7 @@ module Onoma
|
|
266
273
|
# Returns property value
|
267
274
|
def property(name)
|
268
275
|
return @name.to_sym if name == :name
|
276
|
+
|
269
277
|
property = @nomenclature.properties[name]
|
270
278
|
value = @attributes[name]
|
271
279
|
if property
|
@@ -291,11 +299,12 @@ module Onoma
|
|
291
299
|
unless target_nomenclature
|
292
300
|
raise "Cannot find nomenclature: for #{property(name).inspect}"
|
293
301
|
end
|
302
|
+
|
294
303
|
return target_nomenclature.list.collect do |i|
|
295
304
|
[i.human_name, i.name]
|
296
305
|
end
|
297
306
|
else
|
298
|
-
raise StandardError
|
307
|
+
raise StandardError.new('Cannot call selection for a non-list property')
|
299
308
|
end
|
300
309
|
end
|
301
310
|
|
@@ -307,11 +316,13 @@ module Onoma
|
|
307
316
|
# Returns property descriptor
|
308
317
|
def method_missing(method_name, *args)
|
309
318
|
return property(method_name) if has_property?(method_name)
|
319
|
+
|
310
320
|
super
|
311
321
|
end
|
312
322
|
|
313
323
|
def set(name, value)
|
314
324
|
raise "Invalid property: #{name.inspect}" if %i[name parent].include?(name.to_sym)
|
325
|
+
|
315
326
|
# # TODO: check format
|
316
327
|
# if property = nomenclature.properties[name]
|
317
328
|
# value ||= [] if property.list?
|
@@ -325,16 +336,18 @@ module Onoma
|
|
325
336
|
|
326
337
|
private
|
327
338
|
|
328
|
-
|
329
|
-
|
330
|
-
|
339
|
+
def cast_property(name, value)
|
340
|
+
@nomenclature.cast_property(name, value)
|
341
|
+
end
|
331
342
|
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
343
|
+
def item_for_comparison(other)
|
344
|
+
item = nomenclature[other.is_a?(Item) ? other.name : other]
|
345
|
+
unless item
|
346
|
+
raise StandardError.new("Invalid operand to compare: #{other.inspect} not in #{nomenclature.name}")
|
347
|
+
end
|
348
|
+
|
349
|
+
item
|
336
350
|
end
|
337
|
-
item
|
338
|
-
end
|
339
351
|
end
|
340
352
|
end
|
353
|
+
# rubocop:enable Style/MissingRespondToMissing
|
@@ -7,11 +7,11 @@ module Onoma
|
|
7
7
|
name = element['item'].split('#')
|
8
8
|
@nomenclature = name.first
|
9
9
|
@name = name.second
|
10
|
-
@changes = element.attributes
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
@changes = element.attributes
|
11
|
+
.delete_if { |k, _v| %w[item].include?(k) }
|
12
|
+
.each_with_object({}) do |(k, v), h|
|
13
|
+
h[k.to_sym] = (v.to_s.blank? ? nil : v.to_s)
|
14
|
+
end
|
15
15
|
end
|
16
16
|
|
17
17
|
def new_name?
|
@@ -5,14 +5,13 @@ module Onoma
|
|
5
5
|
attr_reader :nomenclature, :name, :options
|
6
6
|
def initialize(element)
|
7
7
|
raise 'Need item attribute' unless element['item']
|
8
|
+
|
8
9
|
name = element['item'].split('#')
|
9
10
|
@nomenclature = name.first
|
10
11
|
@name = name.second
|
11
|
-
@options = element.attributes
|
12
|
-
|
13
|
-
|
14
|
-
h[k.to_sym] = v.to_s
|
15
|
-
end
|
12
|
+
@options = element.attributes
|
13
|
+
.delete_if { |k, _v| k =~ /name(:[a-z]{3})?/ || %w[item parent nomenclature].include?(k) }
|
14
|
+
.each_with_object({}) { |(k, v), h| h[k.to_sym] = v.to_s }
|
16
15
|
@options[:parent] = element['parent'].to_sym if element.key?('parent')
|
17
16
|
end
|
18
17
|
|
@@ -5,8 +5,15 @@ module Onoma
|
|
5
5
|
attr_reader :nomenclature, :options
|
6
6
|
|
7
7
|
def initialize(element)
|
8
|
-
@nomenclature = element.key?('nomenclature')
|
8
|
+
@nomenclature = if element.key?('nomenclature')
|
9
|
+
element['nomenclature'].to_s
|
10
|
+
elsif element.key?('name')
|
11
|
+
element['name'].to_s
|
12
|
+
else
|
13
|
+
nil
|
14
|
+
end
|
9
15
|
raise 'No given name' unless @nomenclature
|
16
|
+
|
10
17
|
@options = {}
|
11
18
|
notions = element.attr('notions').to_s.split(/\s*\,\s*/).map(&:to_sym)
|
12
19
|
@options[:notions] = notions if notions.any?
|
@@ -9,8 +9,9 @@ module Onoma
|
|
9
9
|
@name = name.second
|
10
10
|
@type = element['type'].to_sym
|
11
11
|
unless Onoma::PROPERTY_TYPES.include?(@type)
|
12
|
-
raise ArgumentError
|
12
|
+
raise ArgumentError.new("Property #{name} type is unknown: #{@type.inspect}")
|
13
13
|
end
|
14
|
+
|
14
15
|
@options = {}
|
15
16
|
if element.has_attribute?('fallbacks')
|
16
17
|
@options[:fallbacks] = element.attr('fallbacks').to_s.strip.split(/[[:space:]]*\,[[:space:]]*/).map(&:to_sym)
|
data/lib/onoma/migration/base.rb
CHANGED
@@ -38,6 +38,7 @@ module Onoma
|
|
38
38
|
def hash_to_yaml(hash, depth = nil)
|
39
39
|
code = hash.sort_by { |a| a[0].to_s.tr('_', ' ').strip }.map do |k, v|
|
40
40
|
next unless v
|
41
|
+
|
41
42
|
pair_to_yaml(k, v)
|
42
43
|
end.join("\n")
|
43
44
|
code = "\n" + code.indent(depth).gsub(/^\s+$/, '') unless depth.nil?
|
@@ -54,7 +55,7 @@ module Onoma
|
|
54
55
|
elsif value.is_a?(Numeric)
|
55
56
|
value.to_s
|
56
57
|
else
|
57
|
-
v = value.to_s.gsub(
|
58
|
+
v = value.to_s.gsub('\\u00A0', '\\_')
|
58
59
|
value =~ /\n/ ? "|\n" + v.strip.indent : '"' + v + '"'
|
59
60
|
end
|
60
61
|
end
|