mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
After rebase, replace new references to relationship.type with dspace.entity.type
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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'
|
||||
|
@@ -157,7 +157,7 @@
|
||||
"place": 0
|
||||
}
|
||||
],
|
||||
"relationship.type": [
|
||||
"dspace.entity.type": [
|
||||
{
|
||||
"value": "Publication",
|
||||
"language": null,
|
||||
|
Reference in New Issue
Block a user