mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
made use of embedded resources for relationships in the response that contain a single link for a set of resources rather than enumerate the self link of each resource
This commit is contained in:
@@ -185,7 +185,12 @@ export class RemoteDataBuildService {
|
||||
rdArr.push(this.buildSingle(href, resourceConstructor));
|
||||
});
|
||||
|
||||
links[relationship] = this.aggregate(rdArr);
|
||||
if (rdArr.length === 1) {
|
||||
links[relationship] = rdArr[0];
|
||||
}
|
||||
else {
|
||||
links[relationship] = this.aggregate(rdArr);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// without the setTimeout, the actions inside requestService.configure
|
||||
|
Reference in New Issue
Block a user