Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 75 → Rev 76

/trunk/modules/recherche/Recherche.php
7,8 → 7,8
* Fonction d'affichage par défaut
*/
public function executerActionParDefaut() {
$rechercheAccueil = $this->executerAction('recherche-simple', 'accueil');
$this->setSortie(self::RENDU_CORPS, $rechercheAccueil);
$this->executerAction('RechercheSimple', 'executerAccueil');
}
 
public function executerRechercheSimple() {
28,8 → 28,11
$donnees['url_nom_approche'] = $this->obtenirUrlRechercheSimple($presence, $donnees['type_nom']);
}
}
Registre::set('donnees', $donnees);
$this->executerAction('recherche_simple', 'executerForm');
Registre::set('donneesMoteur', $donnees);
$this->executerAction('RechercheSimple', 'executerForm');
if ($presence == 'ok') {
$this->executerAction('Resultat', 'executerResultat');
}
}
// regarde si il y a des résultats correspondant au nom recherché sinon recherche un nom approché
48,6 → 51,7
$url = $this->obtenirUrlFiche($ids[0]);
$this->redirigerVers($url);
} else { // affiche les résultats
Registre::set('resultats', $res);
$approche = 'ok';
}
return $approche;