From 45681498ffe86067a87550cedd9b0d98582c5df7 Mon Sep 17 00:00:00 2001 From: Etienne Delclaux Date: Wed, 4 Sep 2024 15:57:05 +0200 Subject: [PATCH 1/3] feat: add link to taxon sheet in synthese list --- .../synthese-list.component.html | 24 +++++++++++++++---- .../synthese-list.component.scss | 5 ++++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html index 6a73cc54f2..16d4325b54 100644 --- a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html +++ b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html @@ -82,11 +82,27 @@ let-row="row" ngx-datatable-cell-template > - - {{ - col.prop == 'date_max' || col.prop == 'date_min' ? getDate(row[col.prop]) : row[col.prop] - }} + +
+ {{ getDate(row[col.prop]) }} +
+
+ + + +
+ + +
+ {{ row[col.prop] }} diff --git a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.scss b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.scss index 8ae99accc8..924f0d138e 100644 --- a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.scss +++ b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.scss @@ -49,3 +49,8 @@ button[disabled] { height: 20px !important; font-size: 10px !important; } + +.Link { + color: var(--purple); + filter: brightness(70%); +} From 359ca229a905867f78398935aa1513761f79d3b8 Mon Sep 17 00:00:00 2001 From: Etienne Delclaux Date: Thu, 5 Sep 2024 11:04:45 +0200 Subject: [PATCH 2/3] feat: add explicit tooltip to synthese list --- .../synthese-results/synthese-list/synthese-list.component.html | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html index 16d4325b54..337f56391e 100644 --- a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html +++ b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html @@ -94,6 +94,7 @@ class="Link" [routerLink]="['taxon/' + row.cd_nom]" *ngIf="row.hasOwnProperty('cd_nom'); else cellDefault" + matTooltip="Afficher la fiche du taxon" > From c28e006a6a62b2dff2bc64be71033c0276845cae Mon Sep 17 00:00:00 2001 From: Etienne Delclaux Date: Thu, 5 Sep 2024 12:42:35 +0200 Subject: [PATCH 3/3] feat: add link to metadata in synthese list --- backend/geonature/core/gn_synthese/synthese_config.py | 2 +- .../synthese-list/synthese-list.component.html | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/backend/geonature/core/gn_synthese/synthese_config.py b/backend/geonature/core/gn_synthese/synthese_config.py index af5dc42935..e75566891f 100644 --- a/backend/geonature/core/gn_synthese/synthese_config.py +++ b/backend/geonature/core/gn_synthese/synthese_config.py @@ -91,7 +91,7 @@ ] # Mandatory columns for the frontend in Synthese API -MANDATORY_COLUMNS = ["id_synthese", "entity_source_pk_value", "url_source", "cd_nom"] +MANDATORY_COLUMNS = ["id_synthese", "entity_source_pk_value", "url_source", "cd_nom", "id_dataset"] # CONFIG MAP-LIST DEFAULT_LIST_COLUMN = [ diff --git a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html index 337f56391e..c961ee4a65 100644 --- a/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html +++ b/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-list.component.html @@ -99,6 +99,16 @@ +
+ + + +