57,7 → 57,7 |
|
$widget['donnees']['referentielsSciDispos'] = $this->traiterReferentielSciDispos(); |
$widget['donnees']['referentielsVernasDispos'] = $this->traiterReferentielsSciVernasDispos(); |
$ref_sci_defaut = $widget['donnees']['referentielsSciDispos'][0]; |
$ref_sci_defaut = array_shift(array_keys($widget['donnees']['referentielsSciDispos'])); |
$ref_verna_defaut = $widget['donnees']['referentielsVernasDispos'][$ref_sci_defaut]; |
$widget['donnees']['efloreRechercheSciUrlDefaut'] = str_replace('{referentiel}', $ref_sci_defaut, $this->config['url']['efloreRechercheSciUrlTpl']); |
$widget['donnees']['efloreRechercheVernaUrlDefaut'] = str_replace('{referentiel}',$ref_verna_defaut, $this->config['url']['efloreRechercheVernaUrlTpl']); |
67,10 → 67,15 |
} |
|
private function traiterReferentielSciDispos() { |
$refs_sci_fmt = array(); |
$refs_sci = $this->config['referentiel']['referentielsSciDispos']; |
$refs_sci = explode(',', $refs_sci); |
return $refs_sci; |
foreach($refs_sci as $ref) { |
$ref_code_desc = explode('#', $ref); |
$refs_sci_fmt[$ref_code_desc[0]] = $ref_code_desc[1]; |
} |
return $refs_sci_fmt; |
} |
|
private function traiterReferentielsSciVernasDispos() { |
$refs_verna = $this->config['referentiel']['referentielsVernaDispos']; |