mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +00:00
refactor followlinks to use a single object for all params and add an isOptional param. Also add support for embedding links to search service
This commit is contained in:
@@ -174,8 +174,8 @@ export class CommunityListService {
|
||||
direction: options.sort.direction
|
||||
}
|
||||
},
|
||||
followLink('subcommunities', this.configOnePage, true, true),
|
||||
followLink('collections', this.configOnePage, true, true))
|
||||
followLink('subcommunities', { findListOptions: this.configOnePage }),
|
||||
followLink('collections', { findListOptions: this.configOnePage }))
|
||||
.pipe(
|
||||
getFirstSucceededRemoteData(),
|
||||
map((results) => results.payload),
|
||||
@@ -242,8 +242,8 @@ export class CommunityListService {
|
||||
elementsPerPage: MAX_COMCOLS_PER_PAGE,
|
||||
currentPage: i
|
||||
},
|
||||
followLink('subcommunities', this.configOnePage, true, true),
|
||||
followLink('collections', this.configOnePage, true, true))
|
||||
followLink('subcommunities', { findListOptions: this.configOnePage }),
|
||||
followLink('collections', { findListOptions: this.configOnePage }))
|
||||
.pipe(
|
||||
getFirstCompletedRemoteData(),
|
||||
switchMap((rd: RemoteData<PaginatedList<Community>>) => {
|
||||
|
Reference in New Issue
Block a user