http://www.mediawiki.org/wiki/Special:Code/MediaWiki/93770

Revision: 93770
Author:   reedy
Date:     2011-08-02 17:01:20 +0000 (Tue, 02 Aug 2011)
Log Message:
-----------
MFT r91364

Modified Paths:
--------------
    branches/wmf/1.17wmf1/extensions/OAI/OAIRepo.php
    branches/wmf/1.17wmf1/extensions/OAI/OAIRepo_body.php

Modified: branches/wmf/1.17wmf1/extensions/OAI/OAIRepo.php
===================================================================
--- branches/wmf/1.17wmf1/extensions/OAI/OAIRepo.php    2011-08-02 16:56:29 UTC 
(rev 93769)
+++ branches/wmf/1.17wmf1/extensions/OAI/OAIRepo.php    2011-08-02 17:01:20 UTC 
(rev 93770)
@@ -55,6 +55,13 @@
  */
 $oaiAuditDatabase = false;
 
+/**
+ * Number of records to return in each ListRecords or ListIdentifiers request.
+ * Additional records will be available by making another request using the
+ * ResumptionToken returned.
+ */
+$oaiChunkSize = 50;
+
 $wgExtensionCredits['specialpage'][] = array(
        'path'           => __FILE__,
        'name'           => 'OAIRepository',

Modified: branches/wmf/1.17wmf1/extensions/OAI/OAIRepo_body.php
===================================================================
--- branches/wmf/1.17wmf1/extensions/OAI/OAIRepo_body.php       2011-08-02 
16:56:29 UTC (rev 93769)
+++ branches/wmf/1.17wmf1/extensions/OAI/OAIRepo_body.php       2011-08-02 
17:01:20 UTC (rev 93770)
@@ -544,7 +544,8 @@
        }
 
        function chunkSize() {
-               return 50;
+               global $oaiChunkSize;
+               return $oaiChunkSize;
        }
 
        function baseUrl() {


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to