changed elementsPerPage on CollectionDataService

This commit is contained in:
Giuseppe Digilio
2019-07-25 19:18:11 +02:00
parent 50024c8c55
commit 3fe67b8da1

View File

@@ -42,7 +42,7 @@ export class CollectionDataService extends ComColDataService<Collection> {
} }
/** /**
* Get all collections whom user has authorization to submit * Get all collections the user is authorized to submit to
* *
* @return Observable<RemoteData<PaginatedList<Collection>>> * @return Observable<RemoteData<PaginatedList<Collection>>>
* collection list * collection list
@@ -50,14 +50,14 @@ export class CollectionDataService extends ComColDataService<Collection> {
getAuthorizedCollection(): Observable<RemoteData<PaginatedList<Collection>>> { getAuthorizedCollection(): Observable<RemoteData<PaginatedList<Collection>>> {
const searchHref = 'findAuthorized'; const searchHref = 'findAuthorized';
const options = new FindAllOptions(); const options = new FindAllOptions();
options.elementsPerPage = 1000; options.elementsPerPage = 100;
return this.searchBy(searchHref, options).pipe( return this.searchBy(searchHref, options).pipe(
filter((collections: RemoteData<PaginatedList<Collection>>) => !collections.isResponsePending)); filter((collections: RemoteData<PaginatedList<Collection>>) => !collections.isResponsePending));
} }
/** /**
* Get all collections whom user has authorization to submit to by community * Get all collections the user is authorized to submit to, by community
* *
* @return Observable<RemoteData<PaginatedList<Collection>>> * @return Observable<RemoteData<PaginatedList<Collection>>>
* collection list * collection list
@@ -65,7 +65,7 @@ export class CollectionDataService extends ComColDataService<Collection> {
getAuthorizedCollectionByCommunity(communityId): Observable<RemoteData<PaginatedList<Collection>>> { getAuthorizedCollectionByCommunity(communityId): Observable<RemoteData<PaginatedList<Collection>>> {
const searchHref = 'findAuthorizedByCommunity'; const searchHref = 'findAuthorizedByCommunity';
const options = new FindAllOptions(); const options = new FindAllOptions();
options.elementsPerPage = 1000; options.elementsPerPage = 100;
options.searchParams = [new SearchParam('uuid', communityId)]; options.searchParams = [new SearchParam('uuid', communityId)];
return this.searchBy(searchHref, options).pipe( return this.searchBy(searchHref, options).pipe(