mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
64503: Default metadataConfigID
This commit is contained in:
@@ -269,19 +269,21 @@ export class CollectionSourceComponent extends AbstractTrackableComponent implem
|
|||||||
this.updateSub = this.update$.subscribe((update: FieldUpdate) => {
|
this.updateSub = this.update$.subscribe((update: FieldUpdate) => {
|
||||||
if (update) {
|
if (update) {
|
||||||
const field = update.field as ContentSource;
|
const field = update.field as ContentSource;
|
||||||
|
const defaultConfigId = this.contentSource.metadataConfigs[0].id;
|
||||||
this.formGroup.patchValue({
|
this.formGroup.patchValue({
|
||||||
oaiSourceContainer: {
|
oaiSourceContainer: {
|
||||||
oaiSource: field.oaiSource
|
oaiSource: field.oaiSource
|
||||||
},
|
},
|
||||||
oaiSetContainer: {
|
oaiSetContainer: {
|
||||||
oaiSetId: field.oaiSetId,
|
oaiSetId: field.oaiSetId,
|
||||||
metadataConfigId: field.metadataConfigId
|
metadataConfigId: field.metadataConfigId || defaultConfigId
|
||||||
},
|
},
|
||||||
harvestTypeContainer: {
|
harvestTypeContainer: {
|
||||||
harvestType: field.harvestType
|
harvestType: field.harvestType
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.contentSource = cloneDeep(field);
|
this.contentSource = cloneDeep(field);
|
||||||
|
this.contentSource.metadataConfigId = defaultConfigId;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user