Skip to content
Snippets Groups Projects
Commit 1ff093cf authored by Laurent's avatar Laurent
Browse files

hotline#61844 test fix

parent ccbae7c4
Branches
Tags
3 merge requests!2334Master,!2241Stable,!2235Hotline#61844 encore des problemes sur la vod
Pipeline #1875 failed with stage
in 10 minutes and 45 seconds
......@@ -28,14 +28,10 @@ var source_harvest = function(page_number) {
$('#progress_message').text('Catalogue importé');
$('#progress_bar').progressbar({value:100});
return;
}
}
var progress_message = 'Page ' + data['current_page'] + '/' + data['page_count'];
if (data['total_count']) {
progress_message = data['total_count'] + ' notices au total. ' + progress_message;
}
$('#progress_message').text(progress_message);
$('#progress_message').text(data['total_count'] + ' notices au total. Page '
+ data['current_page'] + '/' + data['page_count']);
$('#progress_bar').progressbar({value:(data['current_page'] * 100) / data['page_count']});
source_harvest(page_number+1);
});
......
......@@ -68,7 +68,7 @@ abstract class Class_WebService_BibNumerique_Abstract extends Class_WebService_A
return $response;
}
$response['total_count'] = 0;
$response['total_count'] = $reader->getTotalCount();
$response['current_page'] = $reader->getPageNumber();
$response['page_count'] = $reader->getPageCount();
$response['has_next'] = $reader->getPageNumber() < $reader->getPageCount();
......
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