13,6 → 13,7 |
* @copyright 1999-2011 Tela Botanica (accueil@tela-botanica.org) |
*/ |
|
|
abstract class CommunNomsTaxons extends Commun { |
|
/** Tableau de correspondance entre les noms des champs et les codes de l'ontologie.*/ |
303,11 → 304,18 |
public function formaterId($resultat) { |
$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp'); |
$this->resultat_req = $resultat; |
|
foreach ($resultat as $cle => $valeur) { |
if ($valeur != '') { |
$this->afficherDonnees($cle, $valeur); |
} |
} |
if (isset($this->parametres['retour.champs']) && $this->format_reponse == 'noms/id') { |
$retour = $this->table_retour; |
$this->table_retour = array(); |
$champs = explode(',', $this->parametres['retour.champs']); |
$this->ajouterChampsPersonnalises($champs, $retour); |
} |
unset($this->table_retour['href']); |
return $this->table_retour; |
} |