Skip to content

Commit

Permalink
feat: Add data source organism on species page (#538)
Browse files Browse the repository at this point in the history
Un graphique de provenance des données a été rajouté afin de visualiser
la participation de chaques organismes a l'observation d'un Taxon.
  • Loading branch information
juggler31 committed Dec 3, 2024
1 parent 83ba84f commit 4df19f4
Show file tree
Hide file tree
Showing 15 changed files with 329 additions and 171 deletions.
3 changes: 3 additions & 0 deletions atlas/atlasRoutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
vmMedias,
vmCorTaxonAttribut,
vmTaxonsMostView,
vmCorTaxonOrganism
)


Expand Down Expand Up @@ -232,6 +233,7 @@ def ficheEspece(cd_nom):
taxon = vmTaxrefRepository.searchEspece(connection, cd_ref)
altitudes = vmAltitudesRepository.getAltitudesChilds(connection, cd_ref)
months = vmMoisRepository.getMonthlyObservationsChilds(connection, cd_ref)
data_source_values = vmCorTaxonOrganism.getTaxonOrganism(connection, cd_ref)
synonyme = vmTaxrefRepository.getSynonymy(connection, cd_ref)
communes = vmCommunesRepository.getCommunesObservationsChilds(connection, cd_ref)
taxonomyHierarchy = vmTaxrefRepository.getAllTaxonomy(db_session, cd_ref)
Expand Down Expand Up @@ -274,6 +276,7 @@ def ficheEspece(cd_nom):
cd_ref=cd_ref,
altitudes=altitudes,
months=months,
data_source_values=data_source_values,
synonyme=synonyme,
communes=communes,
taxonomyHierarchy=taxonomyHierarchy,
Expand Down
1 change: 1 addition & 0 deletions atlas/configuration/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class Meta:
AFFICHAGE_RECHERCHE_AVANCEE = fields.Boolean(load_default=False)
AFFICHAGE_GRAPH_ALTITUDES = fields.Boolean(load_default=True)
AFFICHAGE_GRAPH_PHENOLOGIE = fields.Boolean(load_default=True)
AFFICHAGE_GRAPH_PROVENANCE_DONNEE = fields.Boolean(load_default=True)

RANG_STAT = fields.List(
fields.Dict,
Expand Down
Loading

0 comments on commit 4df19f4

Please sign in to comment.