diff --git a/VERSIONS_HOTLINE/218307 b/VERSIONS_HOTLINE/218307 new file mode 100644 index 0000000000000000000000000000000000000000..dce3219eb687f0a9c93f958b2c195f1e26d6313a --- /dev/null +++ b/VERSIONS_HOTLINE/218307 @@ -0,0 +1 @@ + - correctif #218307 : Connecteur Cvs : Correction d'une erreur au moissonage \ No newline at end of file diff --git a/library/digital_resources/Cvs2/Service/Parser/Catalogue.php b/library/digital_resources/Cvs2/Service/Parser/Catalogue.php index 8dd27c9eb4a1fb03b6b4ebe98101e499e1bf84c4..efa1c31b57cf3c354bc5c3c761bfabf537dcce2c 100644 --- a/library/digital_resources/Cvs2/Service/Parser/Catalogue.php +++ b/library/digital_resources/Cvs2/Service/Parser/Catalogue.php @@ -177,8 +177,8 @@ class Cvs2_Service_Parser_Catalogue extends Cvs2_Service_Parser_Abstract { } - public function endTotalalbums(int $data) :self { - $this->_total_ressources = $data; + public function endTotalalbums(string $data) :self { + $this->_total_ressources = (int) $data; return $this; } diff --git a/library/digital_resources/Cvs2/tests/Cvs2Test.php b/library/digital_resources/Cvs2/tests/Cvs2Test.php index f6b951b36d9a6fbe707960e5a70d94b515bc4b16..a4b175ab320e4c38eb292a123e9e3ce8f766ddae 100644 --- a/library/digital_resources/Cvs2/tests/Cvs2Test.php +++ b/library/digital_resources/Cvs2/tests/Cvs2Test.php @@ -599,7 +599,7 @@ class Cvs2HarvesterTest extends Cvs2ActivatedTestCase protected function _setXmlContent() { - $this->_xml_content = file_get_contents(__DIR__ . '/catalogue_tout_page_1.xml'); + $this->_xml_content = file_get_contents(__DIR__ . '/catalogue_tout_page_3.xml'); } diff --git a/library/digital_resources/Cvs2/tests/catalogue_tout_page_3.xml b/library/digital_resources/Cvs2/tests/catalogue_tout_page_3.xml index 72ef1b4a3986448a05c40cce2706d1441aa787cb..7873a3454d025e83fe465efabe58609313a881fc 100644 --- a/library/digital_resources/Cvs2/tests/catalogue_tout_page_3.xml +++ b/library/digital_resources/Cvs2/tests/catalogue_tout_page_3.xml @@ -15,7 +15,7 @@ <albumsmin>100</albumsmin> <albumsmax>200</albumsmax> <albumspagesize>100</albumspagesize> - <totalalbums>29449</totalalbums> + <totalalbums></totalalbums> <albums> <album> <pilier>4</pilier>