mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
add awareness of the pagination
This commit is contained in:

committed by
Terry W Brady

parent
ea41259274
commit
52f284ea5a
@@ -64,7 +64,7 @@ public class CollectionRestRepository extends DSpaceRestRepository<CollectionRes
|
||||
int total = 0;
|
||||
try {
|
||||
total = cs.countTotal(context);
|
||||
it = cs.findAll(context);
|
||||
it = cs.findAll(context, pageable.getPageSize(), pageable.getOffset());
|
||||
for (Collection c: it) {
|
||||
collections.add(c);
|
||||
}
|
||||
|
@@ -64,7 +64,7 @@ public class CommunityRestRepository extends DSpaceRestRepository<CommunityRest,
|
||||
int total = 0;
|
||||
try {
|
||||
total = cs.countTotal(context);
|
||||
it = cs.findAll(context);
|
||||
it = cs.findAll(context, pageable.getPageSize(), pageable.getOffset());
|
||||
for (Community c: it) {
|
||||
communities.add(c);
|
||||
}
|
||||
|
Reference in New Issue
Block a user