mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
64424: Angular impact of changes to relationship type changes
This commit is contained in:
@@ -58,10 +58,10 @@ export const filterRelationsByTypeLabel = (label: string, thisId?: string) =>
|
|||||||
return relatedItems$.pipe(
|
return relatedItems$.pipe(
|
||||||
map((arr) => relsCurrentPage.filter((rel: Relationship, idx: number) =>
|
map((arr) => relsCurrentPage.filter((rel: Relationship, idx: number) =>
|
||||||
hasValue(relTypesCurrentPage[idx]) && (
|
hasValue(relTypesCurrentPage[idx]) && (
|
||||||
(hasNoValue(thisId) && (relTypesCurrentPage[idx].leftLabel === label ||
|
(hasNoValue(thisId) && (relTypesCurrentPage[idx].leftwardType === label ||
|
||||||
relTypesCurrentPage[idx].rightLabel === label)) ||
|
relTypesCurrentPage[idx].rightwardType === label)) ||
|
||||||
(thisId === arr[idx][0].id && relTypesCurrentPage[idx].leftLabel === label) ||
|
(thisId === arr[idx][0].id && relTypesCurrentPage[idx].leftwardType === label) ||
|
||||||
(thisId === arr[idx][1].id && relTypesCurrentPage[idx].rightLabel === label)
|
(thisId === arr[idx][1].id && relTypesCurrentPage[idx].rightwardType === label)
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
);
|
);
|
||||||
|
@@ -23,7 +23,7 @@ export class NormalizedRelationshipType extends NormalizedObject<RelationshipTyp
|
|||||||
* The label that describes the Relation to the left of this RelationshipType
|
* The label that describes the Relation to the left of this RelationshipType
|
||||||
*/
|
*/
|
||||||
@autoserialize
|
@autoserialize
|
||||||
leftLabel: string;
|
leftwardType: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum amount of Relationships allowed to the left of this RelationshipType
|
* The maximum amount of Relationships allowed to the left of this RelationshipType
|
||||||
@@ -41,7 +41,7 @@ export class NormalizedRelationshipType extends NormalizedObject<RelationshipTyp
|
|||||||
* The label that describes the Relation to the right of this RelationshipType
|
* The label that describes the Relation to the right of this RelationshipType
|
||||||
*/
|
*/
|
||||||
@autoserialize
|
@autoserialize
|
||||||
rightLabel: string;
|
rightwardType: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum amount of Relationships allowed to the right of this RelationshipType
|
* The maximum amount of Relationships allowed to the right of this RelationshipType
|
||||||
|
@@ -33,7 +33,7 @@ export class RelationshipType implements CacheableObject {
|
|||||||
/**
|
/**
|
||||||
* The label that describes the Relation to the left of this RelationshipType
|
* The label that describes the Relation to the left of this RelationshipType
|
||||||
*/
|
*/
|
||||||
leftLabel: string;
|
leftwardType: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum amount of Relationships allowed to the left of this RelationshipType
|
* The maximum amount of Relationships allowed to the left of this RelationshipType
|
||||||
@@ -48,7 +48,7 @@ export class RelationshipType implements CacheableObject {
|
|||||||
/**
|
/**
|
||||||
* The label that describes the Relation to the right of this RelationshipType
|
* The label that describes the Relation to the right of this RelationshipType
|
||||||
*/
|
*/
|
||||||
rightLabel: string;
|
rightwardType: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum amount of Relationships allowed to the right of this RelationshipType
|
* The maximum amount of Relationships allowed to the right of this RelationshipType
|
||||||
|
Reference in New Issue
Block a user