Subversion Repositories eFlore/Applications.cel

Compare Revisions

Regard whitespace Rev 2405 → Rev 2406

/trunk/widget/modules/saisie/Saisie.php
112,14 → 112,12
$widget['donnees']['url_ws_annuaire'] = sprintf($this->config['chemins']['baseURLServicesAnnuaireTpl'], 'utilisateur/identite-par-courriel/');
$widget['donnees']['url_remarques'] = $this->config['chemins']['widgetRemarquesUrl'];
 
 
$widget['donnees']['logo'] = isset($_GET['logo']) ? $_GET['logo'] : 'defaut';
$widget['donnees']['titre'] = isset($_GET['titre']) ? $_GET['titre'] : 'defaut';
$widget['donnees']['titre'] = ($widget['donnees']['titre'] == '0') ? '' : $widget['donnees']['titre'];
 
// cas du projet par défaut ou bien d'un projet n'ayant pas de squelette spécifique
$projetsAutorises = array('defaut', 'ambrosia', 'arbres-tetards', 'florileges', 'sauvages');
if (in_array($this->projet, $projetsAutorises) || !$this->projetASquelette()) {
$projetsAutorises = $this->transformerEnTableau($this->config['projets']['autorises']);
if (in_array($this->projet, $projetsAutorises)) {
$urlWsNsTpl = $this->config['chemins']['baseURLServicesEfloreTpl'];
$urlWsNs = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, $this->NS_PROJET, self::WS_NOM);
$urlWsNsSansRef = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, '{referentiel}', self::WS_NOM);
144,14 → 142,23
$widget['donnees']['infos_espece'] = $this->array2js($nom, true);
}
}
if ($this->projet != 'defaut' || $this->projetASquelette()) {
if ($this->projet == 'florileges' || $this->projet == 'sauvages' || $this->projet == 'arbres-tetards') {
 
$projetsAListeDeNoms = $this->transformerEnTableau($this->config['projets']['liste_noms']);
if (in_array($this->projet, $projetsAListeDeNoms)) {
$projetsAListeDeNomsSciEtVerna = $this->transformerEnTableau($this->config['projets']['liste_noms_sci_et_verna']);
if (in_array($this->projet, $projetsAListeDeNomsSciEtVerna)) {
$widget['donnees']['taxons'] = $this->recupererListeNoms();
} else {
$widget['donnees']['taxons'] = $this->recupererListeNomsSci();
}
}
 
// Chargement de la liste des milieux issues du fichier .ini du projet
$projetsAListeDeMilieux = $this->transformerEnTableau($this->config['projets']['liste_milieux']);
if (in_array($this->projet, $projetsAListeDeMilieux)) {
$widget['donnees']['milieux'] = $this->parserMilieux();
}
 
return $widget;
}