160,7 → 160,7 |
} |
$tableau['chpSupp'] = $tab; |
$langue_projet_url = ( isset ( $this->parametres['langue'] ) && $this->parametres['langue'] !== 'fr' ) ? '_' . $this->parametres['langue'] : ''; |
$tableau['chemin_fichiers'] = sprintf( $this->config['chemins']['baseURLAbsoluDyn'], $this->config['manager']['dossierTmp'] . $tableau['projet'] . $langue_projet_url . '/' ); |
$tableau['chemin_fichiers'] = sprintf( $this->config['chemins']['baseURLAbsoluDyn'], $this->config['manager']['imgProjet'] . $tableau['projet'] . $langue_projet_url . '/' ); |
return $tableau; |
} |
|
174,7 → 174,6 |
|
foreach ( $retour[$projet]['champs-supp'] as $key => $chsup ) { |
|
|
$retour[$projet]['champs-supp'][$key]['name'] = $this->clean_string( $chsup['name'] ); |
$retour[$projet]['champs-supp'][$key]['description'] = $this->clean_string( $chsup['description']); |
$retour[$projet]['champs-supp'][$key]['unit'] = $this->clean_string( $chsup['unit'] ); |
212,8 → 211,6 |
return $clean_string; |
} |
|
|
|
// remplace certains parametres définis en bd par les parametres définis dans l'url |
private function traiterParametres($estProjetDefini, $tableau) { |
$criteres = array('tag-obs', 'tag-img', 'projet', 'titre', 'logo'); |
228,7 → 225,6 |
return $tableau; |
} |
|
|
private function rechercherInfosEspeces( $infos_projets ) { //print_r($infos_projets);exit; |
$retour = array(); |
$referentiel = $infos_projets['referentiel']; |
271,8 → 267,7 |
$infos = json_decode( file_get_contents( $url_service_infos ) ); |
// trop de champs injectés dans les infos espèces peuvent |
// faire planter javascript |
$champs_a_garder = array( 'id', 'nom_sci','nom_sci_complet', 'nom_complet', |
'famille','nom_retenu.id', 'nom_retenu_complet', 'num_taxonomique' ); |
$champs_a_garder = array( 'id', 'nom_sci','nom_sci_complet', 'nom_complet', 'famille','nom_retenu.id', 'nom_retenu_complet', 'num_taxonomique' ); |
$resultat = array(); |
$retour = array(); |
if ( isset( $infos ) && !empty( $infos ) ) { |