Skip to content
Snippets Groups Projects
Commit 8338d713 authored by Laurent's avatar Laurent
Browse files

dev #22209 search result feed

reification of Search Result - test fix
parent ea7f76cf
Branches
Tags
3 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!1027Dev#22209 search result feed,!1026Dev#22209 search result feed
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* *
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software * along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OPAC3 - Class module Recherche Guidee // OPAC3 - Class module Recherche Guidee
...@@ -26,7 +26,7 @@ class ZendAfi_View_Helper_Accueil_RechGuidee extends ZendAfi_View_Helper_Accueil ...@@ -26,7 +26,7 @@ class ZendAfi_View_Helper_Accueil_RechGuidee extends ZendAfi_View_Helper_Accueil
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// Construction du Html // Construction du Html
//--------------------------------------------------------------------- //---------------------------------------------------------------------
public function getHtml() public function getHtml()
{ {
$class_rech = new Class_MoteurRecherche(); $class_rech = new Class_MoteurRecherche();
...@@ -34,24 +34,22 @@ class ZendAfi_View_Helper_Accueil_RechGuidee extends ZendAfi_View_Helper_Accueil ...@@ -34,24 +34,22 @@ class ZendAfi_View_Helper_Accueil_RechGuidee extends ZendAfi_View_Helper_Accueil
$criteres_recherche->setParams( [ 'rubrique' => 'guidee']); $criteres_recherche->setParams( [ 'rubrique' => 'guidee']);
$ret = $class_rech->lancerRecherche($criteres_recherche); $rubrique = '';
if ($result = $class_rech->lancerRecherche($criteres_recherche)) {
if($ret) foreach ($result->getRubrics() as $rub) {
{
$rubrique = '';
foreach ($ret["rubriques"] as $rub) {
$rubrique.='<a href="'.$this->view->url($rub["url"]).'">&raquo;&nbsp;'.$rub["libelle"].'</a><br />'; $rubrique.='<a href="'.$this->view->url($rub["url"]).'">&raquo;&nbsp;'.$rub["libelle"].'</a><br />';
} }
} }
$this->titre = $this->preferences["titre"]; $this->titre = $this->preferences["titre"];
$this->contenu = $this->contenu =
'<table width="98%"> '<table width="98%">
<tr> <tr>
<td>'.$rubrique.'</td> <td>'.$rubrique.'</td>
</tr> </tr>
</table> </table>
'; ';
// Retour // Retour
return $this->getHtmlArray(); return $this->getHtmlArray();
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment