Other minor corrections of "relationship type" to "entity type"

This commit is contained in:
Tim Donohue
2021-03-12 14:18:08 -06:00
parent d36ac7e6fa
commit c308e5fd4d
5 changed files with 11 additions and 11 deletions

View File

@@ -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<Component>}
*/
private getComponent(): GenericConstructor<Component> {

View File

@@ -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<Component>}
*/
private getComponent(item: Item): GenericConstructor<Component> {

View File

@@ -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<MetadataRepresentationListElementComponent> {

View File

@@ -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<Component>}
*/
getComponent(renderTypes: (string | GenericConstructor<ListableObject>)[],

View File

@@ -12,7 +12,7 @@ let fixture: ComponentFixture<TypeBadgeComponent>;
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();
});