117,7 → 117,7 |
$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 |
if ($this->projet == 'defaut' || $this->projet == 'florileges' || !$this->projetASquelette()) { |
if ($this->projet == 'defaut' || $this->projet == 'florileges' || $this->projet == 'sauvages' || !$this->projetASquelette()) { |
$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); |
273,7 → 273,7 |
$infos = json_decode(file_get_contents($url_service_infos)); |
// trop de champs injectés dans les infos espèces peut |
// faire planter javascript |
$champs_a_garder = array('id', 'nom_sci','nom_sci_complet', |
$champs_a_garder = array('id', 'nom_sci','nom_sci_complet', |
'famille','nom_retenu.id', 'nom_retenu.libelle', 'num_taxonomique'); |
$resultat = array(); |
if (isset($infos) && !empty($infos)) { |
281,7 → 281,7 |
if(isset($infos['nom_sci']) && $infos['nom_sci'] != '') { |
$resultat = array_intersect_key($infos, array_flip($champs_a_garder)); |
$resultat['retenu'] = ($infos['id'] == $infos['nom_retenu.id']) ? "true" : "false"; |
} |
} |
} |
return $resultat; |
} |