diff --git a/VERSIONS_HOTLINE/103670 b/VERSIONS_HOTLINE/103670 new file mode 100644 index 0000000000000000000000000000000000000000..03ec01631cddfc693910330ef34324e4010f8b08 --- /dev/null +++ b/VERSIONS_HOTLINE/103670 @@ -0,0 +1 @@ + - ticket #103670 : Kiosque : Tri de recherche par défaut non pris en compte \ No newline at end of file diff --git a/library/ZendAfi/View/Helper/Accueil/Kiosque.php b/library/ZendAfi/View/Helper/Accueil/Kiosque.php index aa8d335fec50ab5e5653f52ead2b9e6f0dcd334d..691c6832e88e3a5326b998fa31271c11b3be422a 100644 --- a/library/ZendAfi/View/Helper/Accueil/Kiosque.php +++ b/library/ZendAfi/View/Helper/Accueil/Kiosque.php @@ -250,10 +250,10 @@ class ZendAfi_View_Helper_Accueil_Kiosque extends ZendAfi_View_Helper_Accueil_Ba if (!$titre = $this->preferences['titre']) return ''; - $tris = ['0' => 'alpha_titre', - '1' => 'date_creation desc', - '2' => 'nb_visu desc', - '3' => 'annee desc']; + $tris = ['0' => Class_CriteresRecherche_Abstract::SORT_TITLE_ASC, + '1' => Class_CriteresRecherche_Abstract::SORT_NOVELTY_DESC, + '2' => Class_CriteresRecherche_Abstract::SORT_VIEWS_DESC, + '3' => Class_CriteresRecherche_Abstract::SORT_PUBLICATION_DESC]; $this->preferences['titre'] = str_replace(['/', '%2F'], ' ', $this->preferences['titre']); diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php index b68b9ffd1c0132e0de73829c3362c9ec1ad7f46a..90f255b324d4d60b2950e9d2fb1b926fb9de4b9a 100644 --- a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php +++ b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php @@ -1349,7 +1349,7 @@ class ProfilOptionsControllerProfilJeunesseViewPageJeuxTest extends ProfilOption /** @test */ public function boiteKiosqueTitleShouldLinkToMenuCatalogue() { - $this->assertXPath("//div[@class='boite kiosque']//div//a[contains(@href, '/recherche/simple/titre/Boite+kiosque/style_liste/cube/nb_notices/20/only_img/1/aleatoire/1/tri/date_creation+desc/nb_analyse/50/op_hauteur_img/90/op_transition//op_largeur_img/120/op_hauteur_boite/0/op_captions/0/op_autoplay/0/op_visible/0/op_speed/0/op_auto/0/op_scroll/1/rss_avis/0/id_catalogue/0/id_panier/0/profil_redirect//boite/boite_de_la_division_gauche')]", + $this->assertXPath("//div[@class='boite kiosque']//div//a[contains(@href, '/recherche/simple/titre/Boite+kiosque/style_liste/cube/nb_notices/20/only_img/1/aleatoire/1/tri/date_creation+desc%2C+alpha_titre+asc/nb_analyse/50/op_hauteur_img/90/op_transition//op_largeur_img/120/op_hauteur_boite/0/op_captions/0/op_autoplay/0/op_visible/0/op_speed/0/op_auto/0/op_scroll/1/rss_avis/0/id_catalogue/0/id_panier/0/profil_redirect//boite/boite_de_la_division_gauche')]", $this->_response->getBody()); }