Line 68... |
Line 68... |
68 |
public function executerActionParDefaut() {
|
68 |
public function executerActionParDefaut() {
|
69 |
$this->executerFiche();
|
69 |
$this->executerFiche();
|
70 |
}
|
70 |
}
|
Line 71... |
Line 71... |
71 |
|
71 |
|
- |
|
72 |
public function executerFiche(){
|
72 |
public function executerFiche(){
|
73 |
|
Line 73... |
Line 74... |
73 |
$squelette = 'fiche_'.$this->onglet;
|
74 |
$squelette = 'fiche_'.$this->onglet;
|
74 |
|
75 |
|
75 |
//Gestion du niveau
|
76 |
//Gestion du niveau
|
76 |
$niveau = isset($_GET['niveau']) ? $_GET['niveau'] : 2;
|
77 |
$niveau = isset($_GET['niveau']) ? $_GET['niveau'] : 2;
|
77 |
if ($this->onglet == 'synthese' && $niveau != null) {
|
78 |
if ($this->onglet == 'synthese' && $niveau != null) {
|
Line -... |
Line 79... |
- |
|
79 |
$squelette .= '_niveau'.$niveau;
|
78 |
$squelette .= '_niveau'.$niveau;
|
80 |
}
|
- |
|
81 |
|
- |
|
82 |
// Récupération parametres et données
|
- |
|
83 |
$donnees = $this->parametres;
|
- |
|
84 |
$donnees = array_merge($this->obtenirDonnees(), $donnees);
|
- |
|
85 |
$donnees['i18n'] = I18n::get('Fiche');
|
- |
|
86 |
$verna = (isset($donnees['ethnobotanique']['nomsVerna'])) ? $donnees['ethnobotanique']['nomsVerna'][0]['nom_vernaculaire'] : "";
|
- |
|
87 |
|
- |
|
88 |
// titre, description et tag de la page
|
- |
|
89 |
$this->setSortie('titre', $this->nom_retenu->get('nom_sci'));
|
- |
|
90 |
$this->setSortie('description', "Fiche descriptive de ".$this->nom_retenu->get('nom_sci')." ".
|
- |
|
91 |
$verna." ".$donnees['description']['titre']." ".implode(" ", $donnees['description']['description']));
|
- |
|
92 |
$this->setSortie('tags', $this->nom_retenu->get('nom_sci').",".$verna.
|
79 |
}
|
93 |
",botanique,plante,description,ecologie,reconnaitre,fiche espece");
|
80 |
|
94 |
|
- |
|
95 |
// titre de la fiche
|
- |
|
96 |
$donnees['nom_retenu'] = $this->nom_retenu->get('nom_sci_html').' '.$this->nom_retenu->get('auteur');
|
- |
|
97 |
$donnees['famille'] = $this->nom_retenu->getTaxonSupRang('180');
|
81 |
$donnees = $this->parametres;
|
98 |
$donnees['nom_vernaculaire'] = $verna;
|
- |
|
99 |
|
- |
|
100 |
// moteur de recherche
|
82 |
$donnees['nom_retenu'] = $this->nom_retenu->get('nom_sci_html').' '.$this->nom_retenu->get('auteur');
|
101 |
$this->executerAction('Recherche', 'executerAccueil', $this->parametres);
|
83 |
$donnees['famille'] = $this->nom_retenu->getTaxonSupRang('180');
|
102 |
|
Line 84... |
Line 103... |
84 |
$this->executerAction('Recherche', 'executerAccueil', $this->parametres);
|
103 |
// page synthese
|
85 |
$blocs_niveaux = $this->conteneur->getParametreTableau('blocs_fiche_defaut');
|
104 |
$blocs_niveaux = $this->conteneur->getParametreTableau('blocs_fiche_defaut');
|
86 |
$donnees['blocs'] = '"'.str_replace('|', '","', $blocs_niveaux[Registre::get('parametres.niveau')]).'"';
|
105 |
$donnees['blocs'] = '"'.str_replace('|', '","', $blocs_niveaux[Registre::get('parametres.niveau')]).'"';
|
87 |
|
106 |
|
88 |
$donnees = array_merge($this->obtenirDonnees(), $donnees);
|
- |
|
Line 89... |
Line 107... |
89 |
$donnees['onglet'] = $this->onglet;
|
107 |
// onglet
|
90 |
$donnees['contenu_onglet'] = $this->getVue($squelette, $donnees);
|
108 |
$donnees['onglet'] = $this->onglet;
|
91 |
$donnees['base_url_onglets'] = Config::get('base_url_application_onglets');
|
109 |
$donnees['contenu_onglet'] = $this->getVue($squelette, $donnees);
|
Line 103... |
Line 121... |
103 |
|
121 |
|
104 |
public function ajouterPiedDePage() {
|
122 |
public function ajouterPiedDePage() {
|
105 |
$description = new Description($this->conteneur);
|
123 |
$description = new Description($this->conteneur);
|
106 |
$taxons = new Taxons($this->conteneur);
|
124 |
$taxons = new Taxons($this->conteneur);
|
107 |
$referentiel = $this->conteneur->getParametre('referentiel');
|
125 |
$referentiel = $this->conteneur->getParametre('referentiel');
|
108 |
$donnees = array('wikipedia' => $description->getUrlWikipedia(),
|
126 |
$donnees = array('wikipedia' => $description->getWikipedia(),
|
109 |
'export_pdf' => $this->ajouterLienModuleExport(),
|
127 |
'export_pdf' => $this->ajouterLienModuleExport(),
|
110 |
'permalien_num_nom' => $taxons->getUrlPermalienNumNom($referentiel, 1, $this->conteneur->getNomCourant()->getNns()),
|
128 |
'permalien_num_nom' => $taxons->getUrlPermalienNumNom($referentiel, 1, $this->conteneur->getNomCourant()->getNns()),
|
111 |
'permalien_taxon' => $taxons->getUrlPermalienTaxon($referentiel, 1, $this->conteneur->getNomCourant()->getNt()),
|
129 |
'permalien_taxon' => $taxons->getUrlPermalienTaxon($referentiel, 1, $this->conteneur->getNomCourant()->getNt()),
|
112 |
'nn' => $this->conteneur->getNomCourant()->getNns(),
|
130 |
'nn' => $this->conteneur->getNomCourant()->getNns(),
|