| Line 25... |
Line 25... |
| 25 |
const WS_SAISIE = 'CelWidgetSaisie';
|
25 |
const WS_SAISIE = 'CelWidgetSaisie';
|
| 26 |
const WS_UPLOAD = 'CelWidgetUploadImageTemp';
|
26 |
const WS_UPLOAD = 'CelWidgetUploadImageTemp';
|
| 27 |
const WS_OBS = 'CelObs';
|
27 |
const WS_OBS = 'CelObs';
|
| 28 |
const WS_NOM = 'noms';
|
28 |
const WS_NOM = 'noms';
|
| 29 |
const EFLORE_API_VERSION = '0.1';
|
29 |
const EFLORE_API_VERSION = '0.1';
|
| 30 |
const REFERENTIEL_DEFAUT = 'bdtfx';
|
30 |
const REFERENTIEL_DEFAUT = 'bdtfxr';
|
| Line 31... |
Line 31... |
| 31 |
|
31 |
|
| 32 |
/** référentiel utilisé pour la complétion des noms scientifiques */
|
32 |
/** référentiel utilisé pour la complétion des noms scientifiques */
|
| 33 |
protected $ns_referentiel;
|
33 |
protected $ns_referentiel;
|
| 34 |
/** mot-clé associé aux saisies, et template personnalisé si appliquable */
|
34 |
/** mot-clé associé aux saisies, et template personnalisé si appliquable */
|
| Line 146... |
Line 146... |
| 146 |
$widget['donnees']['logo'] = $this->getLogoPage();
|
146 |
$widget['donnees']['logo'] = $this->getLogoPage();
|
| 147 |
$widget['donnees']['titre'] = $this->getTitrePage();
|
147 |
$widget['donnees']['titre'] = $this->getTitrePage();
|
| 148 |
$widget['donnees']['nom_mission'] = $this->getNomMissionFlore();
|
148 |
$widget['donnees']['nom_mission'] = $this->getNomMissionFlore();
|
| Line 149... |
Line 149... |
| 149 |
|
149 |
|
| - |
|
150 |
$widget['donnees']['zone_geo'] = $this->getZoneGeo();
|
| 150 |
$widget['donnees']['zone_geo'] = $this->getZoneGeo();
|
151 |
$widget['donnees']['groupe_zones_geo'] = $this->getGroupeZonesGeo();
|
| 151 |
$widget['donnees']['referentiel_impose'] = $this->getReferentielImpose();
|
152 |
$widget['donnees']['referentiel_impose'] = $this->getReferentielImpose();
|
| 152 |
$widget['donnees']['espece_imposee'] = false;
|
153 |
$widget['donnees']['espece_imposee'] = false;
|
| 153 |
$widget['donnees']['nn_espece_defaut'] = '';
|
154 |
$widget['donnees']['nn_espece_defaut'] = '';
|
| 154 |
$widget['donnees']['nom_sci_espece_defaut'] = '';
|
155 |
$widget['donnees']['nom_sci_espece_defaut'] = '';
|
| Line 163... |
Line 164... |
| 163 |
$urlWsNsSansRef = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, '{referentiel}', self::WS_NOM);
|
164 |
$urlWsNsSansRef = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, '{referentiel}', self::WS_NOM);
|
| 164 |
$widget['donnees']['url_ws_autocompletion_ns'] = $urlWsNs;
|
165 |
$widget['donnees']['url_ws_autocompletion_ns'] = $urlWsNs;
|
| 165 |
$widget['donnees']['url_ws_autocompletion_ns_tpl'] = $urlWsNsSansRef;
|
166 |
$widget['donnees']['url_ws_autocompletion_ns_tpl'] = $urlWsNsSansRef;
|
| 166 |
$widget['donnees']['ns_referentiel'] = $this->ns_referentiel;
|
167 |
$widget['donnees']['ns_referentiel'] = $this->ns_referentiel;
|
| Line -... |
Line 168... |
| - |
|
168 |
|
| 167 |
|
169 |
$widget['donnees']['url_ws_coord_search_tpl'] = $this->config['chemins']['serviceCoordSearchUrl'];
|
| Line 168... |
Line 170... |
| 168 |
$widget['donnees']['url_ws_trace_rue_tpl'] = $this->config['chemins']['serviceTraceRueUrl'];
|
170 |
$widget['donnees']['url_ws_trace_rue_tpl'] = $this->config['chemins']['serviceTraceRueUrl'];
|
| 169 |
|
171 |
|
| 170 |
if ($this->especeEstImposee()) {
|
172 |
if ($this->especeEstImposee()) {
|
| Line 223... |
Line 225... |
| 223 |
if (isset($_GET['logo'])) {
|
225 |
if (isset($_GET['logo'])) {
|
| 224 |
$logo = $_GET['logo'];
|
226 |
$logo = $_GET['logo'];
|
| 225 |
}
|
227 |
}
|
| 226 |
return $logo;
|
228 |
return $logo;
|
| 227 |
}
|
229 |
}
|
| 228 |
|
230 |
|
| - |
|
231 |
protected function getGroupeZonesGeo() {
|
| - |
|
232 |
$groupe = null;
|
| - |
|
233 |
if (isset($_GET['groupe_zones_geo'])) {
|
| - |
|
234 |
$groupe = $_GET['groupe_zones_geo'];
|
| - |
|
235 |
}
|
| - |
|
236 |
return $groupe;
|
| - |
|
237 |
}
|
| - |
|
238 |
|
| 229 |
protected function getZoneGeo() {
|
239 |
protected function getZoneGeo() {
|
| 230 |
$zone_geo = null;
|
240 |
$zone_geo = null;
|
| 231 |
if (isset($_GET['zone_geo'])) {
|
241 |
if (isset($_GET['zone_geo'])) {
|
| 232 |
$zone_geo = $_GET['zone_geo'];
|
242 |
$zone_geo = $_GET['zone_geo'];
|
| 233 |
}
|
243 |
}
|