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 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* 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
......@@ -26,7 +26,7 @@ class ZendAfi_View_Helper_Accueil_RechGuidee extends ZendAfi_View_Helper_Accueil
//---------------------------------------------------------------------
// Construction du Html
//---------------------------------------------------------------------
//---------------------------------------------------------------------
public function getHtml()
{
$class_rech = new Class_MoteurRecherche();
......@@ -34,24 +34,22 @@ class ZendAfi_View_Helper_Accueil_RechGuidee extends ZendAfi_View_Helper_Accueil
$criteres_recherche->setParams( [ 'rubrique' => 'guidee']);
$ret = $class_rech->lancerRecherche($criteres_recherche);
if($ret)
{
$rubrique = '';
foreach ($ret["rubriques"] as $rub) {
$rubrique = '';
if ($result = $class_rech->lancerRecherche($criteres_recherche)) {
foreach ($result->getRubrics() as $rub) {
$rubrique.='<a href="'.$this->view->url($rub["url"]).'">&raquo;&nbsp;'.$rub["libelle"].'</a><br />';
}
}
$this->titre = $this->preferences["titre"];
$this->contenu =
$this->contenu =
'<table width="98%">
<tr>
<td>'.$rubrique.'</td>
</tr>
</table>
';
// Retour
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