diff --git a/src/app/+item-page/item-page-routing-paths.ts b/src/app/+item-page/item-page-routing-paths.ts index 8ad5583269..43b37f954a 100644 --- a/src/app/+item-page/item-page-routing-paths.ts +++ b/src/app/+item-page/item-page-routing-paths.ts @@ -10,11 +10,11 @@ export function getItemModuleRoute() { /** * Get the route to an item's page - * Depending on the item's relationship type, the route will either start with /items or /entities + * Depending on the item's entity type, the route will either start with /items or /entities * @param item The item to retrieve the route for */ export function getItemPageRoute(item: Item) { - const type = item.firstMetadataValue('relationship.type'); + const type = item.firstMetadataValue('dspace.entity.type'); return getEntityPageRoute(type, item.uuid); } diff --git a/src/app/core/data/dso-redirect-data.service.spec.ts b/src/app/core/data/dso-redirect-data.service.spec.ts index 43489fbf6d..d64f37ad78 100644 --- a/src/app/core/data/dso-redirect-data.service.spec.ts +++ b/src/app/core/data/dso-redirect-data.service.spec.ts @@ -120,7 +120,7 @@ describe('DsoRedirectDataService', () => { it('should navigate to entities route with the corresponding entity type', () => { remoteData.payload.type = 'item'; remoteData.payload.metadata = { - 'relationship.type': [ + 'dspace.entity.type': [ { language: 'en_US', value: 'Publication' diff --git a/src/app/shared/mocks/dspace-rest/mocks/mock-publication-response.json b/src/app/shared/mocks/dspace-rest/mocks/mock-publication-response.json index d298812e5d..cc4cb5fa46 100644 --- a/src/app/shared/mocks/dspace-rest/mocks/mock-publication-response.json +++ b/src/app/shared/mocks/dspace-rest/mocks/mock-publication-response.json @@ -157,7 +157,7 @@ "place": 0 } ], - "relationship.type": [ + "dspace.entity.type": [ { "value": "Publication", "language": null,