diff --git a/VERSIONS_HOTLINE/134771 b/VERSIONS_HOTLINE/134771 new file mode 100644 index 0000000000000000000000000000000000000000..98b1a534b3c2371754aa10f1ea5d24aa1add8bb6 --- /dev/null +++ b/VERSIONS_HOTLINE/134771 @@ -0,0 +1 @@ + - ticket #134771 : Magasin de thèmes : Ajout du bouton suivre une recherche dans le thème Chili. Les outils de sélection de documents et d'impressions sont également présent dans le HTML mais masqués. \ No newline at end of file diff --git a/library/templates/Chili/Assets/css/chili.css b/library/templates/Chili/Assets/css/chili.css index 4601fe305e3176bbae9ae6c4022293df62abcfc8..8a0fd8e69a117e8bd4dafa1355c6b7af033db7cf 100644 --- a/library/templates/Chili/Assets/css/chili.css +++ b/library/templates/Chili/Assets/css/chili.css @@ -406,20 +406,19 @@ header .boite.rech_simple .dropdown.show .dropdown-toggle { .search_tools_col .result_page_size, .search_tools_col .result_pager, -.search_tools_col .result_follow_search, .search_tools_col .result_select_records, .search_tools_col .result_more_actions, .search_tools_col_2 .result_count_results, .search_tools_col_2 .result_wall_mod, .search_tools_col_2 .result_list_mod, .search_tools_col_2 .result_page_size, -.search_tools_col_2 .result_follow_search, .search_tools_col_2 .result_select_records, .search_tools_col_2 .result_more_actions, .search_tools_col_2 .result_search_order { display: none; } +.search_tools_col li, .search_tools_col .facets_label, .search_tools_col .facets_dropdown, .search_tools_col .result_count_results, @@ -528,11 +527,6 @@ header .boite.rech_simple .dropdown.show .dropdown-toggle { color: var(--chili-blue-t); } -.search_result .msg i, -.search_result .nav-item .text-white.text-light { - display: none; -} - .list-group-item .card { border-radius: 7px; box-shadow: 0 0 5px 0 var(--chili-l-box-shadow) !important; diff --git a/library/templates/Chili/View/Search/Result.php b/library/templates/Chili/View/Search/Result.php index 5ecaa473cd25093a6daaf7994fc0bd76d7d8403b..dd4caf171861bc079462b2246131b18c2afc8063 100644 --- a/library/templates/Chili/View/Search/Result.php +++ b/library/templates/Chili/View/Search/Result.php @@ -129,9 +129,6 @@ $('body').removeClass('overflow_hidden');", unset($tools_list['result_page_size']); unset($tools_list['result_pager']); - unset($tools_list['result_select_records']); - unset($tools_list['result_follow_search']); - unset($tools_list['result_more_actions']); return $tools_list; } @@ -160,7 +157,7 @@ $(id).on('hide.bs.dropdown', function () { $('body').removeClass('overflow_hidde protected function _countAllActiveFacets() { - $text = [$this->_('Filtrer')]; + $text = [$this->_tag('span' , $this->_('Filtrer'), ['class' => 'd-lg-none'])]; if ($count = $this->_search_facets_helper->countAllActiveFacets()) $text [] = $this->_tag('span', diff --git a/tests/scenarios/Templates/ChiliTest.php b/tests/scenarios/Templates/ChiliTest.php index f6983bd567dd7b86433c287a9492285083e4f5eb..504fce0f6c8cbd3fc06e5cb2531e6309f48391f4 100644 --- a/tests/scenarios/Templates/ChiliTest.php +++ b/tests/scenarios/Templates/ChiliTest.php @@ -612,20 +612,20 @@ class ChiliSearchResultWithNoMultiFacetsTest extends ChiliSearchResultWithFacets /** @test */ - public function toolsShouldNotContainsResultSelectRecords() { - $this->assertNotXPath('//div[contains(@class, "search_tools_col")]//li[contains(@class, "result_select_records")]'); + public function toolsShouldContainsResultSelectRecords() { + $this->assertXPath('//div[contains(@class, "search_tools_col")]//li[contains(@class, "result_select_records")]'); } /** @test */ - public function toolsShouldNotContainsResultFollowSearch() { - $this->assertNotXPath('//div[contains(@class, "search_tools_col")]//li[contains(@class, "result_follow_search")]'); + public function toolsShouldContainsResultFollowSearch() { + $this->assertXPath('//div[contains(@class, "search_tools_col")]//li[contains(@class, "result_follow_search")]'); } /** @test */ - public function toolsShouldNotContainsResultMoreActions() { - $this->assertNotXPath('//div[contains(@class, "search_tools_col")]//li[contains(@class, "result_more_actions")]'); + public function toolsShouldContainsResultMoreActions() { + $this->assertXPath('//div[contains(@class, "search_tools_col")]//li[contains(@class, "result_more_actions")]'); }