mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
refactored resource type and type mapping
This commit is contained in:
@@ -103,7 +103,7 @@ describe('ComColFormComponent', () => {
|
||||
...randomMD,
|
||||
...abstractMD
|
||||
},
|
||||
type: ResourceType.Community
|
||||
type: Community.type
|
||||
},
|
||||
)
|
||||
);
|
||||
|
@@ -10,7 +10,7 @@ import { TranslateService } from '@ngx-translate/core';
|
||||
import { DSpaceObject } from '../../../core/shared/dspace-object.model';
|
||||
import { MetadataMap, MetadataValue } from '../../../core/shared/metadata.models';
|
||||
import { isNotEmpty } from '../../empty.util';
|
||||
import { ResourceType } from '../../../core/shared/resource-type';
|
||||
import { Community } from '../../../core/shared/community.model';
|
||||
|
||||
/**
|
||||
* A form for creating and editing Communities or Collections
|
||||
@@ -99,7 +99,7 @@ export class ComColFormComponent<T extends DSpaceObject> implements OnInit {
|
||||
...this.dso.metadata,
|
||||
...formMetadata
|
||||
},
|
||||
type: ResourceType.Community
|
||||
type: Community.type
|
||||
});
|
||||
this.submitForm.emit(updatedDSO);
|
||||
}
|
||||
|
Reference in New Issue
Block a user