Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nichoir #46

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions nichoirs/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"tree": {
"module": {
"site": {
"visit": {
"observation": null
}
}
}
},
"data": {
"nomenclature": ["JDD_DATA_TYPE"],
"user": ["__CODE_LIST_INVENTOR", "__CODE_LIST_OBSERVER"]
}
}
39 changes: 39 additions & 0 deletions nichoirs/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Documentation du Module

Ce module est conçu pour gérer le suivi des nichoirs.

## Sites

### Nichoir

- `Nom du nichoir`
- `Code du site`
- `Date de pose`
- `Lieu de pose` : Liste configurée (arbre, acrotère de bâtiment, aménagement de combles, ...)
- `Type de nichoir` : Liste configurée (Chevêche d'Athéna, Chouette de Tengmalm, Chouette hulotte, ...)
- `Adresse`
- `Nom du propriétaire`
- `E-mail (propriétaire)`
- `Numéro de tel (propriétaire)`
- `Référent du nichoir`
- `E-mail (référent)`
- `Numéro de tel (référent)`
- `Précision sur la localisation`
- `Indices de présence de prédateur`
- `Remarque`

## Visites

- `Date du passage`
- `Observateurs`
- `Etat du nichoir` : Liste configurée (bon état, à réparer, à replacer, non trouvé, autre)
- `Occupation` : Liste configurée (Oui, Non)
- `Commentaire`

## Observations

- `Espèce`
- `Nombre d'adultes`
- `Nombre d'oeufs`
- `Nombre de jeunes vivants`
- `Nombre de jeunes morts`
Binary file added nichoirs/img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions nichoirs/module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"module_label":"Nichoirs",
"module_desc":"Module de suivi de nichoirs",
"genre":"M"
}
18 changes: 18 additions & 0 deletions nichoirs/nomenclature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"types": [
{
"mnemonique": "TYPE_SITE",
"label_default": "Type de sites",
"definition_default": "Nomenclature des types de sites suivi dans gn_monitoring."
}
],
"nomenclatures": [
{
"type": "TYPE_SITE",
"cd_nomenclature": "NICHOIR",
"mnemonique": "nichoir",
"label_default": "Nichoir",
"definition_default": "Nichoir"
}
]
}
82 changes: 82 additions & 0 deletions nichoirs/observation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"id_field_name": "id_observation",
"description_field_name": "id_observation",
"chained": true,
"label": "Observation",
"genre": "F",
"display_properties": [
"cd_nom",
"adulte",
"oeuf",
"jeune_vivant",
"jeune_mort"
],
"uuid_field_name": "uuid_observation",
"specific": {
"uuid_observation": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne comprends pas pourquoi vous redéfinissez le champs UUID qui est déjà présent dans la BDD et peuple automatiquement ?

"attribut_label": "uuid"
},
"id_observation": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne comprends pas non plus pourquoi vous redéfinissez les champs d'ID ?
Vous les affichez et les rendez saisissables par les utilisateurs ?
Cela ne me semble pas souhaitable car c'est un champs caché et peuplé automatiquement par la BDD

"type_widget": "text",
"attribut_label": "Id observation",
"hidden": true
},
"id_base_visit": {
"type_widget": "text",
"attribut_label": "Id visite",
"hidden": true
},
"cd_nom": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne comprends pas pourquoi le champs "cd_nom" est redéfini alors qu'il est géré nativement dans le module ?

"type_widget": "taxonomy",
"attribut_label": "Espèce",
"type_util": "taxonomy",
"required": true,
"id_list": "__MODULE.ID_LIST_TAXONOMY"
},
"adulte": {
"type_widget": "number",
"attribut_label": "Nombre d'adultes",
"hidden": false,
"required": false,
"min": 0,
"max": 50
},
"oeuf": {
"type_widget": "number",
"attribut_label": "Nombre d'oeufs",
"hidden": false,
"required": false,
"value" : 0,
"min": 0,
"max": 20
},
"jeune_vivant": {
"type_widget": "number",
"attribut_label": "Nombre de jeunes vivants",
"hidden": false,
"required": false,
"value" : 0,
"min": 0,
"max": 20
},
"jeune_mort": {
"type_widget": "number",
"attribut_label": "Nombre de jeunes morts",
"hidden": false,
"required": false,
"min": 0,
"max": 20
},
"comments": {
"type_widget": "text",
"attribut_label": "remarque supplémentaire (date d'envole poussin)",
"hidden": false,
"required": false
},
"medias": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne comprends pas pourquoi les médias sont redéfinis alors qu'ils sont gérés nativement dans le module ?

