/branches/v2.0-betulales/bibliotheque/dao/ReferentielDao.php |
---|
122,7 → 122,7 |
private function construireUrlExport($parametres) { |
$url = $this->url_jrest.self::SERVICE.'/Export'; |
$params_a_passer = array('ref', 'version', 'champs', 'filtres'); |
$params_a_passer = array('ref', 'version', 'champs', 'filtres', 'encodage'); |
foreach ($params_a_passer as $param_cle) { |
if (isset($parametres[$param_cle]) && $parametres[$param_cle] != '') { |
$valeur = urlencode(trim($parametres[$param_cle])); |
/branches/v2.0-betulales/bibliotheque/dao/RechercheDao.php |
---|
32,8 → 32,10 |
* Recherche un référentiel en fonction de paramètres |
* @return array un tableau contenant des objets d'informations sur les taxons |
*/ |
public function chercher($type, $parametres) { |
public function chercher($type, $parametres, $limit = '150') { |
$this->ordre['nom_sci'] = 'ASC'; |
$this->limite_nbre = $limit; |
$url = $this->construireUrlRecherche($type, $parametres); |
$json = $this->envoyerRequeteConsultation($url); |
$donnees = json_decode($json, true); |