You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a relationship is tilted; the other side from the tilt, eg side where we expect many relationships, eg the Author side with many Publications linked to it: In its edit Item > Relationships tab the linked items via relationships don't render.
They are however included in the search the edit item relationships type does; eg /server/api/core/relationships/search/byLabel?page=0&size=5&label=isPublicationOfAuthor&dso={item-uuid}&embed=leftItem/thumbnail&embed=rightItem/thumbnail
So the edit relationships page still shows the pagination for the expected results, just doesn't render the items.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a relationship is
tilted
; the other side from the tilt, eg side where we expect many relationships, eg the Author side with many Publications linked to it: In its edit Item > Relationships tab the linked items via relationships don't render.Example config:
To Reproduce
Steps to reproduce the behavior:
./${dspace.dir}/bin/dspace initialize-entities -f ${dspace.dir}/config/entities/test-relationship-types.xml
Expected behavior
Should render the related items, paginated.
Possible cause
This is possible because these items are never initialised/cached since relationships which are tilted away from an item are not embedded (
excludeTilted=true
[here](https://github.com/DSpace/DSpace/blob/main/dspace-server-webapp/src/main/java/org/dspace/app/rest/repository/ItemRelationshipLinkRepository.java#L55-L58)) => So not embedded on/server/api/core/items/<uuid>/relationships
They are however included in the search the edit item relationships type does; eg
/server/api/core/relationships/search/byLabel?page=0&size=5&label=isPublicationOfAuthor&dso={item-uuid}&embed=leftItem/thumbnail&embed=rightItem/thumbnail
So the edit relationships page still shows the pagination for the expected results, just doesn't render the items.
The text was updated successfully, but these errors were encountered: