finished docs and tests

This commit is contained in:
lotte
2019-02-27 13:18:35 +01:00
parent 664d58f40e
commit 8125f56009
9 changed files with 98 additions and 32 deletions

View File

@@ -83,10 +83,10 @@ export class ComColFormComponent<T extends DSpaceObject> implements OnInit {
onSubmit() {
const formMetadata = new Object() as MetadataMap;
this.formModel.forEach((fieldModel: DynamicInputModel) => {
const value: MetadataValue = Object.assign(new MetadataValue(), {
value: fieldModel.value as string,
language: null
});
const value: MetadataValue = {
value: fieldModel.value as string,
language: null
} as any;
if (formMetadata.hasOwnProperty(fieldModel.name)) {
formMetadata[fieldModel.name].push(value);
} else {