Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 234 → Rev 235

/trunk/bibliotheque/dao/RechercheDao.php
34,9 → 34,9
*/
public function chercher($type, $parametres) {
$this->ordre['nom_sci'] = 'ASC';
$url = $this->construireUrlRecherche($type, $parametres);
$url = $this->construireUrlRecherche($type, $parametres);
$json = $this->envoyerRequeteConsultation($url);
$donnees = json_decode($json, true);
$donnees = json_decode($json, true);
return $donnees;
}
43,7 → 43,7
private function construireUrlRecherche($type, $parametres, $limitation = true) {
$url = $this->url_jrest.self::SERVICE.'/'.$type;
$params_a_passer = array('ref', 'mots', 'sg', 'gen', 'sp', 'ssp', 'au', 'an', 'nn', 'bib', 'nr', 'tax');
$params_a_passer = array('ref', 'mots', 'sg', 'gen', 'sp', 'ssp', 'au', 'an', 'nn', 'bib', 'nr', 'tax', 'pre', 'taxref');
foreach ($params_a_passer as $param_cle) {
if (isset($parametres[$param_cle]) && $parametres[$param_cle] != '') {
$valeur = urlencode(trim($parametres[$param_cle]));