From d2c0fb72fd4df7d4212f6acfd25e0f305dd3b469 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Thu, 6 Jul 2023 09:12:46 +0200 Subject: [PATCH] - small changes inside dataset-detail.component.ts --- .../dataset-detail.component/dataset-detail.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/dataset-detail.component/dataset-detail.component.ts b/src/views/dataset-detail.component/dataset-detail.component.ts index d124adc..220feb5 100644 --- a/src/views/dataset-detail.component/dataset-detail.component.ts +++ b/src/views/dataset-detail.component/dataset-detail.component.ts @@ -43,9 +43,11 @@ export default class DatasetDetailComponent extends Vue { created(): void { dayjs.extend(advancedFormat); - if (!isNaN(Number(this.datasetId))) { + if (!this.datasetId.includes(".")) { + // get datset by publish_id this.getDataset(Number(this.datasetId)); } else { + // get datset by doi_value this.getDatasetByIdentifier(this.datasetId); } }