Skip to content

Commit

Permalink
feat: Add data source organism on species page (PnX-SI#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 6, 2024
1 parent c92c345 commit 8be606d
Show file tree
Hide file tree
Showing 15 changed files with 335 additions and 176 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 @@ -249,6 +250,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)
if current_app.config["AFFICHAGE_MAILLE"]:
communes = vmCommunesRepository.getCommunesObservationsChildsMailles(connection, cd_ref)
Expand Down Expand Up @@ -294,6 +296,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
3 changes: 2 additions & 1 deletion atlas/configuration/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ class Meta:
AFFICHAGE_NOUVELLES_ESPECES = fields.Boolean(load_default=True)
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_PHENOLOGIE = fields.Boolean(load_default=False)
AFFICHAGE_GRAPH_PROVENANCE_DONNEE = fields.Boolean(load_default=False)

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

0 comments on commit 8be606d

Please sign in to comment.