Skip to content
Snippets Groups Projects
Commit dd982183 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #64820 bug found

parent 1fefe7fe
Branches
Tags
1 merge request!2368Hotline#64820 connecteur cite de la musique
Pipeline #2718 passed with stage
in 2 minutes and 32 seconds
- ticket #64820 : Connecteur Cité de la musique
\ No newline at end of file
......@@ -58,6 +58,7 @@ abstract class Class_WebService_BibNumerique_AbstractOAI extends Class_WebServic
protected function _addFromTo($params) {
// not working when harvesting multiple sets. Second set trigger $count;
$count = Class_Album::countBy(['type_doc_id' => $this->getTypeDoc()]);
$harvest_log = Class_WebService_HarvestLog::findFirstBy(['type_doc' => $this->getTypeDoc(),
'order' => 'end_date desc']);
......
......@@ -48,8 +48,12 @@ class Class_WebService_BibNumerique_CiteDeLaMusique
protected function _harvestSet($set) {
while($this->getOaiWS()->hasRecordsToHarvest())
while($this->getOaiWS()->hasRecordsToHarvest()) {
$this->addHarvestedIds($this->_importRessources($this->_loadPageOf($set)));
if($set != 'videos-concerts-docu-entiers') {
var_dump($set);exit;
}
}
$this->getOaiWS()->reset();
}
......
......@@ -106,6 +106,7 @@ class Class_WebService_OAI extends Class_WebService_Abstract {
? '&'
: '?';
$url = $this->oai_handler . $separator . http_build_query($parameters);
var_dump($url);
$response = $this->getContent($url);
$this->_log($url, $response);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment