/trunk/bibliotheque/dao/RechercheDao.php |
---|
42,7 → 42,7 |
private function construireUrlRecherche($type, $parametres, $limitation = true) { |
$url = $this->url_jrest.self::SERVICE.'/'.$type; |
$params_a_passer = array('mots', 'sci', 'bot', 'zg', 'p', 'pr', 'str-d', 'veg'); |
$params_a_passer = array('mots', 'sci', 'bot', 'zg', 'p', 'pr', 'str-d', 'veg', 'projets'); |
foreach ($params_a_passer as $param_cle) { |
if (isset($parametres[$param_cle]) && $parametres[$param_cle] != '') { |
$valeur = urlencode(trim($parametres[$param_cle])); |
/trunk/bibliotheque/dao/StructureDao.php |
---|
38,11 → 38,19 |
*/ |
public function getStructureParZoneGeo($type_recherche) { |
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/ParZoneGeo/$type_recherche"; |
$url = $this->limiterParProjets($url); |
$json = $this->envoyerRequeteConsultation($url); |
$donnees = json_decode($json, true); |
return $donnees; |
} |
private function limiterParProjets($url) { |
if (Config::get('projets') != '') { |
$url .= '/'.Config::get('projets'); |
} |
return $url; |
} |
/** |
* Retourne l'ensemble des informations du personnel d'une structure. |
* |