mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +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
|
* 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
|
* @param item The item to retrieve the route for
|
||||||
*/
|
*/
|
||||||
export function getItemPageRoute(item: Item) {
|
export function getItemPageRoute(item: Item) {
|
||||||
const type = item.firstMetadataValue('relationship.type');
|
const type = item.firstMetadataValue('dspace.entity.type');
|
||||||
return getEntityPageRoute(type, item.uuid);
|
return getEntityPageRoute(type, item.uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -120,7 +120,7 @@ describe('DsoRedirectDataService', () => {
|
|||||||
it('should navigate to entities route with the corresponding entity type', () => {
|
it('should navigate to entities route with the corresponding entity type', () => {
|
||||||
remoteData.payload.type = 'item';
|
remoteData.payload.type = 'item';
|
||||||
remoteData.payload.metadata = {
|
remoteData.payload.metadata = {
|
||||||
'relationship.type': [
|
'dspace.entity.type': [
|
||||||
{
|
{
|
||||||
language: 'en_US',
|
language: 'en_US',
|
||||||
value: 'Publication'
|
value: 'Publication'
|
||||||
|
@@ -157,7 +157,7 @@
|
|||||||
"place": 0
|
"place": 0
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"relationship.type": [
|
"dspace.entity.type": [
|
||||||
{
|
{
|
||||||
"value": "Publication",
|
"value": "Publication",
|
||||||
"language": null,
|
"language": null,
|
||||||
|
Reference in New Issue
Block a user