-
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?
Conversation
08062e4
to
857786a
Compare
Je crois qu'il faut activer ce graphique, seulement si les ORGANISMES sont activés globalement :
Est-ce le cas ? |
857786a
to
7ca06ee
Compare
Un graphique de provenance des données a été rajouté afin de visualiser la participation de chaques organismes a l'observation d'un Taxon.
ff8201c
to
bfe1779
Compare
Un graphique de provenance des données a été rajouté afin de visualiser la participation de chaques organismes a l'observation d'un Taxon.
bfe1779
to
6fabcc7
Compare
@@ -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) |
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
ou organism_plot_data
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Idem
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi masquer le graphique des phénologie par défaut ?
@@ -41,7 +41,9 @@ | |||
var months_name = {{ configuration.AVAILABLE_LANGUAGES[g.lang_code]['months'] | tojson }}; | |||
{% else %} | |||
var months_name = {{ configuration.AVAILABLE_LANGUAGES[configuration.DEFAULT_LANGUAGE]['months'] | tojson }}; | |||
|
|||
{% endif %} | |||
{% if configuration.ORGANISM_MODULE and configuration.AFFICHAGE_GRAPH_PROVENANCE_DONNEE %} |
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.
Si on veut afficher les stats par organisme mais pas la fiche organisme on ne peut pas.
Je dirais : soit on fait un seul paramètre qui contrôle les deux, soit on en fait deux différents, mais qui n'interfèrent pas les uns avec les autres.
Je penche plus pour la deuxième option
|
||
{% endif %} | ||
{% if configuration.ORGANISM_MODULE and configuration.AFFICHAGE_GRAPH_PROVENANCE_DONNEE %} | ||
var data_source_values = {{ data_source_values | tojson}}; |
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.
A renommer (voir plus haut)
@@ -12,5 +12,11 @@ <h4 class="title-bar title-spaced center strong">{{ _('monthly.obs') }}</h4> | |||
<canvas id="monthChart"></canvas> | |||
</div> | |||
{% endif %} | |||
{% if configuration.ORGANISM_MODULE and configuration.AFFICHAGE_GRAPH_PROVENANCE_DONNEE %} |
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.
Idem que plus haut
}, | ||
title: { | ||
display: false, | ||
text: 'Graphique des provenances de données' |
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.
Le titre n'est pas utilisé, et pas traduit. Je pense qu'on peut le retirer du JS ?
labels: labels, | ||
datasets: [ | ||
{ | ||
label: 'Dataset 1', |
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.
Pour le pie chart, le "label" n'a pas l'air d'être utilisé. Pour moi on peut l'enlevé aussi
Un graphique de provenance des données a été rajouté afin de visualiser la participation de chaques organismes a l'observation d'un Taxon.
#538