From 4dd238ec363f3f039a40a183e16256bb7ddc7bf6 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Thu, 6 Jul 2023 13:32:03 +0200 Subject: [PATCH] - adaptions inside dataset-detail-component.vue: show references to internal documents, also the referenced by relations --- src/models/dataset.ts | 4 ++- .../dataset-detail.component.vue | 26 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/models/dataset.ts b/src/models/dataset.ts index a89498b..15a49fb 100644 --- a/src/models/dataset.ts +++ b/src/models/dataset.ts @@ -11,7 +11,7 @@ export interface Dataset { doctype: string; geo_location: string; id: number; - identifier: Array; + identifier: Identifier; language: string; licence: string; publisher_name: string; @@ -99,6 +99,7 @@ export class DbDataset { public references: Array, public files: Array, public identifier: Identifier, + public referenced_by: Array, private coverage?: Coverage, public project?: Project, ) {} @@ -360,6 +361,7 @@ export interface Reference { relation: string; value: string; label: string; + dataset: Dataset; } export interface Project { diff --git a/src/views/dataset-detail.component/dataset-detail.component.vue b/src/views/dataset-detail.component/dataset-detail.component.vue index 33e9a12..a75b026 100644 --- a/src/views/dataset-detail.component/dataset-detail.component.vue +++ b/src/views/dataset-detail.component/dataset-detail.component.vue @@ -61,6 +61,32 @@ > + +
+
{{ reference.relation }}
+ +
+
+
has newer version:
+ +