Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 740 Rev 759
Line 732... Line 732...
732
		} else {
732
		} else {
733
			$code = $this->transformerChampEnCode($champ);
733
			$code = $this->transformerChampEnCode($champ);
734
			if (preg_match('/^([^_-]+)(?:_|-)([^_-]+)$/', $code, $match)) {
734
			if (preg_match('/^([^_-]+)(?:_|-)([^_-]+)$/', $code, $match)) {
735
				$code = $match[1].ucfirst($match[2]);
735
				$code = $match[1].ucfirst($match[2]);
736
			}
736
			}
737
			$url = Config::get('url_ontologie').$code.':'.$valeur.'/nom';
737
			$res = $this->getBdd()->recuperer(sprintf('SELECT * FROM %s WHERE id IN (SELECT id FROM %s WHERE code = "%s" AND classe_id = (SELECT id FROM %s WHERE code = "%s")) LIMIT 0, 100 -- %s:%s', 'bdnt_ontologies_v4_30', 'bdnt_ontologies_v4_30', $valeur, 'bdnt_ontologies_v4_30', $code, __FILE__,  __LINE__));
738
			$res = $this->consulterHref($url); //dans commun.php
-
 
739
			$nom_code = $valeur;
738
			$nom_code = $valeur;
740
			if (is_object($res)) {
739
			if (is_object($res)) {
741
				$nom_code = $res->nom;
740
				$nom_code = $res->nom;
742
			}
741
			}
743
			$this->mettreEnCacheOntologie($champ, $valeur, $nom_code);
742
			$this->mettreEnCacheOntologie($champ, $valeur, $nom_code);