Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 760 → Rev 761

/trunk/services/modules/0.1/baseflor/InformationsBaseflor.php
83,7 → 83,12
foreach ($this->parametres as $param => $valeur) {
switch ($param) {
case 'categorie' :
if ($valeur == "description" && $this->nb_ressources == 1 ) {
if($this->nb_ressources != 1 ) {
$e = "Nombre de ressource != 1 pour informations/#id/relations/catminat";
throw new Exception($e, RestServeur::HTTP_CODE_MAUVAISE_REQUETE);
}
 
if ($valeur == "description") {
$this->champs_recherches = "num_nomen, BDNT, chorologie, inflorescence,"
." sexualite, ordre_maturation, "
."pollinisation, fruit, dissemination, couleur_fleur, macule, floraison, type_bio, "
92,7 → 97,7
"OR sexualite != '' OR ordre_maturation != '' OR pollinisation != '' ".
"OR fruit != '' OR dissemination != '' OR couleur_fleur != '' OR macule != '' ".
"OR floraison != '' OR type_bio != '' OR form_vegetale != '' )";
}elseif ($valeur == "ecologie" && $this->nb_ressources == 1) {
} elseif ($valeur == "ecologie") {
$this->champs_recherches = " num_nomen, BDNT, ve_lumiere , ve_temperature,"
." ve_continentalite, ve_humidite_atmos, ve_humidite_edaph, ve_reaction_sol,"
." ve_nutriments_sol, ve_salinite, ve_texture_sol, ve_mat_org_sol, "