| 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']['referentiel_impose'] = $this->getReferentielImpose();
|
150 |
$widget['donnees']['referentiel_impose'] = $this->getReferentielImpose();
|
| 151 |
$widget['donnees']['espece_imposee'] = false;
|
151 |
$widget['donnees']['espece_imposee'] = false;
|
| 152 |
$widget['donnees']['nn_espece_defaut'] = '';
|
152 |
$widget['donnees']['nn_espece_defaut'] = '';
|
| 153 |
$widget['donnees']['nom_sci_espece_defaut'] = '';
|
153 |
$widget['donnees']['nom_sci_espece_defaut'] = '';
|
| Line 154... |
Line 154... |
| 154 |
$widget['donnees']['infos_espece'] = '{}';
|
154 |
$widget['donnees']['infos_espece'] = '{}';
|
| Line 155... |
Line 155... |
| 155 |
|
155 |
|
| Line 156... |
Line 156... |
| 156 |
$widget['donnees']['prod'] = ($this->config['parametres']['modeServeur'] == "prod");
|
156 |
$widget['donnees']['prod'] = ($this->config['parametres']['modeServeur'] == "prod");
|
| 157 |
|
157 |
|
| 158 |
$projetsAutorises = $this->transformerEnTableau($this->config['projets']['autorises']);
|
158 |
$projetsAutorises = $this->transformerEnTableau($this->config['projets']['autorises']);
|
| 159 |
|
159 |
|
| 160 |
$urlWsNsTpl = $this->config['chemins']['baseURLServicesEfloreTpl'];
|
160 |
$urlWsNsTpl = $this->config['chemins']['baseURLServicesEfloreTpl'];
|
| 161 |
$urlWsNs = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, $this->ns_referentiel, self::WS_NOM);
|
161 |
$urlWsNs = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, $this->ns_referentiel, self::WS_NOM);
|
| Line 162... |
Line 162... |
| 162 |
$urlWsNsSansRef = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, '{referentiel}', self::WS_NOM);
|
162 |
$urlWsNsSansRef = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, '{referentiel}', self::WS_NOM);
|
| 163 |
$widget['donnees']['url_ws_autocompletion_ns'] = $urlWsNs;
|
163 |
$widget['donnees']['url_ws_autocompletion_ns'] = $urlWsNs;
|
| 164 |
$widget['donnees']['url_ws_autocompletion_ns_tpl'] = $urlWsNsSansRef;
|
164 |
$widget['donnees']['url_ws_autocompletion_ns_tpl'] = $urlWsNsSansRef;
|
| 165 |
$widget['donnees']['ns_referentiel'] = $this->ns_referentiel;
|
165 |
$widget['donnees']['ns_referentiel'] = $this->ns_referentiel;
|
| 166 |
|
166 |
|
| 167 |
$widget['donnees']['url_ws_trace_rue_tpl'] = $this->config['chemins']['serviceTraceRueUrl'];
|
167 |
$widget['donnees']['url_ws_trace_rue_tpl'] = $this->config['chemins']['serviceTraceRueUrl'];
|
| 168 |
|
168 |
|
| 169 |
if ($this->especeEstImposee()) {
|
169 |
if ($this->especeEstImposee()) {
|
| 170 |
$nnEspeceImposee = $this->getNnEspeceImposee();
|
170 |
$nnEspeceImposee = $this->getNnEspeceImposee();
|
| 171 |
$nom = $this->chargerInfosTaxon($nnEspeceImposee);
|
171 |
$nom = $this->chargerInfosTaxon($nnEspeceImposee);
|
| Line 172... |
Line 172... |
| 172 |
$widget['donnees']['espece_imposee'] = true;
|
172 |
$widget['donnees']['espece_imposee'] = true;
|
| 173 |
$widget['donnees']['nn_espece_defaut'] = $nnEspeceImposee;
|
173 |
$widget['donnees']['nn_espece_defaut'] = $nnEspeceImposee;
|
| 174 |
$widget['donnees']['nom_sci_espece_defaut'] = $nom['nom_complet'];
|
174 |
$widget['donnees']['nom_sci_espece_defaut'] = $nom['nom_complet'];
|
| Line 209... |
Line 209... |
| 209 |
$titre = '';
|
209 |
$titre = '';
|
| 210 |
}
|
210 |
}
|
| 211 |
return $titre;
|
211 |
return $titre;
|
| 212 |
}
|
212 |
}
|
| Line 213... |
Line -... |
| 213 |
|
- |
|
| 214 |
|
213 |
|
| 215 |
protected function getLogoPage() {
|
214 |
protected function getLogoPage() {
|
| 216 |
$logo = 'defaut';
|
215 |
$logo = 'defaut';
|
| 217 |
if (isset($this->configProjet['logo_page'])) {
|
216 |
if (isset($this->configProjet['logo_page'])) {
|
| 218 |
$logo = $this->configProjet['logo_page'];
|
217 |
$logo = $this->configProjet['logo_page'];
|
| Line 225... |
Line 224... |
| 225 |
}
|
224 |
}
|
| 226 |
return $logo;
|
225 |
return $logo;
|
| 227 |
}
|
226 |
}
|
| Line 228... |
Line 227... |
| 228 |
|
227 |
|
| - |
|
228 |
protected function getReferentielImpose() {
|
| - |
|
229 |
$referentiel_impose = false;
|
| - |
|
230 |
if (isset($this->configProjet['referentiel'])) {
|
| 229 |
protected function getReferentielImpose() {
|
231 |
$this->ns_referentiel = $this->configProjet['referentiel'];
|
| - |
|
232 |
$referentiel_impose = true;
|
| 230 |
$referentiel_impose = true;
|
233 |
}
|
| 231 |
if (!empty($_GET['referentiel']) && $_GET['referentiel'] != "autre") {
|
234 |
if (!empty($_GET['referentiel']) && $_GET['referentiel'] != "autre") {
|
| 232 |
$this->ns_referentiel = $_GET['referentiel'];
|
- |
|
| 233 |
} else if (isset($this->configProjet['referentiel'])) {
|
- |
|
| 234 |
$this->ns_referentiel = $this->configProjet['referentiel'];
|
- |
|
| 235 |
} else if (isset($this->configMission['referentiel'])) {
|
- |
|
| 236 |
$this->ns_referentiel = $this->configMission['referentiel'];
|
- |
|
| 237 |
} else {
|
235 |
$this->ns_referentiel = $_GET['referentiel'];
|
| 238 |
$referentiel_impose = false;
|
236 |
$referentiel_impose = true;
|
| 239 |
}
|
237 |
}
|
| 240 |
return $referentiel_impose;
|
238 |
return $referentiel_impose;
|
| Line 241... |
Line 239... |
| 241 |
}
|
239 |
}
|