Line 84... |
Line 84... |
84 |
// Pré traitement des paramètres
|
84 |
// Pré traitement des paramètres
|
85 |
$p = $this->pretraiterParametresUrl($param);
|
85 |
$p = $this->pretraiterParametresUrl($param);
|
86 |
$referentiel = substr($p['ref'], 2, -2);
|
86 |
$referentiel = substr($p['ref'], 2, -2);
|
Line 87... |
Line 87... |
87 |
|
87 |
|
88 |
// Construction de la requête
|
88 |
// Construction de la requête
|
89 |
$requete = (($this->distinct) ? 'SELECT DISTINCT' : 'SELECT').' num_nom, nom_complet, auteur, annee, '.
|
89 |
$requete = (($this->distinct) ? 'SELECT DISTINCT' : 'SELECT').' num_nom, nom_sci, auteur, annee, '.
|
90 |
'biblio_origine, nom_addendum, num_nom_retenu FROM '.$referentiel.$this->construireWhere($p).
|
90 |
'biblio_origine, nom_addendum, num_nom_retenu FROM '.$referentiel.$this->construireWhere($p).
|
91 |
'ORDER BY '.((!is_null($this->orderby)) ? $this->orderby : 'num_nom ASC, nom_complet ASC').' '.
|
91 |
'ORDER BY '.((!is_null($this->orderby)) ? $this->orderby : 'num_nom ASC, nom_sci ASC').' '.
|
Line 92... |
Line 92... |
92 |
"LIMIT $this->start, $this->limit ";
|
92 |
"LIMIT $this->start, $this->limit ";
|
93 |
|
93 |
|
94 |
// Récupération des résultats
|
94 |
// Récupération des résultats
|
Line 156... |
Line 156... |
156 |
|
156 |
|
157 |
$liste_nom = $this->getNomRetenu($param);
|
157 |
$liste_nom = $this->getNomRetenu($param);
|
158 |
if ($liste_nom != '') {
|
158 |
if ($liste_nom != '') {
|
159 |
// Construction de la requête
|
159 |
// Construction de la requête
|
160 |
// si recherche des synonymes
|
160 |
// si recherche des synonymes
|
161 |
$requete = (($this->distinct) ? 'SELECT DISTINCT' : 'SELECT').' num_nom, nom_complet, auteur, annee, '.
|
161 |
$requete = (($this->distinct) ? 'SELECT DISTINCT' : 'SELECT').' num_nom, nom_sci, auteur, annee, '.
|
162 |
'biblio_origine, nom_addendum, num_nom_retenu, basionyme, synonyme_mal_applique FROM '.$referentiel.' WHERE num_nom_retenu IN ('
|
162 |
'biblio_origine, nom_addendum, num_nom_retenu, basionyme, synonyme_mal_applique FROM '.$referentiel.' WHERE num_nom_retenu IN ('
|
163 |
.$liste_nom.') ORDER BY num_nom ASC ';
|
163 |
.$liste_nom.') ORDER BY num_nom ASC ';
|
164 |
try {
|
164 |
try {
|
165 |
$donnees = $this->bdd->query($requete)->fetchAll(PDO::FETCH_ASSOC);
|
165 |
$donnees = $this->bdd->query($requete)->fetchAll(PDO::FETCH_ASSOC);
|
Line 298... |
Line 298... |
298 |
$where .= 'AND ('.
|
298 |
$where .= 'AND ('.
|
299 |
" num_nom LIKE {$p['mots']} ".
|
299 |
" num_nom LIKE {$p['mots']} ".
|
300 |
" OR num_nom_retenu LIKE {$p['mots']} ".
|
300 |
" OR num_nom_retenu LIKE {$p['mots']} ".
|
301 |
" OR num_tax_sup LIKE {$p['mots']} ".
|
301 |
" OR num_tax_sup LIKE {$p['mots']} ".
|
302 |
" OR rang LIKE {$p['mots']} ".
|
302 |
" OR rang LIKE {$p['mots']} ".
|
303 |
" OR nom_complet LIKE {$p['mots']} ".
|
303 |
" OR nom_sci LIKE {$p['mots']} ".
|
304 |
" OR nom_supra_generique LIKE {$p['mots']} ".
|
304 |
" OR nom_supra_generique LIKE {$p['mots']} ".
|
305 |
" OR genre LIKE {$p['mots']} ".
|
305 |
" OR genre LIKE {$p['mots']} ".
|
306 |
" OR epithete_infra_generique LIKE {$p['mots']} ".
|
306 |
" OR epithete_infra_generique LIKE {$p['mots']} ".
|
307 |
" OR epithete_sp LIKE {$p['mots']} ".
|
307 |
" OR epithete_sp LIKE {$p['mots']} ".
|
308 |
" OR type_epithete LIKE {$p['mots']} ".
|
308 |
" OR type_epithete LIKE {$p['mots']} ".
|