Line 19... |
Line 19... |
19 |
// | |
|
19 |
// | |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
24 |
// CVS : $Id: fiche_synthese_xhtml.php,v 1.9 2005-06-30 15:25:07 jpm Exp $
|
24 |
// CVS : $Id: fiche_synthese_xhtml.php,v 1.10 2005-08-26 13:43:24 jp_milcent Exp $
|
25 |
/**
|
25 |
/**
|
26 |
* Vue affichant la fiche de synthèse d'un nom dans le projet donné
|
26 |
* Vue affichant la fiche de synthèse d'un nom dans le projet donné
|
27 |
*
|
27 |
*
|
28 |
* Permet de retourner le html correspondant à la fiche de synthèse d'un nom
|
28 |
* Permet de retourner le html correspondant à la fiche de synthèse d'un nom
|
29 |
* dans un projet donné.
|
29 |
* dans un projet donné.
|
Line 33... |
Line 33... |
33 |
//Auteur original :
|
33 |
//Auteur original :
|
34 |
*@author Frédéric LEGENS <flegens@free.fr>
|
34 |
*@author Frédéric LEGENS <flegens@free.fr>
|
35 |
//Autres auteurs :
|
35 |
//Autres auteurs :
|
36 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
36 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
37 |
*@copyright Tela-Botanica 2000-2004
|
37 |
*@copyright Tela-Botanica 2000-2004
|
38 |
*@version $Revision: 1.9 $ $Date: 2005-06-30 15:25:07 $
|
38 |
*@version $Revision: 1.10 $ $Date: 2005-08-26 13:43:24 $
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
*/
|
40 |
*/
|
Line 41... |
Line 41... |
41 |
|
41 |
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
Line 57... |
Line 57... |
57 |
$this->leBlock = $unBlock;
|
57 |
$this->leBlock = $unBlock;
|
58 |
}
|
58 |
}
|
Line 59... |
Line 59... |
59 |
|
59 |
|
60 |
function serialiser()
|
60 |
function serialiser()
|
- |
|
61 |
{
|
- |
|
62 |
$referentiel_nom = $this->leBlock->afficherPattern('FICHE_SYNTHESE>PROJET_VERSION','afficherNomProjetVersion');
|
61 |
{
|
63 |
$nt = $this->leBlock->afficherPattern('FICHE_SYNTHESE','afficherNomInfosNt');
|
62 |
// La page xhtml :
|
64 |
// La page xhtml :
|
63 |
$retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\n";
|
65 |
$retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\n";
|
64 |
$retour .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n";
|
66 |
$retour .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n";
|
Line 78... |
Line 80... |
78 |
$retour .= '<!-- BEGIN corps -->'."\n";
|
80 |
$retour .= '<!-- BEGIN corps -->'."\n";
|
79 |
$retour .= '<h1>'.'Synthèse d\'un nom latin'.'</h1>'."\n";
|
81 |
$retour .= '<h1>'.'Synthèse d\'un nom latin'.'</h1>'."\n";
|
80 |
$retour .= '<h2>'.'Informations sur le nom :'.'</h2>'."\n";
|
82 |
$retour .= '<h2>'.'Informations sur le nom :'.'</h2>'."\n";
|
81 |
$retour .= '<p>'."\n";
|
83 |
$retour .= '<p>'."\n";
|
82 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherNomInfos');
|
84 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherNomInfos');
|
- |
|
85 |
$retour .= 'Numéro taxonomique pour le référentiel "'.$referentiel_nom.'" : '.$nt;
|
83 |
$retour .= '</p>'."\n";
|
86 |
$retour .= '</p>'."\n";
|
84 |
$retour .= '<h2>'.'Projet courant: '.'</h2>';
|
87 |
$retour .= '<h2>'.'Référentiel courant: '.'</h2>';
|
85 |
$retour .= '<p>'."\n";
|
88 |
$retour .= '<p>'."\n";
|
86 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>PROJET_VERSION','afficherNomProjetVersion');
|
89 |
$retour .= $referentiel_nom;
|
87 |
$retour .= '</p>'."\n";
|
90 |
$retour .= '</p>'."\n";
|
Line 88... |
Line 91... |
88 |
|
91 |
|
89 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION_PROJETS','compterProjets');
|
92 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION_PROJETS','compterProjets');
|
90 |
if ($GLOBALS['nbre_projet'] == 1) {
|
93 |
if ($GLOBALS['nbre_projet'] == 1) {
|
91 |
$retour .= '<h2>'.'Présent uniquement dans le projet : '.'</h2>'."\n";
|
94 |
$retour .= '<h2>'.'Présent uniquement dans le référentiel : '.'</h2>'."\n";
|
92 |
$retour .= '<p>'."\n";
|
95 |
$retour .= '<p>'."\n";
|
93 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>PROJET_VERSION','afficherNomProjetVersion');
|
96 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>PROJET_VERSION','afficherNomProjetVersion');
|
94 |
$retour .= '</p>'."\n";
|
97 |
$retour .= '</p>'."\n";
|
95 |
} else if ($GLOBALS['nbre_projet'] > 1 AND $GLOBALS['nbre_projet'] < 6) {
|
98 |
} else if ($GLOBALS['nbre_projet'] > 1 AND $GLOBALS['nbre_projet'] < 6) {
|
96 |
$retour .= '<h2>'.'Présent dans les projets: '.'</h2>'."\n";
|
99 |
$retour .= '<h2>'.'Présent dans les référentiels: '.'</h2>'."\n";
|
97 |
$retour .= '<ul>'."\n";
|
100 |
$retour .= '<ul>'."\n";
|
98 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION_PROJETS','afficherListeProjets', null, TRUE);
|
101 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION_PROJETS','afficherListeProjets', null, TRUE);
|
99 |
$retour .= '</ul>'."\n";
|
102 |
$retour .= '</ul>'."\n";
|
100 |
} else {
|
103 |
} else {
|
101 |
$retour .= '<h2>'.'Présent dans les projets: '.'</h2>'."\n";
|
104 |
$retour .= '<h2>'.'Présent dans les référentiels: '.'</h2>'."\n";
|
102 |
$retour .= '<form id="eflore_form_projet" action="{FormUrlProjetChangement}" method="post">'."\n";
|
105 |
$retour .= '<form id="eflore_form_projet" action="{FormUrlProjetChangement}" method="post">'."\n";
|
103 |
$retour .= '<p>'."\n";
|
106 |
$retour .= '<p>'."\n";
|
104 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherChampNom');
|
107 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherChampNom');
|
105 |
$retour .= '<select id="nvp" name="nvp">'."\n";
|
108 |
$retour .= '<select id="nvp" name="nvp">'."\n";
|
Line 109... |
Line 112... |
109 |
$retour .= '</p>'."\n";
|
112 |
$retour .= '</p>'."\n";
|
110 |
$retour .= '</form>'."\n";
|
113 |
$retour .= '</form>'."\n";
|
111 |
}
|
114 |
}
|
Line 112... |
Line 115... |
112 |
|
115 |
|
113 |
// Gestion du nom correct
|
116 |
// Gestion du nom correct
|
114 |
$retour .= '<h2>'.'Nom correct dans le projet courant: '.'</h2>'."\n";
|
117 |
$retour .= '<h2>'.'Nom correct dans le référentiel courant: '.'</h2>'."\n";
|
115 |
$aso_param['statut_id'] = 3;
|
118 |
$aso_param['statut_id'] = 3;
|
Line 116... |
Line 119... |
116 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherNomCorrect', $aso_param, TRUE);
|
119 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherNomCorrect', $aso_param, TRUE);
|
117 |
|
120 |
|
Line 211... |
Line 214... |
211 |
$synonymie .= '</ol>'."\n";
|
214 |
$synonymie .= '</ol>'."\n";
|
212 |
$retour_syno_final .= $synonymie;
|
215 |
$retour_syno_final .= $synonymie;
|
213 |
}
|
216 |
}
|
214 |
if (empty($retour_syno_final)) {
|
217 |
if (empty($retour_syno_final)) {
|
215 |
$retour .= '<h2>'.'Synonymie : '.'</h2>'."\n";
|
218 |
$retour .= '<h2>'.'Synonymie : '.'</h2>'."\n";
|
216 |
$retour .= '<p>'.'Aucune synonymie pour ce nom dans ce projet.'.'</p>'."\n";
|
219 |
$retour .= '<p>'.'Aucune synonymie pour ce nom dans ce référentiel.'.'</p>'."\n";
|
217 |
} else {
|
220 |
} else {
|
218 |
$retour .= '<h2>'.'Synonymie : '.'</h2>'."\n";
|
221 |
$retour .= '<h2>'.'Synonymie : '.'</h2>'."\n";
|
219 |
$retour .= $retour_syno_final;
|
222 |
$retour .= $retour_syno_final;
|
220 |
}
|
223 |
}
|
Line 221... |
Line 224... |
221 |
|
224 |
|
222 |
// Gestion des noms vernaculaires
|
225 |
// Gestion des noms vernaculaires
|
223 |
$nom_verna_lignes = $this->leBlock->afficherPattern('FICHE_SYNTHESE>VERNACULAIRE_NOMS','afficherNomVernaculaire');
|
226 |
$nom_verna_lignes = $this->leBlock->afficherPattern('FICHE_SYNTHESE>VERNACULAIRE_NOMS','afficherNomVernaculaire');
|
224 |
if (empty($nom_verna_lignes)) {
|
227 |
if (empty($nom_verna_lignes)) {
|
225 |
$retour .= '<h2>'.'Noms vernaculaires :'.'</h2>'."\n";
|
228 |
$retour .= '<h2>'.'Noms vernaculaires :'.'</h2>'."\n";
|
226 |
$retour .= '<p>'.'Aucun nom vernaculaire pour ce taxon dans ce projet.'.'</p>'."\n";
|
229 |
$retour .= '<p>'.'Aucun nom vernaculaire pour ce taxon dans ce référentiel.'.'</p>'."\n";
|
227 |
} else {
|
230 |
} else {
|
228 |
$retour .= '<h2>'.'Noms vernaculaires : '.'</h2>'."\n";
|
231 |
$retour .= '<h2>'.'Noms vernaculaires : '.'</h2>'."\n";
|
229 |
$retour .= '<table id="tableau_nom_verna">'."\n";
|
232 |
$retour .= '<table id="tableau_nom_verna">'."\n";
|
230 |
$retour .= ' <thead>'."\n";
|
233 |
$retour .= ' <thead>'."\n";
|
Line 330... |
Line 333... |
330 |
|
333 |
|
331 |
function afficherNomInfos($donnees)
|
334 |
function afficherNomInfos($donnees)
|
332 |
{
|
335 |
{
|
333 |
$retour = '';
|
336 |
$retour = '';
|
334 |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
|
- |
|
335 |
$retour .= 'Numéro nomenclatural absolu : '.$donnees['en_id_nom']."\n";
|
337 |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
|
336 |
$retour .= '<br />';
|
338 |
$retour .= '<br />';
|
- |
|
339 |
$retour .= 'Nom sélectionné précédemment : '.construireNomLatin($donnees).'<br />'."\n";
|
337 |
$retour .= 'Nom sélectionné précédemment : '.construireNomLatin($donnees).'<br />'."\n";
|
340 |
$retour .= 'Numéro nomenclatural absolu : '.$donnees['en_id_nom'].'<br />'."\n";
|
338 |
return $retour;
|
341 |
return $retour;
|
- |
|
342 |
}
|
- |
|
343 |
function afficherNomInfosNt($donnees)
|
- |
|
344 |
{
|
- |
|
345 |
return $donnees['nt'];
|
Line 339... |
Line 346... |
339 |
}
|
346 |
}
|
340 |
|
347 |
|
341 |
function afficherNomProjetVersion($donnees)
|
348 |
function afficherNomProjetVersion($donnees)
|
342 |
{
|
349 |
{
|
Line 454... |
Line 461... |
454 |
|
461 |
|
455 |
|
462 |
|
456 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
463 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
464 |
*
|
- |
|
465 |
* $Log: not supported by cvs2svn $
|
- |
|
466 |
* Revision 1.9 2005/06/30 15:25:07 jpm
|
457 |
*
|
467 |
* Début des modifications pour ajout de l'arborescence de la classif.
|
458 |
* $Log: not supported by cvs2svn $
|
468 |
*
|
459 |
* Revision 1.8 2005/02/14 18:11:43 jpm
|
469 |
* Revision 1.8 2005/02/14 18:11:43 jpm
|
460 |
* Amélioration.
|
470 |
* Amélioration.
|
461 |
*
|
471 |
*
|