From 50ab31885417383663ec053010ab105bf760f7f2 Mon Sep 17 00:00:00 2001 From: frankporras Date: Wed, 4 Sep 2024 13:46:09 +0200 Subject: [PATCH] - Icon and link for licenses added - Listing of authors in list of publications corrected - Coverage section improved - Contributor section moved down --- src/components/vs-result/vs-result.ts | 10 +++ src/components/vs-result/vs-result.vue | 29 ++++++-- src/models/dataset.ts | 18 +++-- .../dataset-detail.component.ts | 2 +- .../dataset-detail.component.vue | 67 +++++++++++++++---- 5 files changed, 103 insertions(+), 23 deletions(-) diff --git a/src/components/vs-result/vs-result.ts b/src/components/vs-result/vs-result.ts index d731acc..39f6514 100644 --- a/src/components/vs-result/vs-result.ts +++ b/src/components/vs-result/vs-result.ts @@ -14,6 +14,16 @@ export default class VsResult extends Vue { return this.datasets; } + public simplifyAuthor(author:string): string { + + if (author.endsWith(" ")) { + return author.substring(0, author.indexOf(",")); + } else { + let firstNameInitial:string = author.charAt(author.indexOf(",") + 2); + return author.substring(0, author.indexOf(",") + 2) + firstNameInitial; + } + } + public getDomainWithoutSubdomain(): string { const urlParts = new URL(window.location.href).hostname.split("."); diff --git a/src/components/vs-result/vs-result.vue b/src/components/vs-result/vs-result.vue index 20c7479..5387123 100644 --- a/src/components/vs-result/vs-result.vue +++ b/src/components/vs-result/vs-result.vue @@ -6,13 +6,34 @@ {{ "https://doi.org/" + document.identifier[0] + " ➤" }}   - {{ document.author[0] }} + + + + + + + {{ simplifyAuthor(document.author[0]) }} + + + + + {{ simplifyAuthor(author) }}; + + + + + + {{ simplifyAuthor(author) }}; + + et al. + +

- {{ - document.title_output - }} + + {{ document.title_output }} +

diff --git a/src/models/dataset.ts b/src/models/dataset.ts index 9e38775..e4f054e 100644 --- a/src/models/dataset.ts +++ b/src/models/dataset.ts @@ -274,7 +274,7 @@ export class DbDataset { if (this.coverage.elevation_absolut != null) { elevation += "\n- Elevation Absolut: " + this.coverage.elevation_absolut + " m"; } - if (elevation != "") geoLocation += elevation; + // if (elevation != "") geoLocation += ("\n---" + elevation); let depth = ""; if (this.coverage.depth_max != null && this.coverage.depth_min != null) { @@ -283,16 +283,16 @@ export class DbDataset { if (this.coverage.elevation_absolut != null) { depth += "\n- Depth Absolut: " + this.coverage.depth_absolut + " m"; } - if (depth != "") geoLocation += depth; + // if (depth != "") geoLocation += depth; let time = ""; if (this.coverage.time_max != null && this.coverage.time_min != null) { - time += "\n* Time Min.: " + this.coverage.time_min + "\n* Time Max.: " + this.coverage.time_max; + time += "\n- Time Min.: " + this.coverage.time_min + "\n- Time Max.: " + this.coverage.time_max; } if (this.coverage.time_absolut != null) { - time += "\n* Time Absolut: " + this.coverage.time_absolut; + time += "\n- Time Absolut: " + this.coverage.time_absolut; } - if (time != "") geoLocation += time; + // if (time != "") geoLocation += time; // let elevation = ""; // if (this.coverage.elevation_max != null && this.coverage.elevation_min != null) { @@ -321,7 +321,13 @@ export class DbDataset { // } // if (time != "") geoLocation += time; - return geoLocation; + if (elevation != "" || depth != "" || time != "" ) { + return geoLocation + "\n ---" + elevation + depth + time; + } else { + return geoLocation + elevation + depth + time; + } + + // return geoLocation; } else { return ""; } diff --git a/src/views/dataset-detail.component/dataset-detail.component.ts b/src/views/dataset-detail.component/dataset-detail.component.ts index 0a04e1a..5185e93 100644 --- a/src/views/dataset-detail.component/dataset-detail.component.ts +++ b/src/views/dataset-detail.component/dataset-detail.component.ts @@ -177,7 +177,7 @@ export default class DatasetDetailComponent extends Vue { .join(", "); citation += " (" + dayjs(this.dataset.server_date_published).format("YYYY") + "): "; citation += this.dataset.MainTitle?.value; - citation += "." + this.dataset.creating_corporation + ", "; + citation += ". " + this.dataset.creating_corporation + ", "; citation += this.dataset.publisher_name; citation += ", Wien"; return citation; diff --git a/src/views/dataset-detail.component/dataset-detail.component.vue b/src/views/dataset-detail.component/dataset-detail.component.vue index 9818861..66068d4 100644 --- a/src/views/dataset-detail.component/dataset-detail.component.vue +++ b/src/views/dataset-detail.component/dataset-detail.component.vue @@ -186,15 +186,7 @@ -

-
-

Beitragende/Contributor

-

- {{ dataset.contributors.map((u) => u.full_name).join(", ") }} -

-

-

-
-
+ +
+
+
+
+ + + re3 data logo + +
+
+
+
+
+
+ + logo geosphere austria + +
+
+
+
+
+
+ + logo base + +
+
+
+
+ + + +
@@ -338,7 +380,8 @@
- + --> +