7,6 → 7,7 |
protected $type_nom = 'nom_scientifique'; |
protected $type_resultat = ''; |
protected $submit = ''; |
protected $acces_fiche = false; |
private $recherche_avancee; |
private $param; |
private $i18n = array(); |
117,7 → 118,7 |
$form = I18n::get('Recherche-form-nom'); |
if ($res == false || $res['entete']['total'] == 0) { // recherche nom approché |
$approche = $this->rechercherNomApproche($noms); |
} elseif ($res['entete']['total'] == 1 || $this->submit == $form['fiche']) { // renvoie à la fiche |
} elseif ($res['entete']['total'] == 1 || $this->acces_fiche) { // renvoie à la fiche |
$approche = $this->traiterAccesFiche($res); |
} else { // affiche les résultats |
$res['type'] = $this->type_nom; |
174,6 → 175,9 |
if (isset($_GET['submit'])) { |
$this->submit = urldecode($_GET['submit']); |
} |
if(isset($_GET['acces_fiche'])) { |
$this->acces_fiche = true; |
} |
if (isset($_GET['niveau'])) { |
Registre::set('parametres.niveau', $_GET['niveau']); |
} |