"type_widget": "medias",
"attribut_label": "Médias",
"schema_dot_table": "gn_monitoring.t_observations"
}
}
}
Binary file added nichoirs/odk_from/nichoirs_form.xlsx
Binary file not shown.
164 changes: 164 additions & 0 deletions nichoirs/site.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"genre": "M",
"label": "nichoir",
"label_list": "nichoirs",
"map_label_field_name": "base_site_name",
"geometry_type": "Point",
"display_properties": [
"id_inventor",
"referent_mail",
"referent_tel",
"base_site_name",
"base_site_code",
"first_use_date",
"pose_localisation",
"localite_precision",
"nichoir_type",
"adresse",
"proprietaire_nom",
"proprietaire_mail",
"proprietaire_tel",
"nichoir_referent",
"base_site_description"
],
"display_list": [
"base_site_name",
"id_inventor",
"nichoir_type",
"last_visit",
"nb_visits"
],
"specific": {
"id_nomenclature_type_site": {
"type_widget": "nomenclature",
"attribut_label": "Type site",
"code_nomenclature_type": "TYPE_SITE",
"type_util": "nomenclature",
"required": true,
"value": {
"code_nomenclature_type": "TYPE_SITE",
"cd_nomenclature": "NICHOIR"
},
"hidden": true
},
"base_site_code": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi redéfinir ce champs, géré nativement par le module ?

"attribut_label": "Code du site",
"required": false,
"hidden": true
},
"base_site_name": {
"attribut_label": "Nom du nichoir",
"required": true,
"hidden": false
},
"first_use_date": {
"type_widget": "date",
"attribut_label": "Date de pose",
"required": true
},
"pose_localisation": {
"type_widget": "select",
"attribut_label": "Lieu de pose",
"required": true,
"values": [
"arbre",
"acrotère de bâtiment",
"aménagement de combles",
"Bâti",
"Bâti extérieur",
"Bâti intérieur",
"bergerie",
"caissons a rhinolophes",
"église",
"façade de bâtiment",
"grange/hangar",
"grenier/combles",
"garage",
"poteau",
"pigeonnier/tour",
"piquet",
"piquet de vigne",
"toit",
"toit terrasse",
"Autres"
]
},
"nichoir_type": {
"type_widget": "select",
"attribut_label": "Type de nichoir",
"required": true,
"values": [
"Chevêche d'Athéna",
"Chouette de Tengmalm",
"Chouette hulotte",
"Effraie des clochers",
"Étourneau",
"Faucon pèlerin",
"Faucon crécerelle",
"Hirondelle de fenêtre",
"Hirondelle rustique",
"Huppe fasciée",
"Gîte chiro (arboricole en bois)",
"Gîte chiro (fissuricole en bois)",
"Gîte chiro (fissuricole en béton bois)",
"Mésange bleue",
"Mésange charbonnière",
"Moineau friquet",
"Moineau domestique",
"Petit-duc/colombin",
"Rougegorge",
"Rougequeue",
"Rougequeue à front blanc",
"Sitelle torchepot",
"Autre (préciser dans le champs remarque)"
]
},
"adresse": {
"type_widget": "text",
"attribut_label": "Adresse",
"required": false
},
"proprietaire_nom": {
"type_widget": "text",
"attribut_label": "Nom du propriétaire",
"required": true
},
"proprietaire_mail": {
"type_widget": "text",
"attribut_label": "E-mail (propriétaire)"
},
"proprietaire_tel": {
"type_widget": "text",
"attribut_label": "Numéro de tel (propriétaire)",
"required": true
},
"id_inventor": {
"attribut_label": "Référent du nichoir"
},
"referent_mail": {
"type_widget": "text",
"attribut_label": "E-mail (référent)"
},
"referent_tel": {
"type_widget": "text",
"attribut_label": "Numéro de tel (référent)"
},
"localite_precision": {
"type_widget": "text",
"attribut_label": "Précision sur la localisation"
},
"predateur": {
"type_widget": "bool_checkbox",
"attribut_label": "indices de présence de prédateur"
},
"base_site_description": {
"type_widget": "textarea",
"attribut_label": "Remarque"
},
"medias": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi redéfinir ce champs géré nativement par le module ?

"type_widget": "medias",
"attribut_label": "Médias",
"schema_dot_table": "gn_monitoring.t_base_sites"
}
}
}
Loading