Index: branches/wmf/1.17wmf1/extensions/OAI/OAIRepo_body.php |
— | — | @@ -544,7 +544,8 @@ |
545 | 545 | } |
546 | 546 | |
547 | 547 | function chunkSize() { |
548 | | - return 50; |
| 548 | + global $oaiChunkSize; |
| 549 | + return $oaiChunkSize; |
549 | 550 | } |
550 | 551 | |
551 | 552 | function baseUrl() { |
Index: branches/wmf/1.17wmf1/extensions/OAI/OAIRepo.php |
— | — | @@ -55,6 +55,13 @@ |
56 | 56 | */ |
57 | 57 | $oaiAuditDatabase = false; |
58 | 58 | |
| 59 | +/** |
| 60 | + * Number of records to return in each ListRecords or ListIdentifiers request. |
| 61 | + * Additional records will be available by making another request using the |
| 62 | + * ResumptionToken returned. |
| 63 | + */ |
| 64 | +$oaiChunkSize = 50; |
| 65 | + |
59 | 66 | $wgExtensionCredits['specialpage'][] = array( |
60 | 67 | 'path' => __FILE__, |
61 | 68 | 'name' => 'OAIRepository', |