Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 541 | Rev 570 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 541 Rev 560
Line 46... Line 46...
46
		$baseflor = array();
46
		$baseflor = array();
47
		$this->informations ->setProjet('baseflor');
47
		$this->informations ->setProjet('baseflor');
48
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
48
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
49
		$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
49
		$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
50
		$informations = $this->informations->getInformations();
50
		$informations = $this->informations->getInformations();
-
 
51
		if ($informations){
51
		$baseflor['chorologie'] = $informations['chorologie'];
52
			$baseflor['chorologie'] = $informations['chorologie'];
52
		$baseflor['inflorescence'] = $informations['inflorescence'];
53
			$baseflor['inflorescence'] = $informations['inflorescence'];
53
		$baseflor['sexualite'] = $informations['sexualite'];
54
			$baseflor['sexualite'] = $informations['sexualite'];
54
		$baseflor['ordre_maturation'] = $informations['ordre_maturation'];
55
			$baseflor['ordre_maturation'] = $informations['ordre_maturation'];
55
		$baseflor['pollinisation'] = $informations['pollinisation'];
56
			$baseflor['pollinisation'] = $informations['pollinisation'];
56
		$baseflor['dissemination'] = $informations['dissemination'];
57
			$baseflor['dissemination'] = $informations['dissemination'];
57
		$baseflor['fruit'] = $informations['fruit'];
58
			$baseflor['fruit'] = $informations['fruit'];
58
		$baseflor['couleur_fleur'] = $informations['couleur_fleur'];
59
			$baseflor['couleur_fleur'] = $informations['couleur_fleur'];
59
		$baseflor['macule'] = $informations['macule'];
60
			$baseflor['macule'] = $informations['macule'];
60
		$baseflor['floraison'] = $this->changerFloraisonEnChaine($informations['floraison']);
61
			$baseflor['floraison'] = $this->changerFloraisonEnChaine($informations['floraison']);
61
		//récupérer dans ontologies
62
			//récupérer dans ontologies
62
		$baseflor['type_bio'] = $informations['type_bio.libelle'];
63
			$baseflor['type_bio'] = $informations['type_bio.libelle'];
63
		$baseflor['form_vegetale'] = $informations['form_vegetale'];
64
			$baseflor['form_vegetale'] = $informations['form_vegetale'];
64
		$baseflor['description']=$baseflor;
65
			$baseflor['description']=$baseflor;
65
		$this->meta->setProjet('baseflor');
66
			$this->meta->setProjet('baseflor');
66
		$meta = $this->meta->getMetaDonnees();
67
			$meta = $this->meta->getMetaDonnees();
67
		$citation = $meta[0]['citation'];
68
			$citation = $meta[0]['citation'];
68
		$baseflor['meta']['citation'] = $citation;
69
			$baseflor['meta']['citation'] = $citation;
69
		$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
70
			$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
70
		
71
			
-
 
72
		}
71
		return $baseflor;
73
		return $baseflor;
72
	}
74
	}
Line 73... Line 75...
73
	
75
	
74
	public function changerFloraisonEnChaine($floraison){
76
	public function changerFloraisonEnChaine($floraison){
Line 91... Line 93...
91
		$description = $this->getCoste();
93
		$description = $this->getCoste();
92
		if ($description['description'] == '') {
94
		if ($description['description'] == '') {
93
			$donnees['titre'] = "Description Baseflor";
95
			$donnees['titre'] = "Description Baseflor";
94
			$description = $this->getBaseflor();
96
			$description = $this->getBaseflor();
95
		}
97
		}
96
		if ($description['description'] == '') {
98
		if (empty($description['description'])) {
97
			$donnees['titre'] = "Description collaborative";
99
			$donnees['titre'] = "Description collaborative";
98
			$description = $this->getWikini();
100
			$description = $this->getWikini();
99
		}
101
		}
100
		$donnees['description'] = $description['description'];
102
		$donnees['description'] = $description['description'];
101
		return $donnees;
103
		return $donnees;