When creating a template and setting a field as tag, researcher, dataset identifier then it will automatically setup the RDA standard (can be changed)

This commit is contained in:
George Kalampokis 2020-06-11 14:12:48 +03:00
parent 914ab50127
commit 121cb1429e
3 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ export class DatasetProfileEditorDatasetIdentifierFieldComponent implements OnIn
private data: DatasetIdentifierDataEditorModel = new DatasetIdentifierDataEditorModel();
ngOnInit() {
this.form.patchValue({'rdaCommonStandard': 'dataset.dataset_id'});
if (!this.form.get('data')) { this.form.addControl('data', this.data.buildForm()); }
}
}

View File

@ -19,6 +19,7 @@ export class DatasetProfileEditorResearchersFieldComponent implements OnInit {
private data: ResearchersDataEditorModel = new ResearchersDataEditorModel();
ngOnInit() {
this.form.patchValue({'rdaCommonStandard': 'dmp.contributor'});
if (!this.form.get('data')) { this.form.addControl('data', this.data.buildForm()); }
}
}

View File

@ -18,6 +18,7 @@ export class DatasetProfileEditorTagsFieldComponent implements OnInit {
private data: TagsDataEditorModel = new TagsDataEditorModel();
ngOnInit() {
this.form.patchValue({'rdaCommonStandard': 'dataset.keyword'});
if (!this.form.get('data')) { this.form.addControl('data', this.data.buildForm()); }
}
}