Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1554 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1554 Rev 1557
Line 60... Line 60...
60
	    $plantuse = array ();
60
	    $plantuse = array ();
61
	    $this->textes->setProjet('plantuse');
61
	    $this->textes->setProjet('plantuse');
62
	    $this->textes->setId ($this->nomCourant->getNomRetenu()->get('nom_sci'));
62
	    $this->textes->setId ($this->nomCourant->getNomRetenu()->get('nom_sci'));
63
	    $texte = $this->textes->getUsage();
63
	    $texte = $this->textes->getUsage();
Line 64... Line 64...
64
	    
64
	    
65
	    if ($texte['resultats']) {
65
	    if ($texte['resultats']['usages']) {
66
	        $plantuse ['titre'] = "Résumé des usages de Pl@ntUse";
66
	        $plantuse['titre'] = "Résumé des usages de Pl@ntUse";
-
 
67
	        $plantuse['usages'] = $texte['resultats']['usages'];
67
	        $plantuse ['description'] = $this->mettreEnFormePlantUse($texte['resultats']);
68
	        $plantuse['url'] = $texte['resultats']['url'];
68
	    }
69
	    }
69
	    $this->meta->setProjet('plantuse');
70
	    $this->meta->setProjet('plantuse');
70
	    $meta = $this->meta->getMetaDonnees ();
71
	    $meta = $this->meta->getMetaDonnees ();
71
	    $plantuse ['meta'] = $meta [0];
72
	    $plantuse ['meta'] = $meta [0];
72
	    $plantuse ['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('plantuse');
73
	    $plantuse ['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('plantuse');
73
	    $this->donnees['plantuse'] = $plantuse;
74
	    $this->donnees['plantuse'] = $plantuse;
74
	}
75
	}
75
	
-
 
76
	private function mettreEnFormePlantUse($texte) {
-
 
77
	    $texte = str_replace("*", "", $texte);
-
 
78
	    $liste = explode("\n", $texte);
-
 
79
	    return $liste;
-
 
Line 80... Line 76...
80
	}
76
		
81
	
77
	
82
	public function getBloc() {
78
	public function getBloc() {
83
		$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique');
79
		$nt = $this->nomCourant->getNomRetenu()->get('num_taxonomique');