diff --git a/VERSIONS_HOTLINE/109273 b/VERSIONS_HOTLINE/109273 new file mode 100644 index 0000000000000000000000000000000000000000..bd3f81f282569ab52c9981cd5d2cfafed0ac07a9 --- /dev/null +++ b/VERSIONS_HOTLINE/109273 @@ -0,0 +1 @@ + - ticket #109273 : Web-Services Nanook : correction de l'affection de l'annexe aux exemplaires lorsque les identifiants bibliothèques et annexes sont différents \ No newline at end of file diff --git a/library/Class/WebService/SIGB/Nanook/GetRecordsResponseReader.php b/library/Class/WebService/SIGB/Nanook/GetRecordsResponseReader.php index 46380ca7986c13cef307ebf29fa908fdb9bec307..1a7dd60085999ebd9e12845431a66b817340db84 100644 --- a/library/Class/WebService/SIGB/Nanook/GetRecordsResponseReader.php +++ b/library/Class/WebService/SIGB/Nanook/GetRecordsResponseReader.php @@ -140,10 +140,7 @@ class Class_WebService_SIGB_Nanook_GetRecordsResponseReader { * @param string $data */ public function endLocationId($data) { - if ($annexe = Class_CodifAnnexe::findFirstBy(['id_origine' => $data])) - $this->_current_item->setCodeAnnexe($annexe->getIdBib()); - else - $this->_current_item->setCodeAnnexe((int)$data); + $this->_current_item->setCodeAnnexe((int)$data); } diff --git a/library/templates/Intonation/View/RenderAjax.php b/library/templates/Intonation/View/RenderAjax.php index d5ad9985812a8e7cf0061c3b1a6e32fd829450c1..e5d4391fdaa4b67156acd6b9db41d5962bb93141 100644 --- a/library/templates/Intonation/View/RenderAjax.php +++ b/library/templates/Intonation/View/RenderAjax.php @@ -28,6 +28,12 @@ class Intonation_View_RenderAjax extends ZendAfi_View_Helper_BaseHelper { 'action' => $action], $params); + + if (($ig = Zend_Controller_Front::getInstance() + ->getPlugin('ZendAfi_Controller_Plugin_InspectorGadget')) + && ($ig->isEnabled())) + $url['inspector_gadget'] = 1; + Class_ScriptLoader::getInstance() ->addJQueryReady(sprintf('$("#%s").load("%s", function() {%s;});', $id, diff --git a/tests/library/Class/WebService/SIGB/NanookTest.php b/tests/library/Class/WebService/SIGB/NanookTest.php index 9468ab70d53cb4ae196b0028f8fc5f83d2154b46..ae89400ef492bf87c384a18c0f04eb229375ebf1 100644 --- a/tests/library/Class/WebService/SIGB/NanookTest.php +++ b/tests/library/Class/WebService/SIGB/NanookTest.php @@ -387,8 +387,8 @@ class NanookGetNoticeLiliGrisbiAndCoTest extends NanookTestCase { /** @test */ - public function thirdExemplaireCodeAnnexeShouldBeThree() { - $this->assertEquals(3, $this->_notice->exemplaireAt(2)->getCodeAnnexe()); + public function thirdExemplaireCodeAnnexeShouldBeTen() { + $this->assertEquals(10, $this->_notice->exemplaireAt(2)->getCodeAnnexe()); }