32,17 → 32,18 |
} |
|
public function obtenirDonnees() { |
$this->getNomsVernaculaires(); |
$this->getNomsVernaculaires('.referentielVerna'); |
$this->getNomsVernaculaires('.referentielVernaGrec'); |
$this->getChorologie(); |
$this->donnees['wikini'] = $this->getWikini(); |
return $this->donnees; |
} |
|
private function getNomsVernaculaires() { |
$projet = Config::get($this->referentiel.'.referentielVerna'); |
private function getNomsVernaculaires($projet) { |
$projet = Config::get($this->referentiel.$projet); |
if ($projet != "") { |
$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique'); |
$nomsVerna = $this->nomsVernaculaires->getRechercheComplete($nt); |
$nomsVerna = $this->nomsVernaculaires->getRechercheComplete($projet, $nt); |
$this->donnees[$projet]['noms'] = $nomsVerna['resultat']; |
$this->meta->setProjet($projet); |
$meta = $this->meta->getMetaDonnees(); |
54,9 → 55,12 |
|
public function getBloc() { |
$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique'); |
$nomsVerna = $this->nomsVernaculaires->getRechercheLimitee($nt); |
$this->donnees['nomsVerna'] = (isset($nomsVerna['resultat']) && is_array($nomsVerna['resultat'])) ? array_slice($nomsVerna['resultat'], 0, 3) : array(); |
$this->donnees['autresNomsVerna'] = count($nomsVerna['resultat']) - 3; |
$projet = Config::get($this->referentiel.'.referentielVerna'); |
if ($projet != "") { |
$nomsVerna = $this->nomsVernaculaires->getRechercheLimitee($projet, $nt); |
$this->donnees['nomsVerna'] = (isset($nomsVerna['resultat']) && is_array($nomsVerna['resultat'])) ? array_slice($nomsVerna['resultat'], 0, 3) : array(); |
$this->donnees['autresNomsVerna'] = count($nomsVerna['resultat']) - 3; |
} |
$this->donnees['wikini'] = $this->getWikini(); |
return $this->donnees; |
} |