diff --git a/library/ZendAfi/View/Helper/Accueil/Library.php b/library/ZendAfi/View/Helper/Accueil/Library.php index 21d297b091733bd6a41d0e7ddeca1262eb48e4b5..1f17931b44a74f99468e3ed724f94eaf339d7a08 100644 --- a/library/ZendAfi/View/Helper/Accueil/Library.php +++ b/library/ZendAfi/View/Helper/Accueil/Library.php @@ -24,7 +24,6 @@ class ZendAfi_View_Helper_Accueil_Library extends ZendAfi_View_Helper_Accueil_Ba protected $page, $_filters, $_selected_filters = [], - $_default_filters = [], $_use_default_filters = true, $_filter_settings; @@ -66,9 +65,6 @@ class ZendAfi_View_Helper_Accueil_Library extends ZendAfi_View_Helper_Accueil_Ba ? $this->preferences['pagination'] : $this->_getDefaultPreference('pagination'); - if(isset($this->preferences['default_filters'])) - $this->_default_filters = $this->preferences['default_filters']; - $libraries = $this->_loadLibraries(); $content = $this->_renderFilters(); $libraries = $this->_filterLibraries($libraries); @@ -214,7 +210,9 @@ class ZendAfi_View_Helper_Accueil_Library extends ZendAfi_View_Helper_Accueil_Ba $this->_filter_settings ->setFilters($this->_filters) ->setSelectedFilters($this->_selected_filters) - ->setDefaultFilters($this->_default_filters) + ->setDefaultFilters(isset($this->preferences['default_filters']) + ? $this->preferences['default_filters'] + : []) ->setUseDefaultFilters($this->_use_default_filters) ->setModelLabel('Bib') ->setUrlParams($this->_getBaseUrl()) diff --git a/public/opac/js/renderFilters/list.css b/public/opac/js/renderFilters/list.css index b9d6c24825283c4857fe596734e73d0216ae711a..39f62103c06437f15b7aaec9cc766b6716c158cb 100644 --- a/public/opac/js/renderFilters/list.css +++ b/public/opac/js/renderFilters/list.css @@ -67,7 +67,6 @@ .boite ul.filters.list ul li { display: block; - position: relative; } .boite ul.filters.list ul li input { @@ -82,19 +81,3 @@ .boite ul.filters.list .search h2 { display: none; } - -.boite ul.filters.list ul li > * + input { - display: none; - position: absolute; - right: 5px; - top: 5px; -} - -.boite ul.filters.list ul li > input + input { - top: 0px; -} - -.boite ul.filters.list ul li > * + input[checked], -.boite ul.filters.list ul li:hover > * + input { - display: block; -} \ No newline at end of file diff --git a/public/opac/js/renderFilters/tabs.css b/public/opac/js/renderFilters/tabs.css index 0d12d28027bf189195dd24cb7e5da83e7ed6b442..f0707dc1e6e006ac47f8fd125138f0419be4fe9a 100644 --- a/public/opac/js/renderFilters/tabs.css +++ b/public/opac/js/renderFilters/tabs.css @@ -63,7 +63,6 @@ .boite ul.filters.tabs ul li { display: block; - position: relative; } .boite ul.filters.tabs ul li a { @@ -81,20 +80,4 @@ .boite ul.filters.tabs .search form { padding-left:5px; -} - -.boite ul.filters.tabs ul li > * + input { - display: none; - position: absolute; - right: 5px; - top: 5px; -} - -.boite ul.filters.tabs ul li > input + input { - top: 0px; -} - -.boite ul.filters.tabs ul li > * + input[checked], -.boite ul.filters.tabs ul li:hover > * + input { - display: block; } \ No newline at end of file