Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 351 Rev 408
Line 17... Line 17...
17
	private $apiBiblioBota;
17
	private $apiBiblioBota;
18
	private $conteneur;
18
	private $conteneur;
19
	private $nomCourant;
19
	private $nomCourant;
20
	private $meta;
20
	private $meta;
21
	private $appUrls;
21
	private $appUrls;
-
 
22
	private $wikini;
Line 22... Line 23...
22
	
23
	
23
	public function __construct(Conteneur $conteneur) {
24
	public function __construct(Conteneur $conteneur) {
24
		$this->conteneur = $conteneur;
25
		$this->conteneur = $conteneur;
-
 
26
		$this->nomCourant = $this->conteneur->getNomCourant();
25
		$this->nomCourant = $this->conteneur->getNomCourant();
27
		$this->wikini = $this->conteneur->getApiWikini();
26
		$this->meta = $this->conteneur->getApiMetaDonnees();
28
		$this->meta = $this->conteneur->getApiMetaDonnees();
27
		$this->appUrls = $this->conteneur->getAppUrls();
29
		$this->appUrls = $this->conteneur->getAppUrls();
Line 28... Line 30...
28
	}
30
	}
Line 43... Line 45...
43
		//Obtention des données issues de biblio_bota
45
		//Obtention des données issues de biblio_bota
44
		$this->apiBiblioBota = $this->conteneur->getApiBiblioBota();
46
		$this->apiBiblioBota = $this->conteneur->getApiBiblioBota();
45
		$this->apiBiblioBota->setProjet('bibliobota');
47
		$this->apiBiblioBota->setProjet('bibliobota');
46
		$references = $this->apiBiblioBota->getReferences($this->conteneur->getParametre('nom'));
48
		$references = $this->apiBiblioBota->getReferences($this->conteneur->getParametre('nom'));
47
		$donnees['bibliobota']['references'] = $references['resultats'];
49
		$donnees['bibliobota']['references'] = $references['resultats'];
-
 
50
		$donnees['wikini'] = $this->getWikini();
48
		return $donnees;
51
		return $donnees;
49
	}
52
	}
Line 50... Line 53...
50
	
53
	
51
	public function getBloc() {
54
	public function getBloc() {
Line 68... Line 71...
68
		}
71
		}
Line 69... Line 72...
69
		
72
		
70
		return $flores_texte;
73
		return $flores_texte;
Line -... Line 74...
-
 
74
	}
-
 
75
	
-
 
76
	private function getWikini() {
-
 
77
		$wikini = array();
-
 
78
		$wikini['titre'] = 'Wikini';
-
 
79
		$referentiel = $this->conteneur->getParametre('referentiel');
-
 
80
		$num_tax = $this->nomCourant->getNomSelectionne()->get('num_taxonomique');
-
 
81
		$page_wiki = $this->wikini->getPageWikiPourRefEtNumTax($referentiel, $num_tax);
-
 
82
		$wikini['biblio'] = $this->wikini->getTexteFormate($page_wiki, 'biblio');
-
 
83
		return $wikini;
71
	}
84
	}
72
	
85
	
Line 73... Line 86...
73
	//TODO: faire une ontologie mais pas de tache prévue dans ce sprint
86
	//TODO: faire une ontologie mais pas de tache prévue dans ce sprint
74
	private function getCorrespondancesBiblio() {
87
	private function getCorrespondancesBiblio() {