Skip to content

Commit

Permalink
feat: add link to metadata in synthese list
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Oct 2, 2024
1 parent af633a9 commit b7fcef3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/geonature/core/gn_synthese/synthese_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@
<ng-container *ngTemplateOutlet="cellDefault"></ng-container>
</a>
</div>
<div *ngSwitchCase="'dataset_name'">
<a
class="Link"
[routerLink]="['/metadata/dataset_detail/' + row.id_dataset]"
*ngIf="row.hasOwnProperty('id_dataset'); else cellDefault"
matTooltip="Afficher la fiche du jeu de données"
>
<ng-container *ngTemplateOutlet="cellDefault"></ng-container>
</a>
</div>
<ng-container *ngSwitchDefault>
<ng-container *ngTemplateOutlet="cellDefault"></ng-container>
</ng-container>
Expand Down

0 comments on commit b7fcef3

Please sign in to comment.