Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 926 → Rev 925

/trunk/services/modules/0.1/bdtfx/CommunNomsTaxons.php
129,7 → 129,6
}
 
public function ajouterFiltreMasque($nom_champ, $valeur) {
$orig_val = $valeur;
$valeur = explode(',',$valeur);
$conditions = array();
if ($nom_champ == 'annee' || $nom_champ == 'rang') {
149,11 → 148,6
$conditions[] = "( SOUNDEX($nom_champ) = SOUNDEX($val))".
" OR ( SOUNDEX(REVERSE($nom_champ)) = SOUNDEX(REVERSE($val)))";
}
// utile pour la détermination à partir d'un nom retenu (concat(nom_sci,auteur)) lors
// d'un import depuis le CEL
} elseif ($this->parametres['recherche'] == 'concat' && $nom_champ == 'nom_sci') {
$conditions[] = "CONCAT(nom_sci, ' ', auteur) = " . $this->getBdd()->proteger($orig_val);
 
} else {
foreach ($valeur as $val) {
$conditions[] = "$nom_champ LIKE ".$this->getBdd()->proteger($val);