File tree Expand file tree Collapse file tree
clarin-licenses/clarin-all-licenses-page
item-page/edit-item-page/item-license-mapper
submission/sections/clarin-license-resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { BehaviorSubject } from 'rxjs';
33import { ClarinLicense } from '../../core/shared/clarin/clarin-license.model' ;
44import { ClarinLicenseDataService } from '../../core/data/clarin/clarin-license-data.service' ;
55import { getFirstSucceededRemoteListPayload } from '../../core/shared/operators' ;
6- import { FindListOptions } from '../../core/data/find-list-options.model' ;
6+ import { FindListOptions , MAX_PAGE_SIZE } from '../../core/data/find-list-options.model' ;
77import { ClarinLicenseRequiredInfo } from '../../core/shared/clarin/clarin-license.resource-type' ;
88import { ClarinLicenseRequiredInfoSerializer } from '../../core/shared/clarin/clarin-license-required-info-serializer' ;
99
@@ -36,7 +36,7 @@ export class ClarinAllLicensesPageComponent implements OnInit {
3636 const options = new FindListOptions ( ) ;
3737 options . currentPage = 0 ;
3838 // Load all licenses
39- options . elementsPerPage = 1000 ;
39+ options . elementsPerPage = MAX_PAGE_SIZE ;
4040 return this . clarinLicenseService . findAll ( options , false )
4141 . pipe ( getFirstSucceededRemoteListPayload ( ) )
4242 . subscribe ( res => {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { ClarinLicenseDataService } from '../../../core/data/clarin/clarin-licen
88import { getFirstCompletedRemoteData , getFirstSucceededRemoteListPayload } from '../../../core/shared/operators' ;
99import { PaginatedList } from '../../../core/data/paginated-list.model' ;
1010import { ClarinLicense } from '../../../core/shared/clarin/clarin-license.model' ;
11- import { FindListOptions } from '../../../core/data/find-list-options.model' ;
11+ import { FindListOptions , MAX_PAGE_SIZE } from '../../../core/data/find-list-options.model' ;
1212import { PutRequest } from '../../../core/data/request.models' ;
1313import { HALEndpointService } from '../../../core/shared/hal-endpoint.service' ;
1414import { RequestService } from '../../../core/data/request.service' ;
@@ -90,7 +90,7 @@ export class ItemLicenseMapperComponent implements OnInit {
9090 const options = new FindListOptions ( ) ;
9191 options . currentPage = 0 ;
9292 // Load all licenses
93- options . elementsPerPage = 1000 ;
93+ options . elementsPerPage = MAX_PAGE_SIZE ;
9494
9595 this . clarinLicenseService . findAll ( options , false )
9696 . pipe (
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import { TranslateService } from '@ngx-translate/core';
3535import { FindListOptions } from 'src/app/core/data/find-list-options.model' ;
3636import { hasFailed } from 'src/app/core/data/request-entry-state.model' ;
3737import { RequestParam } from '../../../core/cache/models/request-param.model' ;
38+ import { MAX_PAGE_SIZE } from '../../../core/data/find-list-options.model' ;
3839
3940/**
4041 * This component render resource license step in the submission workflow.
@@ -551,7 +552,7 @@ export class SubmissionSectionClarinLicenseComponent extends SectionModelCompone
551552 const options = new FindListOptions ( ) ;
552553 options . currentPage = 0 ;
553554 // Load all licenses
554- options . elementsPerPage = 1000 ;
555+ options . elementsPerPage = MAX_PAGE_SIZE ;
555556 return this . clarinLicenseService . findAll ( options , false )
556557 . pipe ( getFirstSucceededRemoteListPayload ( ) )
557558 . toPromise ( ) ;
You can’t perform that action at this time.
0 commit comments