25,6 → 25,7 |
const WS_SAISIE = "CelWidgetSaisie"; |
const WS_NOM = "noms"; |
const NS_PROJET = "bdtfx"; |
const NS_PROJET_VERSION = "1.01"; |
const EFLORE_API_VERSION = "0.1"; |
|
private $projet = null; |
82,10 → 83,13 |
$widget['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], ''); |
$widget['donnees']['url_ws_saisie'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], self::WS_SAISIE); |
|
|
if ($this->projet == 'defaut') { |
$urlWsNsTpl = $this->config['chemins']['baseURLServicesEfloreTpl']; |
$urlWsNs = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, self::NS_PROJET, self::WS_NOM); |
$widget['donnees']['url_ws_autocompletion_ns'] = $urlWsNs; |
$widget['donnees']['ns_referentiel'] = self::NS_PROJET.':'.self::NS_PROJET_VERSION; |
$widget['donnees']['ns_version'] = self::NS_PROJET_VERSION; |
} else { |
$widget['donnees']['taxons'] = $this->recupererListeTaxon(); |
$widget['donnees']['milieux'] = $this->parserMilieux(); |