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:
parent
914ab50127
commit
121cb1429e
|
@ -13,6 +13,7 @@ export class DatasetProfileEditorDatasetIdentifierFieldComponent implements OnIn
|
||||||
private data: DatasetIdentifierDataEditorModel = new DatasetIdentifierDataEditorModel();
|
private data: DatasetIdentifierDataEditorModel = new DatasetIdentifierDataEditorModel();
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.form.patchValue({'rdaCommonStandard': 'dataset.dataset_id'});
|
||||||
if (!this.form.get('data')) { this.form.addControl('data', this.data.buildForm()); }
|
if (!this.form.get('data')) { this.form.addControl('data', this.data.buildForm()); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ export class DatasetProfileEditorResearchersFieldComponent implements OnInit {
|
||||||
private data: ResearchersDataEditorModel = new ResearchersDataEditorModel();
|
private data: ResearchersDataEditorModel = new ResearchersDataEditorModel();
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.form.patchValue({'rdaCommonStandard': 'dmp.contributor'});
|
||||||
if (!this.form.get('data')) { this.form.addControl('data', this.data.buildForm()); }
|
if (!this.form.get('data')) { this.form.addControl('data', this.data.buildForm()); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ export class DatasetProfileEditorTagsFieldComponent implements OnInit {
|
||||||
private data: TagsDataEditorModel = new TagsDataEditorModel();
|
private data: TagsDataEditorModel = new TagsDataEditorModel();
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.form.patchValue({'rdaCommonStandard': 'dataset.keyword'});
|
||||||
if (!this.form.get('data')) { this.form.addControl('data', this.data.buildForm()); }
|
if (!this.form.get('data')) { this.form.addControl('data', this.data.buildForm()); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue