diff --git a/src/app/+admin/admin-search-page/admin-search-results/admin-search-result-grid-element/item-search-result/item-admin-search-result-grid-element.component.ts b/src/app/+admin/admin-search-page/admin-search-results/admin-search-result-grid-element/item-search-result/item-admin-search-result-grid-element.component.ts index 13158204c5..1ab8fee8c2 100644 --- a/src/app/+admin/admin-search-page/admin-search-results/admin-search-result-grid-element/item-search-result/item-admin-search-result-grid-element.component.ts +++ b/src/app/+admin/admin-search-page/admin-search-results/admin-search-result-grid-element/item-search-result/item-admin-search-result-grid-element.component.ts @@ -61,7 +61,7 @@ export class ItemAdminSearchResultGridElementComponent extends SearchResultGridE } /** - * Fetch the component depending on the item's relationship type, view mode and context + * Fetch the component depending on the item's entity type, view mode and context * @returns {GenericConstructor} */ private getComponent(): GenericConstructor { diff --git a/src/app/+admin/admin-workflow-page/admin-workflow-search-results/admin-workflow-search-result-grid-element/workflow-item/workflow-item-search-result-admin-workflow-grid-element.component.ts b/src/app/+admin/admin-workflow-page/admin-workflow-search-results/admin-workflow-search-result-grid-element/workflow-item/workflow-item-search-result-admin-workflow-grid-element.component.ts index cf5746391c..68f10916d5 100644 --- a/src/app/+admin/admin-workflow-page/admin-workflow-search-results/admin-workflow-search-result-grid-element/workflow-item/workflow-item-search-result-admin-workflow-grid-element.component.ts +++ b/src/app/+admin/admin-workflow-page/admin-workflow-search-results/admin-workflow-search-result-grid-element/workflow-item/workflow-item-search-result-admin-workflow-grid-element.component.ts @@ -96,7 +96,7 @@ export class WorkflowItemSearchResultAdminWorkflowGridElementComponent extends S } /** - * Fetch the component depending on the item's relationship type, view mode and context + * Fetch the component depending on the item's entity type, view mode and context * @returns {GenericConstructor} */ private getComponent(item: Item): GenericConstructor { diff --git a/src/app/shared/metadata-representation/metadata-representation-loader.component.ts b/src/app/shared/metadata-representation/metadata-representation-loader.component.ts index 2f2c96dc43..976dfdbda8 100644 --- a/src/app/shared/metadata-representation/metadata-representation-loader.component.ts +++ b/src/app/shared/metadata-representation/metadata-representation-loader.component.ts @@ -64,7 +64,7 @@ export class MetadataRepresentationLoaderComponent implements OnInit { } /** - * Fetch the component depending on the item's relationship type, metadata representation type and context + * Fetch the component depending on the item's entity type, metadata representation type and context * @returns {string} */ private getComponent(): GenericConstructor { diff --git a/src/app/shared/object-collection/shared/listable-object/listable-object-component-loader.component.ts b/src/app/shared/object-collection/shared/listable-object/listable-object-component-loader.component.ts index 7b2e994965..30ad91c1e2 100644 --- a/src/app/shared/object-collection/shared/listable-object/listable-object-component-loader.component.ts +++ b/src/app/shared/object-collection/shared/listable-object/listable-object-component-loader.component.ts @@ -179,7 +179,7 @@ export class ListableObjectComponentLoaderComponent implements OnInit, OnDestroy } /** - * Fetch the component depending on the item's relationship type, view mode and context + * Fetch the component depending on the item's entity type, view mode and context * @returns {GenericConstructor} */ getComponent(renderTypes: (string | GenericConstructor)[], diff --git a/src/app/shared/object-list/type-badge/type-badge.component.spec.ts b/src/app/shared/object-list/type-badge/type-badge.component.spec.ts index a92081dcd5..9a7e22c551 100644 --- a/src/app/shared/object-list/type-badge/type-badge.component.spec.ts +++ b/src/app/shared/object-list/type-badge/type-badge.component.spec.ts @@ -12,7 +12,7 @@ let fixture: ComponentFixture; const type = 'authorOfPublication'; -const mockItemWithRelationshipType = Object.assign(new Item(), { +const mockItemWithEntityType = Object.assign(new Item(), { bundles: observableOf({}), metadata: { 'dspace.entity.type': [ @@ -24,7 +24,7 @@ const mockItemWithRelationshipType = Object.assign(new Item(), { } }); -const mockItemWithoutRelationshipType = Object.assign(new Item(), { +const mockItemWithoutEntityType = Object.assign(new Item(), { bundles: observableOf({}), metadata: { 'dc.title': [ @@ -52,21 +52,21 @@ describe('ItemTypeBadgeComponent', () => { comp = fixture.componentInstance; })); - describe('When the item has a relationship type', () => { + describe('When the item has an entity type', () => { beforeEach(() => { - comp.object = mockItemWithRelationshipType; + comp.object = mockItemWithEntityType; fixture.detectChanges(); }); - it('should show the relationship type badge', () => { + it('should show the entity type badge', () => { const badge = fixture.debugElement.query(By.css('span.badge')); expect(badge.nativeElement.textContent).toContain(type.toLowerCase()); }); }); - describe('When the item has no relationship type', () => { + describe('When the item has no entity type', () => { beforeEach(() => { - comp.object = mockItemWithoutRelationshipType; + comp.object = mockItemWithoutEntityType; fixture.detectChanges(); });