diff --git a/VERSIONS_HOTLINE/138642 b/VERSIONS_HOTLINE/138642 new file mode 100644 index 0000000000000000000000000000000000000000..38baef4c2deffb0302da8038886a6b79f25100c1 --- /dev/null +++ b/VERSIONS_HOTLINE/138642 @@ -0,0 +1 @@ + - ticket #138642 : SIGB Koha : Mise à jour des paramêtres requis pour une réservation calendaire. \ No newline at end of file diff --git a/library/Class/WebService/SIGB/Koha/Service.php b/library/Class/WebService/SIGB/Koha/Service.php index 5cb9c070e95608c50381c29c95fe55bfe9ef6f64..037087058f432405b750baf74792f886630d249a 100644 --- a/library/Class/WebService/SIGB/Koha/Service.php +++ b/library/Class/WebService/SIGB/Koha/Service.php @@ -292,8 +292,8 @@ class Class_WebService_SIGB_Koha_Service extends Class_WebService_SIGB_AbstractR $this->_setPickupLocation(['patron_id' => $this->_getUserPatronId($user), 'bib_id' => $exemplaire->getBibNumberFromIdOrigine(), 'item_id' => $exemplaire->getSubfield(9), - 'needed_before_date' => $reservedate, - 'pickup_expiry_date' => $expirationdate], + 'start_date' => $reservedate, + 'expiry_date' => $expirationdate], $code_annexe), 'code'); diff --git a/tests/library/Class/WebService/SIGB/KohaTest.php b/tests/library/Class/WebService/SIGB/KohaTest.php index 2456156abc0823e10dc14efc8c16bc9929ba030d..07e2742fa88e005f561651909f3ae414d374f69b 100644 --- a/tests/library/Class/WebService/SIGB/KohaTest.php +++ b/tests/library/Class/WebService/SIGB/KohaTest.php @@ -1127,7 +1127,7 @@ class KohaGetRecordElementaireMonCherPolarTest extends KohaTestCase { $this->mock_web_client ->whenCalled('open_url') - ->with('http://cat-aficg55.biblibre.com/cgi-bin/koha/ilsdi.pl?service=HoldItem&patron_id=007&bib_id=1&item_id=123&needed_before_date=2020-01-19&pickup_expiry_date=2020-02-25&pickup_location=007') + ->with('http://cat-aficg55.biblibre.com/cgi-bin/koha/ilsdi.pl?service=HoldItem&patron_id=007&bib_id=1&item_id=123&start_date=2020-01-19&expiry_date=2020-02-25&pickup_location=007') ->answers("<HoldTitle> <title>Elementaire mon cher Polar</title> <pickup_location>007</pickup_location>