mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
44024: element max set to 20
This commit is contained in:
@@ -82,7 +82,10 @@ export class SearchService {
|
||||
elementsPerPage: returningPageInfo.elementsPerPage
|
||||
});
|
||||
|
||||
const pageInfo = itemsRD.pageInfo;
|
||||
const pageInfo = itemsRD.pageInfo.map((info: PageInfo) => {
|
||||
info.totalElements = info.totalElements > 20 ? 20 : info.totalElements;
|
||||
return info;
|
||||
});
|
||||
|
||||
const payload = itemsRD.payload.map((items: Item[]) => {
|
||||
return shuffle(items)
|
||||
|
@@ -69,7 +69,6 @@ export class ObjectListComponent implements OnChanges, OnInit {
|
||||
|
||||
ngOnInit(): void {
|
||||
this.pageInfo = this.objects.pageInfo;
|
||||
this.pageInfo.subscribe((info) => console.log(info));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user