56,6 → 56,7 |
$widget['donnees']['ficheTaxonUrlTpl'] = $this->config['url']['ficheTaxonUrlTpl']; |
|
$widget['donnees']['referentielsSciDispos'] = $this->traiterReferentielSciDispos(); |
$widget['donnees']['referentielsConsultationUrls'] = $this->traiterUrlsConsultationReferentiels($widget['donnees']['referentielsSciDispos']); |
$widget['donnees']['referentielsVernasDispos'] = $this->traiterReferentielsSciVernasDispos(); |
$ref_sci_defaut = array_shift(array_keys($widget['donnees']['referentielsSciDispos'])); |
$ref_verna_defaut = $widget['donnees']['referentielsVernasDispos'][$ref_sci_defaut]; |
87,5 → 88,18 |
} |
return $tab_refs_verna; |
} |
|
private function traiterUrlsConsultationReferentiels($referentiels) { |
$urls = array(); |
foreach($referentiels as $code_ref => $nom) { |
$config_url_ref = 'efloreConsultation'.ucwords($code_ref).'Url'; |
if(isset($this->config['url'][$config_url_ref])) { |
$urls[$code_ref] = $this->config['url'][$config_url_ref]; |
} else { |
$urls[$code_ref] = $this->config['url']['efloreConsultationUrl']; |
} |
} |
return $urls; |
} |
} |
?> |