- small changes inside dataset-detail.component.ts
This commit is contained in:
parent
3faf538afd
commit
d2c0fb72fd
|
@ -43,9 +43,11 @@ export default class DatasetDetailComponent extends Vue {
|
||||||
|
|
||||||
created(): void {
|
created(): void {
|
||||||
dayjs.extend(advancedFormat);
|
dayjs.extend(advancedFormat);
|
||||||
if (!isNaN(Number(this.datasetId))) {
|
if (!this.datasetId.includes(".")) {
|
||||||
|
// get datset by publish_id
|
||||||
this.getDataset(Number(this.datasetId));
|
this.getDataset(Number(this.datasetId));
|
||||||
} else {
|
} else {
|
||||||
|
// get datset by doi_value
|
||||||
this.getDatasetByIdentifier(this.datasetId);
|
this.getDatasetByIdentifier(this.datasetId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user