After rebase, replace new references to relationship.type with dspace.entity.type

This commit is contained in:
Tim Donohue
2021-03-31 15:33:01 -05:00
parent c308e5fd4d
commit ae240ff36b
3 changed files with 4 additions and 4 deletions

View File

@@ -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);
}

View File

@@ -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'

View File

@@ -157,7 +157,7 @@
"place": 0
}
],
"relationship.type": [
"dspace.entity.type": [
{
"value": "Publication",
"language": null,