| Line 460... |
Line 460... |
| 460 |
$resultat_json = array();
|
460 |
$resultat_json = array();
|
| 461 |
foreach ($resultat as $id => &$tab) {
|
461 |
foreach ($resultat as $id => &$tab) {
|
| 462 |
$nnv = $tab['num_nom_vernaculaire'];
|
462 |
$nnv = $tab['num_nom_vernaculaire'];
|
| 463 |
$resultat_json[$id]['id'] = $tab['id'];
|
463 |
$resultat_json[$id]['id'] = $tab['id'];
|
| 464 |
$resultat_json[$id]['nom_vernaculaire'] = $tab['nom_vernaculaire'];
|
464 |
$resultat_json[$id]['nom_vernaculaire'] = $tab['nom_vernaculaire'];
|
| 465 |
$resultat_json[$id]['langue.code'] = $resultat_json[$nnv]['code_langue'] = $tab['code_langue'];
|
465 |
$resultat_json[$id]['langue.code'] = $resultat_json[$id]['code_langue'] = $tab['code_langue'];
|
| 466 |
$resultat_json[$id]['taxon.code'] = 'bdtfx.nt:'.$tab['num_taxon'];
|
466 |
$resultat_json[$id]['taxon.code'] = 'bdtfx.nt:'.$tab['num_taxon'];
|
| 467 |
if ($this->retour_format == 'max') {
|
467 |
if ($this->retour_format == 'max') {
|
| 468 |
$this->taxons[] = $tab['num_taxon']; // utilisé pour chercher les noms latins plus bas
|
468 |
$this->taxons[] = $tab['num_taxon']; // utilisé pour chercher les noms latins plus bas
|
| 469 |
if($this->champs_supp) {
|
469 |
if($this->champs_supp) {
|
| 470 |
//$resultat_json[$nnv] = $this->ajouterChampsOntologieLigneResultat($tab);
|
470 |
//$resultat_json[$nnv] = $this->ajouterChampsOntologieLigneResultat($tab);
|
| Line 533... |
Line 533... |
| 533 |
foreach($champs_sup as $cle) {
|
533 |
foreach($champs_sup as $cle) {
|
| 534 |
$champs_supplementaires = self::$champ_infos[$cle];
|
534 |
$champs_supplementaires = self::$champ_infos[$cle];
|
| 535 |
// extrait, depuis un élément de $champ_infos:
|
535 |
// extrait, depuis un élément de $champ_infos:
|
| 536 |
// $service, $ressource, $projet, $nom, $intitule, $bdd_champ
|
536 |
// $service, $ressource, $projet, $nom, $intitule, $bdd_champ
|
| 537 |
extract($champs_supplementaires);
|
537 |
extract($champs_supplementaires);
|
| 538 |
|
- |
|
| - |
|
538 |
//print_r($bdd_champ);print_r($resultats);exit;
|
| 539 |
foreach ($resultats as &$tab) {
|
539 |
foreach ($resultats as &$tab) {
|
| 540 |
$valeur_recherche = $tab[$bdd_champ];
|
540 |
$valeur_recherche = $tab[$bdd_champ];
|
| 541 |
if(!trim($valeur_recherche)) continue;
|
541 |
if(!trim($valeur_recherche)) continue;
|
| Line 542... |
Line 542... |
| 542 |
|
542 |
|