| Line 37... |
Line 37... |
| 37 |
} else {
|
37 |
} else {
|
| 38 |
// Récupération des données
|
38 |
// Récupération des données
|
| 39 |
$donnees['id'] = $_GET['id'];
|
39 |
$donnees['id'] = $_GET['id'];
|
| 40 |
$donnees['info'] = $this->personneDao->getPersonne($donnees['id']);
|
40 |
$donnees['info'] = $this->personneDao->getPersonne($donnees['id']);
|
| 41 |
$donnees['publications'] = $this->personneDao->getPersonneAPublication($donnees['id']);
|
41 |
$donnees['publications'] = $this->personneDao->getPersonneAPublication($donnees['id']);
|
| - |
|
42 |
$donnees['collections'] = $this->personneDao->getPersonneACollection($donnees['id']);
|
| Line 42... |
Line 43... |
| 42 |
|
43 |
|
| 43 |
// Traitement des données
|
44 |
// Traitement des données
|
| 44 |
$this->traiterDonneesPersonne($donnees['info']);
|
45 |
$this->traiterDonneesPersonne($donnees['info']);
|
| - |
|
46 |
$this->traiterDonneesPersonneAPublication($donnees['publications']);
|
| 45 |
$this->traiterDonneesPersonneAPublication($donnees['publications']);
|
47 |
$this->traiterDonneesPersonneACollection($donnees['collections']);
|
| 46 |
$this->postraiterDonnees($donnees);
|
48 |
$this->postraiterDonnees($donnees);
|
| Line 47... |
Line 49... |
| 47 |
$donnees['metadonnees'] = $this->traiterMetaDonnees($donnees['info']);
|
49 |
$donnees['metadonnees'] = $this->traiterMetaDonnees($donnees['info']);
|
| 48 |
|
50 |
|
| Line 107... |
Line 109... |
| 107 |
Ontologie::chargerListe(1065);
|
109 |
Ontologie::chargerListe(1065);
|
| 108 |
foreach ($publications as &$publication) {
|
110 |
foreach ($publications as &$publication) {
|
| 109 |
$publication['_role_'] = $this->construireTxtListeOntologie($publication['cpuap_id_role']);
|
111 |
$publication['_role_'] = $this->construireTxtListeOntologie($publication['cpuap_id_role']);
|
| 110 |
}
|
112 |
}
|
| 111 |
}
|
113 |
}
|
| - |
|
114 |
|
| - |
|
115 |
private function traiterDonneesPersonneACollection(&$collections) {
|
| - |
|
116 |
// liste 27 : Liste des relations entre une collection et une personne
|
| - |
|
117 |
Ontologie::chargerListe(1030);
|
| - |
|
118 |
|
| - |
|
119 |
foreach ($collections as &$collection) {
|
| - |
|
120 |
$collection['_role_'] = $this->construireTxtListeOntologie($collection['ccap_id_role']);
|
| - |
|
121 |
$collection['_url_'] = $this->obtenirUrlFicheCollection($collection['ccap_id_collection']);
|
| - |
|
122 |
}
|
| - |
|
123 |
}
|
| 112 |
}
|
124 |
}
|
| 113 |
|
125 |
|