-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: Add data source organism on species page (#538) #588
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
vmMedias, | ||
vmCorTaxonAttribut, | ||
vmTaxonsMostView, | ||
vmCorTaxonOrganism, | ||
) | ||
|
||
|
||
|
@@ -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) | ||
|
@@ -274,6 +276,7 @@ def ficheEspece(cd_nom): | |
cd_ref=cd_ref, | ||
altitudes=altitudes, | ||
months=months, | ||
data_source_values=data_source_values, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idem |
||
synonyme=synonyme, | ||
communes=communes, | ||
taxonomyHierarchy=taxonomyHierarchy, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,7 +138,35 @@ 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) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pourquoi masquer le graphique des phénologie par défaut ? |
||
AFFICHAGE_GRAPH_PROVENANCE_DONNEE = fields.Boolean(load_default=False) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Faut le mettre à TRUE par défaut, mais si le module ORGANISME n'est pas activé ( |
||
COLOR_PIE_CHARTS = fields.List( | ||
fields.String(), | ||
load_default=[ | ||
"#E1CE7A", | ||
"#FBFFB9", | ||
"#FDD692", | ||
"#EC7357", | ||
"#754F44", | ||
"#FB6376", | ||
"#B7ADCF", | ||
"#DEE7E7", | ||
"#F4FAFF", | ||
"#383D3B", | ||
"#7C7C7C", | ||
"#B5F44A", | ||
"#D6FF79", | ||
"#507255", | ||
"#381D2A", | ||
"#BA5624", | ||
"#FFA552", | ||
"#F7FFE0", | ||
"#49C6E5", | ||
"#54DEFD", | ||
"#0B5563", | ||
"#54DEFD", | ||
], | ||
) | ||
|
||
RANG_STAT = fields.List( | ||
fields.Dict, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J’appellerais cette variable
organism_stats
ouorganism_plot_data