mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
54472: Added metadata to community/collection creation
This commit is contained in:
@@ -31,7 +31,13 @@ export class CreateCommunityPageComponent {
|
||||
|
||||
onSubmit(data: any) {
|
||||
const community = Object.assign(new Community(), {
|
||||
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 }
|
||||
// TODO: metadata for news
|
||||
]
|
||||
});
|
||||
this.parentUUID$.subscribe((uuid: string) => {
|
||||
let response$: Observable<ResponseCacheEntry>;
|
||||
|
Reference in New Issue
Block a user