diff --git a/application/modules/admin/controllers/HarvestController.php b/application/modules/admin/controllers/HarvestController.php index 015f20d792af533b4bae05a03802c4793222e35e..c4c66ab5e5545c91368b81d5bd48e050012faa86 100644 --- a/application/modules/admin/controllers/HarvestController.php +++ b/application/modules/admin/controllers/HarvestController.php @@ -163,7 +163,7 @@ class Admin_HarvestController extends ZendAfi_Controller_Action { return; $service = new Class_WebService_BibNumerique_Orphea(); - $response = $service->harvestPage($this->_getParam('unid'), + $response = $service->harvestOrpheaPage($this->_getParam('unid'), $this->_getParam('page', 1), $this->_getParam('total_count')); echo json_encode($response); } diff --git a/library/Class/WebService/BibNumerique/Orphea.php b/library/Class/WebService/BibNumerique/Orphea.php index 6c8ebaa8545f6d95eed8681a6d553f37d3a57e15..70fb8b7f0e673390c79e68a95f38f7993dd3ed8d 100644 --- a/library/Class/WebService/BibNumerique/Orphea.php +++ b/library/Class/WebService/BibNumerique/Orphea.php @@ -56,7 +56,7 @@ class Class_WebService_BibNumerique_Orphea extends Class_WebService_BibNumerique protected function loadPage($page_number = 1) { - $this->harvestPage('', $page_number, '' ); + $this->harvestOrpheaPage('', $page_number, ''); return $this; } @@ -81,7 +81,12 @@ class Class_WebService_BibNumerique_Orphea extends Class_WebService_BibNumerique } - public function harvestPage($unid, $page = 1, $total_records = '') { + public function harvestPage($page_number=1) { + return $this->harvestOrpheaPage('', $page_number, ''); + } + + + public function harvestOrpheaPage($unid, $page = 1, $total_records = '') { if (!$this->getUNID($unid)) { return ['error' => $this->unid_parser->getFullMessage()]; }