Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 321 Rev 351
Line 12... Line 12...
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class Bibliographie extends aControleur {
15
class Bibliographie extends aControleur {
Line -... Line 16...
-
 
16
		
-
 
17
	private $apiBiblioBota;
-
 
18
	private $conteneur;
-
 
19
	private $nomCourant;
-
 
20
	private $meta;
-
 
21
	private $appUrls;
16
		
22
	
17
	public function __construct(Conteneur $conteneur) {
23
	public function __construct(Conteneur $conteneur) {
18
		$this->conteneur = $conteneur;
24
		$this->conteneur = $conteneur;
19
		$this->nomCourant = $this->conteneur->getNomCourant();
25
		$this->nomCourant = $this->conteneur->getNomCourant();
20
		$this->meta = $this->conteneur->getApiMetaDonnees();
26
		$this->meta = $this->conteneur->getApiMetaDonnees();
21
		$this->appUrls = $this->conteneur->getAppUrls();
27
		$this->appUrls = $this->conteneur->getAppUrls();
Line 22... Line 28...
22
	}
28
	}
23
	
-
 
24
	public function obtenirDonnees() {
29
	
-
 
30
	public function obtenirDonnees() {
25
		
31
		$flores = $this->nomCourant->getNomRetenu()->get('flores');
Line 26... Line 32...
26
		$flores = $this->nomCourant->getNomRetenu()->get('flores');
32
		
27
		$flores = explode(',', $flores);
-
 
-
 
33
		$flores = explode(',', $flores);
28
 
34
 
29
		$donnees['flores']['liste_flores'] = $this->remplacerCorrespondancesFlores($flores);
35
		$donnees['flores']['liste_flores'] = $this->remplacerCorrespondancesFlores($flores);
30
		$this->meta->setProjet('bdtfx');
36
		
31
		$meta = $this->meta->getMetaDonnees();
37
		$meta = $this->meta->getMetaDonnees();
-
 
38
		$titreMeta = $meta[0]['titre'];
Line -... Line 39...
-
 
39
		$donnees['flores']['meta']['titre'] = $titreMeta;
-
 
40
		$donnees['flores']['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('bdtfx');
-
 
41
		$this->meta->setProjet('bdtfx');
-
 
42
		
-
 
43
		//Obtention des données issues de biblio_bota
32
		$titreMeta = $meta[0]['titre'];
44
		$this->apiBiblioBota = $this->conteneur->getApiBiblioBota();
33
		$donnees['flores']['meta']['titre'] = $titreMeta;
45
		$this->apiBiblioBota->setProjet('bibliobota');
Line 34... Line 46...
34
		$donnees['flores']['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('bdtfx');
46
		$references = $this->apiBiblioBota->getReferences($this->conteneur->getParametre('nom'));
35
		
47
		$donnees['bibliobota']['references'] = $references['resultats'];