Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 618 | Rev 725 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 618 Rev 712
Line 222... Line 222...
222
	
222
	
223
	public function recupererOntologies($valeur, $champs){
223
	public function recupererOntologies($valeur, $champs){
224
		$chps_sans = preg_replace("/_min|_max/", '', $champs);
224
		$chps_sans = preg_replace("/_min|_max/", '', $champs);
225
		$url = Config::get('url_service_base').Config::get('nom_projet').
225
		$url = Config::get('url_service_base').Config::get('nom_projet').
-
 
226
			'/ontologies/'.$this->champs_ontologiques[$chps_sans].':'.urlencode(urlencode($valeur));
226
			'/ontologies/'.$this->champs_ontologiques[$chps_sans].':'.urlencode(urlencode($valeur));
227
		try {
227
		$val = $this->consulterHref($url);
228
			$val = $this->consulterHref($url);
228
		$this->resultat_json[$champs.'.libelle'] = $val->nom;
229
			$this->resultat_json[$champs.'.libelle'] = $val->nom;
229
		$this->resultat_json[$champs.'.code'] = $valeur;
230
			$this->resultat_json[$champs.'.code'] = $valeur;
-
 
231
			$this->resultat_json[$champs.'.href'] = $url;
-
 
232
		} catch (Exception $e) {
-
 
233
			$this->resultat_json[$champs.'.libelle'] = '';
-
 
234
			$this->resultat_json[$champs.'.code'] = '';
-
 
235
			$this->resultat_json[$champs.'.href'] = '';
230
		$this->resultat_json[$champs.'.href'] = $url;
236
		}
Line 231... Line 237...
231
	}
237
	}