54472: Added metadata to community/collection creation

This commit is contained in:
Kristof De Langhe
2018-08-23 13:56:16 +02:00
parent def2cfab3a
commit 870c545357
4 changed files with 22 additions and 4 deletions

View File

@@ -33,7 +33,14 @@ export class CreateCollectionPageComponent {
onSubmit(data: any) {
const collection = Object.assign(new Collection(), {
name: data.name
name: data.name,
metadata: [
{ key: 'dc.description', value: data.introductory },
{ key: 'dc.description.abstract', value: data.description },
{ key: 'dc.rights', value: data.copyright },
{ key: 'dc.rights.license', value: data.license }
// TODO: metadata for news and provenance
]
});
this.parentUUID$.subscribe((uuid: string) => {
let response$: Observable<ResponseCacheEntry>;