View | Details | Raw Unified | Return to bug 19278
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_19196_pagination_plugin.perl (+11 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
5
        VALUES
6
            ('RESTdefaultPageSize','20','','Set the default number of results returned by the REST API endpoints','Integer')
7
    });
8
9
    SetVersion( $DBversion );
10
    print "Upgrade to $DBversion done (Bug 19278: Add a configurable default page size for REST endpoints)\n";
11
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 452-457 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
452
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
452
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
453
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
453
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
454
('ReservesNeedReturns','1','','If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','YesNo'),
454
('ReservesNeedReturns','1','','If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','YesNo'),
455
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
455
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
456
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
456
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
457
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
457
('RestrictedPageTitle','',NULL,'Title of the restricted page (breadcrumb and header)','Free'),
458
('RestrictedPageTitle','',NULL,'Title of the restricted page (breadcrumb and header)','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-1 / +6 lines)
Lines 1-4 Link Here
1
Web services:
1
Web services:
2
    REST API:
3
        -
4
            - "Set the default number of results returned by the REST API endpoints to"
5
            - pref: "RESTdefaultPageSize"
6
              class: integer
7
            - "per page"
2
    OAI-PMH:
8
    OAI-PMH:
3
        -
9
        -
4
            - pref: OAI-PMH
10
            - pref: OAI-PMH
5
- 

Return to bug 19278