mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Other minor corrections of "relationship type" to "entity type"
This commit is contained in:
@@ -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> {
|
||||
|
@@ -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> {
|
||||
|
@@ -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> {
|
||||
|
@@ -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>)[],
|
||||
|
@@ -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();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user