Subversion Repositories Applications.referentiel

Rev

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

Rev 238 Rev 242
Line 137... Line 137...
137
		
137
		
138
		// requête spéciale de recherche de tous les synonymes et du nom retenu d'un paramétre
138
		// requête spéciale de recherche de tous les synonymes et du nom retenu d'un paramétre
139
		if (isset($parametres['tax']) && ($parametres['tax'] == 1)) {
139
		if (isset($parametres['tax']) && ($parametres['tax'] == 1)) {
140
			$resultat = $this->chercherSynonymes($rechercheDao, $parametres);
140
			$resultat = $this->chercherSynonymes($rechercheDao, $parametres);
-
 
141
		} else {
-
 
142
			$this->chargerTableauManuel('presence');
141
		} else {
143
			$donnees['valeur_presence'] = $this->tableau_manuel['presence'];
142
			$donnees['referentiel'] = $this->referentiel;
144
			$donnees['referentiel'] = $this->referentiel;
143
			$donnees['fragmenteur'] = $this->gererFragmenteur($rechercheDao, $parametres);
145
			$donnees['fragmenteur'] = $this->gererFragmenteur($rechercheDao, $parametres);
144
			$donnees['resultats'] = $rechercheDao->chercher('ParDefaut', $parametres);
146
			$donnees['resultats'] = $rechercheDao->chercher('ParDefaut', $parametres);
145
			$resultat = $this->getVue('resultat_recherche', $donnees);
147
			$resultat = $this->getVue('resultat_recherche', $donnees);
Line 207... Line 209...
207
				}
209
				}
208
			}
210
			}
209
		}		
211
		}		
210
		return $parametres;
212
		return $parametres;
211
	}
213
	}
-
 
214
	
-
 
215
	// charger tableau de $this->manuel
-
 
216
	private function chargerTableauManuel($titreTableau) {
-
 
217
		$champs = explode(',', $this->manuel[$titreTableau]);
-
 
218
		foreach ($champs as $champ) {
-
 
219
			list($champ_nom, $type) = explode('=', trim($champ));
-
 
220
			$this->tableau_manuel[$titreTableau][$champ_nom] = $type;
-
 
221
		}
-
 
222
	}
212
}
223
}
213
224