Index: trunk/extensions/OAI/OAIRepo_body.php |
— | — | @@ -538,7 +538,8 @@ |
539 | 539 | } |
540 | 540 | |
541 | 541 | function chunkSize() { |
542 | | - return 50; |
| 542 | + global $oaiChunkSize; |
| 543 | + return $oaiChunkSize; |
543 | 544 | } |
544 | 545 | |
545 | 546 | function baseUrl() { |
Index: trunk/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', |