diff --git a/library/ZendAfi/View/Helper/Facettes.php b/library/ZendAfi/View/Helper/Facettes.php index f46781df59161a1dde479658f5912542b2a793ba..54e4b94cad8e657e7e189c5a3df2c7a801df8894 100644 --- a/library/ZendAfi/View/Helper/Facettes.php +++ b/library/ZendAfi/View/Helper/Facettes.php @@ -123,7 +123,7 @@ class ZendAfi_View_Helper_Facettes extends ZendAfi_View_Helper_BaseHelper { $this->renderLabel($url, $label) . $this->renderCount($count) . $this->renderRemove($code, $label), - ['class' => 'facette' . ($this->isActive($code) ? 'selected' : '')]); + ['class' => 'facette' . ($this->isActive($code) ? ' selected' : '')]); } diff --git a/public/opac/js/recherche.js b/public/opac/js/recherche.js index 9af1afd2ab3e12c9c2b3020f69d3bf052bec0590..128533e4de92662f197ce86c037edd0d127ad55a 100644 --- a/public/opac/js/recherche.js +++ b/public/opac/js/recherche.js @@ -433,7 +433,7 @@ var scrollToSelectedNoticeInResult = function() { function modeFacetteCochable() { - $('.filtre_recherche li.facette').each(function() { + $('.filtre_recherche li.facette').not('.suggests .facette').each(function() { $(this).click(function(){ $(this).find('a').each(function(){ event.preventDefault(); diff --git a/tests/application/modules/opac/controllers/RechercheControllerTest.php b/tests/application/modules/opac/controllers/RechercheControllerTest.php index 67531161b656a09d96e14ea030e0883f7e2adb14..d36c80b9450d8be7346d6e5b0877d1bf51d21eb8 100644 --- a/tests/application/modules/opac/controllers/RechercheControllerTest.php +++ b/tests/application/modules/opac/controllers/RechercheControllerTest.php @@ -1280,13 +1280,13 @@ class RechercheControllerFacetteSelectedTest extends AbstractControllerTestCase /** @test */ public function facetteLivresShouldBeChecked() { - $this->assertXPath('//div[@class="facette"]//li[contains(@class,"selected")]',$this->_response->getBody()); + $this->assertXPath('//div[@class="facette"]//li[contains(@class," selected")]',$this->_response->getBody()); } /** @test */ public function liFacetteLivresShouldHaveSiblingsAWidthHrefRemoveFacetteLivre() { - $this->assertXPath('//div[@class="facette"]//li[contains(@class,"selected")]/a[@href="/recherche/simple/expressionRecherche/hello/tri/%2A"]',$this->_response->getBody()); + $this->assertXPath('//div[@class="facette"]//li[contains(@class," selected")]/a[@href="/recherche/simple/expressionRecherche/hello/tri/%2A"]',$this->_response->getBody()); } }