Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rero/rero-ils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5409b7b6a07da3bd76ebc5bb32b03de53a399016
Choose a base ref
..
head repository: rero/rero-ils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f4c958d569e374c11be40442b87d815f2e305be0
Choose a head ref
Original file line number Diff line number Diff line change
@@ -51,9 +51,9 @@ export class CirculationPolicyService {

loadAllItemTypesPatronTypesCirculationPolicies() {
return forkJoin(
this.recordsService.getRecords('global', 'item_types', 1, 9999),
this.recordsService.getRecords('global', 'patron_types', 1, 9999),
this.recordsService.getRecords('global', 'circ_policies', 1, 9999)
this.recordsService.getRecords('global', 'item_types', 1, RecordsService.MAX_REST_RESULTS_SIZE),
this.recordsService.getRecords('global', 'patron_types', 1, RecordsService.MAX_REST_RESULTS_SIZE),
this.recordsService.getRecords('global', 'circ_policies', 1, RecordsService.MAX_REST_RESULTS_SIZE)
);
}

Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ export class CirculationPolicyComponent implements OnInit {
this.circulationMapping.setPolicyLevel(
circulation.policy_library_level
);
this.recordsService.getRecords('global', 'libraries', 1, 9999)
this.recordsService.getRecords('global', 'libraries', 1, RecordsService.MAX_REST_RESULTS_SIZE)
.subscribe((libraries: any) => {
libraries.hits.hits.forEach(library => {
this.librariesOrg.push({
6 changes: 5 additions & 1 deletion ui/src/app/records/records.service.ts
Original file line number Diff line number Diff line change
@@ -30,6 +30,10 @@ import { DialogService, _ } from '@app/core';
providedIn: 'root'
})
export class RecordsService {

public static readonly DEFAULT_REST_RESULTS_SIZE = 10;
public static readonly MAX_REST_RESULTS_SIZE = 9999;

private translatePlural;
constructor(
private http: HttpClient,
@@ -56,7 +60,7 @@ export class RecordsService {
view: string,
record_type: string,
page: number = 1,
size: number = 10,
size: number = RecordsService.DEFAULT_REST_RESULTS_SIZE,
query: string = '',
mime_type: string = 'application/json',
filters = [],