Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1028 Rev 1049
Line 105... Line 105...
105
	}
105
	}
Line 106... Line 106...
106
 
106
 
107
	public function getBloc() {
107
	public function getBloc() {
108
		$donnees['chorodep'] = $this->getChorodepMiniature();
108
		$donnees['chorodep'] = $this->getChorodepMiniature();
-
 
109
		$donnees['eflore'] = $this->getMoissonnageMiniature();
-
 
110
 
-
 
111
		// TODO: moche, comment gérer le fait que l'onglet "synthèse", en "bdtxa", doive
-
 
112
		// afficher la carte chorologie, et non la carte chorodep.
-
 
113
		// workaround: écrasement de l'URL dans ['répartition']['chorodep']:
-
 
114
		if($this->referentiel == 'bdtxa') {
-
 
115
			$syns = $this->conteneur->getApiNoms()->getSynonymes($this->nomCourant->getNnr());
-
 
116
			$nns_syns = array_keys($syns['resultat']);
-
 
117
			$nns_syns[] = $this->nomCourant->getNnr();
-
 
118
			$donnees['chorodep'] = Cartes::getCarteUrlPng(Config::get($this->referentiel.'.baseRepartition'),
-
 
119
														  'nn:'.implode(',', $nns_syns),
-
 
120
														  '190x178');
-
 
121
		}
109
		$donnees['eflore'] = $this->getMoissonnageMiniature();
122
 
110
		return $donnees;
123
		return $donnees;
Line 111... Line 124...
111
	}
124
	}
112
	
125