Skip to content
Snippets Groups Projects
Commit 2f46d7d0 authored by llaffont's avatar llaffont
Browse files

Catalogue/appelmenu redirige sur recherche/simple

parent cdf4c4b6
Branches
Tags
No related merge requests found
......@@ -68,41 +68,8 @@ class CatalogueController extends Zend_Controller_Action
//------------------------------------------------------------------------------------------------------
// Appel par une ligne de menu
//------------------------------------------------------------------------------------------------------
function appelmenuAction() {
// Moteur de recherche
$moteur=new Class_MoteurRecherche();
$catalogue = Class_Catalogue::find($this->_getParam('id_catalogue'));
if (!$catalogue)
return;
$criteres_recherche = new Class_CriteresRecherche();
$criteres_recherche->setParams($this->_request->getParams());
$ret=$moteur->lancerRecherche($criteres_recherche);
// $ret = $this->catalogue->getRequetes($this->_request->getParams(), false);
if (array_isset("req_comptage", $ret)) {
$ret["nombre"] = fetchOne($ret["req_comptage"]);
if ($nb_notices = $this->_getParam('nb_notices'))
if ($ret["nombre"] > $nb_notices)
$ret["nombre"] = $nb_notices;
$facettes = $moteur->getFacettes($ret["req_facettes"],$this->preferences);
}
// Variables viewre
$page = $this->_getParam('page', 1);
$this->view->titre=$this->_getParam('titre');
if (isset($ret['req_liste']))
$this->view->liste = Class_Notice::findAllByRequeteRecherche($ret['req_liste'],
$this->preferences["liste_nb_par_page"],
$page);
$this->view->resultat=$ret;
$this->view->resultat["page_cours"]=$page;
$this->view->url_facette=$this->view->url_retour;
$this->view->texte_selection=$this->getTexteSelection();
$this->view->criteres_recherche = $criteres_recherche->setParams($this->_request->getParams());
public function appelmenuAction() {
return $this->_forward('simple', 'recherche');
}
//------------------------------------------------------------------------------------------------------
......
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