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. + +
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 @@ -
- {{ dataset.contributors.map((u) => u.full_name).join(", ") }} -
--
-