From c0231f18dba60aaedfc277d98838bbd6f9a4b4f3 Mon Sep 17 00:00:00 2001
From: llaffont <llaffont@git-test.afi-sa.fr>
Date: Fri, 5 Apr 2013 12:42:30 +0000
Subject: [PATCH] Correction affichage tri recherche

---
 .../opac/views/scripts/recherche/resultatRecherche.phtml   | 3 +--
 library/ZendAfi/View/Helper/TagTriRecherche.php            | 7 ++++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/application/modules/opac/views/scripts/recherche/resultatRecherche.phtml b/application/modules/opac/views/scripts/recherche/resultatRecherche.phtml
index 444ca1929f5..bd507f141c6 100644
--- a/application/modules/opac/views/scripts/recherche/resultatRecherche.phtml
+++ b/application/modules/opac/views/scripts/recherche/resultatRecherche.phtml
@@ -64,8 +64,7 @@ if (!isset($tags)) $tags=[];
 <div style="width:100%" class="conteneur_simple">
 	<?php
 	// Si facettes ou tags on ouvre un tableau a 2 colonnes
-	if ($hasFacettes	or ($hasTags and (2 == $tagsPosition))) 
-	{
+	if ($hasFacettes	or ($hasTags and (2 == $tagsPosition))) {
 		?>
 		<table class="resultat_recherche" style="width:100%">
 			<tr>
diff --git a/library/ZendAfi/View/Helper/TagTriRecherche.php b/library/ZendAfi/View/Helper/TagTriRecherche.php
index 36176fd6f69..b672dde4a9a 100644
--- a/library/ZendAfi/View/Helper/TagTriRecherche.php
+++ b/library/ZendAfi/View/Helper/TagTriRecherche.php
@@ -23,7 +23,7 @@ class ZendAfi_View_Helper_TagTriRecherche extends Zend_View_Helper_HtmlElement {
 	public function tagTriRecherche($page,$nombre_resultats,$criteres_recherche) {
 		
 		// Nombre de resultats et n° de page
-		$html='<div><span>';
+		$html='<div class="resultats_page"><div><span>';
 		if(!intval($page)) $page=1;
     if(!$nombre_resultats) $html.= $this->view->_('Aucune notice trouvée');
     if($nombre_resultats == 1) $html.=$this->view->_('1 notice trouvée');
@@ -34,15 +34,16 @@ class ZendAfi_View_Helper_TagTriRecherche extends Zend_View_Helper_HtmlElement {
 		if($url = $criteres_recherche->getUrlCriteresWithoutTri())	{
 			$url_str = $this->view->url($url,null,true);
 			$onchange="var tri=$('#tri').val();document.location='".$url_str."/tri/'+tri;";
-			$html.='<span>Trier par </span>';
+			$html.='<span>Trier par ';
 			$html.=$this->view->formSelect('tri', 
 																		 $tri_selected, 
 																		 ['onchange' => $onchange], 
 																		 $criteres_recherche->getListeTris());
+			$html.='</span>';
 		}
 
 		$html.=' <span>page&nbsp;'.$page.'</span>';
-    $html.='</div>';
+    $html.='</div></div>';
 
 		return $html;
 	}
-- 
GitLab