Subversion Repositories eFlore/Archives.eflore-consultation-v1

Compare Revisions

Ignore whitespace Rev 1 → Rev 2

/trunk/bibliotheque/eflore_statistique.fonct.php
New file
0,0 → 1,91
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Integrateur eFlore. |
// | |
// | Foobar is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | Foobar is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore_statistique.fonct.php,v 1.1 2005-05-24 15:57:48 jpm Exp $
/**
* Fonction pour réaliser les statistiques.
*
*@package eFlore
*@subpackage Ancien
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-05-24 15:57:48 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | LISTE des FONCTION |
// +------------------------------------------------------------------------------------------------------+
/**
* La fonction efloreDonneeStat() stocke dans la table EFLORE_STAT_DONNEE les informations sur une recherche effectuée
*dans l'index des plantes du site de Tela Botanica.
*
*Cette fonction ne retourne rien dans la page mais insère des donnés dans une table MySql.
*
* @global integer numtaxo contient le numéro taxonomique du taxon.
* @param string $baseURL chaîne contenant l'URL du codument eflore
* @return null
*/
function efloreDonneeStat($tab_donnee)
{
$date_jour = strftime("%d-%m-%Y");
$heure_jour = strftime("%H:%M:%S");
$date_mysql= strftime("%Y-%m-%d %H:%M:%S");
$tps_unix_maintenant = time();
$domaine = gethostbyaddr($_SERVER['REMOTE_ADDR']);//récupére le nom du domaine
$requete_01 = 'SELECT MAX('.NC_ID.') FROM '.EF_BDD_NOM.'.'.NOM_TABLE_STAT;
$resultat_01 = mysql_query($requete_01) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
if (!empty($resultat_01)) {
$id_max = mysql_result($resultat_01, 0, 0);
} else {
$id_max = 0;
};
$nouveau_id = $id_max +1;
$tab_donnee_copie = $tab_donnee;
$requete_02 = 'INSERT INTO '.EF_BDD_NOM.'.'.NOM_TABLE_STAT.' ('.NC_ID.', '.NC_IP.', '.NC_DOMAINE.', '.NC_NAVIGATEUR.', '.NC_DH_MYSQL.', '.NC_TPS.', '.NC_DATE;
while($element = each($tab_donnee)) {
$requete_02 .= ', '.$element['key'];
}
$requete_02 .= ') VALUES ('.$nouveau_id.', "'.$_SERVER['REMOTE_ADDR'].'", "'.$domaine.'", "'.$_SERVER['HTTP_USER_AGENT'].'", "'.$date_mysql.'", '.$tps_unix_maintenant.', "'.$date_jour.' '.$heure_jour.'"';
while($element = each($tab_donnee_copie)) {
$requete_02 .= ', "'.$element['value'].'"';
}
$requete_02 .= ');';
 
mysql_query($requete_02) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
}
 
//-- Fin du code source ------------------------------------------------------------
?>
/trunk/bibliotheque/eflore_affichage_xhtml.fonct.php
New file
0,0 → 1,165
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Integrateur eFlore. |
// | |
// | Foobar is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | Foobar is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore_affichage_xhtml.fonct.php,v 1.1 2005-05-24 15:57:48 jpm Exp $
/**
* Fonctions pour l'affichage XHTML.
*
*@package eFlore
*@subpackage Ancien
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-05-24 15:57:48 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
/**
* Gestion des messages d'alerte.
*
*Cette fonction retourne un message d'alerte en html.
*
* @return string
*/
function message_alerte($type_message)
{
$message_renvoyer="";
 
switch ($type_message){
case '01' :
$message_renvoyer = inclusion_html("debut_ligne_alerte")."Veuillez saisir un radical avant d'effectuer la recherche !".inclusion_html("fin_ligne_alerte");
break;
case '02' :
$message_renvoyer = inclusion_html("debut_ligne_alerte")."Veuillez saisir un radical contenant au moins 3 caract&egrave;res alphab&eacute;tiques !".inclusion_html("fin_ligne_alerte");
break;
case '03' :
$message_renvoyer = inclusion_html("debut_ligne_alerte")."Le symbole % ne peut pas être utilis&eacute; sans au moins trois caract&egrave;res alphab&eacute;tiques !".inclusion_html("fin_ligne_alerte");
break;
case '04' :
$message_renvoyer = inclusion_html("debut_ligne_alerte")."Les symboles suivant ne doivent pas &ecirc;tre utilis&eacute;s : & < > \" ".inclusion_html("fin_ligne_alerte");
break;
}//fin du switch
 
return $message_renvoyer;
}
 
/**
* Gestion des inclusions html dans le code php.
*
*Cette fonction retourne du html à insérer dans le php.
*
* @return string
*/
function inclusion_html($type_inclusion)
{
global $alerte, $flore, $recherche, $radical, $baseURL;
$html_renvoyer = '';
switch ($type_inclusion) {
case 'rechercher' :
$html_renvoyer .= inclusion_html($GLOBALS['_EF_ANCIEN_']['type'].'_rechercher_titre').
'<h2>Rechercher une plante</h2>'."\n".
$alerte."\n".
'<form id="eflore_form_nomenclature" method="post" action="'.$baseURL.'">'."\n".
'<fieldset>'."\n".
'<legend>'.EFLORE_LG_RECH_NOM_FORM_TITRE.'</legend>'."\n".
'<ul>'."\n".
'<li>'."\n".
'<label for="radical">Nom :</label>'."\n".
'<input type="text" name="radical" value="';
$html_renvoyer .= (isset($radical) && !empty($radical))? $radical : '';
$html_renvoyer .= '" maxlength="100" size="30" />'."\n".
'</li>'."\n".
'<li>'."\n".
'<ul>'."\n".
'<li>'."\n".
'<input type="radio" id="ef_nom_scientifique" name="recherche" value="LATIN" ';
$html_renvoyer .= (!empty($recherche) && $recherche == 'LATIN')? 'checked="checked"': '';
$html_renvoyer .= '/>'.
'<label for="ef_nom_scientifique">nom scientifique</label>'."\n".
'</li>'."\n".'<li>'."\n".
'<input type="radio" id="ef_nom_vernaculaire" name="recherche" value="VERNA" ';
$html_renvoyer .= (!empty($recherche) && $recherche == 'VERNA')? 'checked="checked"': '';
$html_renvoyer .= '/>'.
'<label for="ef_nom_vernaculaire">nom vernaculaire</label>'."\n".
'</li>'."\n".
'</ul>'."\n".
'</li>'."\n".
'</ul>'."\n".
'<input type="hidden" name="flore" value="'.$GLOBALS['_EF_ANCIEN_']['type'].'" />'."\n".
'<input type="hidden" name="numclass" value="1" />'."\n".
'<input id="eflore_chercher" name="eflore_chercher" type="submit" value="chercher" />'."\n".
'</fieldset>'."\n".
'</form>';
break;
case 'ANT_rechercher_titre' :
$html_renvoyer .= '<h1>Consulter la base eFlore : Guadeloupe-Martinique</h1>'."\n";
break;
case 'REU_rechercher_titre' :
$html_renvoyer .= '<h1>Consulter la base eFlore : Réunion</h1>'."\n";
break;
case 'rechercher_aide' :
$html_renvoyer .= '<div id="eflore_exemple_nomenc">'."\n".
'<h2>'.EFLORE_LG_EXPLE_TITRE.'</h2>'."\n".
'<p>'.EFLORE_LG_EXPLE_NOMENC.'</p>'."\n".
'<p>'.EFLORE_LG_EXPLE_ASTUCE.'</p>'."\n".
'<ul id="eflore_liste_astuces">'."\n".
' <li>'.sprintf(EFLORE_LG_EXPLE_ASTUCE_DEMO_01, '<tt>', '</tt>', '<tt>', '</tt>').'</li>'."\n".
' <li>'.sprintf(EFLORE_LG_EXPLE_ASTUCE_DEMO_02, '<tt>', '</tt>').'</li>'."\n".
'</ul>'."\n".
'<p>'.EFLORE_LG_EXPLE_LANGUE.'</p>'."\n".
'<ul id="eflore_liste_langues">'."\n".
' <li>'.EFLORE_LG_EXPLE_FR.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_ES.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_CA.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_DE.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_EN.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_NL.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_IT.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_ETC.'</li>'."\n".
'</ul>'."\n".
'</div>'."\n";
break;
case 'pied_page' :
$html_renvoyer = '<p id="eflore_pied_page">'.EFLORE_LG_PIED.'</p>';
break;
case 'debut_ligne_alerte' :
$html_renvoyer = '<p ="attention">Attention';
break;
case 'fin_ligne_alerte' :
$html_renvoyer = '</p>';
break;
}//fin du switch
return $html_renvoyer;
}//fin fonction inclusion_html
 
 
//-- Fin du code source ------------------------------------------------------------
?>
/trunk/bibliotheque/xsl/classificationtaxons.xsl
New file
0,0 → 1,103
<?xml version="1.0" encoding="iso-8859-1"?>
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="iso-8859-1" version="1.0" standalone="yes" indent="yes" />
 
<xsl:param name="param"/>
 
<xsl:template match="/">
<tr class="titlePage">
<td>
Liste des taxons de rang inf&#233;rieur
</td>
</tr>
<tr>
<td>
<br/>
</td>
</tr>
<xsl:apply-templates select="FICHE_CLASSIFICATION_TAXONS" />
</xsl:template>
 
<xsl:template match="FICHE_CLASSIFICATION_TAXONS">
<xsl:apply-templates select="CLASSIFICATION_TAXON" />
</xsl:template>
 
<xsl:template match="CLASSIFICATION_TAXON">
<xsl:apply-templates select="NOM_TAXON" mode="titre"/>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="LISTE_CLASSIFICATIONS_FILLES/CLASSIFICATION_TAXON/NOM_TAXON" />
</ul>
</td>
</tr>
</xsl:template>
 
 
<xsl:template match="NOM_TAXON" mode="titre">
<tr class="insTitle1">
<td>
Niveau taxinomique s&#233;lectionn&#233;
</td>
</tr>
<tr class="eflore_commentaire">
<td>
Cliquer sur le nom du taxon pour obtenir la fiche d'identit&#233; du taxon.
</td>
</tr>
<tr class="texte_tb">
<td>
<b>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
<xsl:apply-templates select="NOM" />
</a>
</b>
</td>
</tr>
<tr class="insTitle1">
<td>
Niveaux taxonomiques inférieurs
</td>
</tr>
<tr class="eflore_commentaire">
<td>
Cliquer sur le nom du taxon pour obtenir la fiche d'identit&#233; du taxon.
<br/>
Cliquer sur (...) pour obtenir la liste des taxons de rang inf&#233;rieur.
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<li>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
<b>
<xsl:apply-templates select="NOM" />
</b>
</a>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=classificationtaxons.xsl&amp;paramxslt=<xsl:value-of select="$param+1"/>&amp;servicexml=donneclassificationtaxons.php&amp;profondeur=<xsl:value-of select="$param+1"/>&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
(...)
</a>
</li>
</xsl:template>
 
<xsl:template match="NOM">
&#160;
<b>
<xsl:value-of select="@type"/>
</b>
<i>
<xsl:value-of select="."/>
</i>
&#160;
<xsl:value-of select="@auteur"/>
</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/xsl/identitetaxon_pdf.xsl
New file
0,0 → 1,85
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="iso-8859-1" version="1.0" standalone="yes" indent="yes" />
<xsl:template match="/">&#60;?php
$y = 700 ;
$pdf = pdf_new() ;
pdf_open_file($pdf);
pdf_begin_page($pdf, 595, 842);
pdf_set_font($pdf, "Courier", 20, "host");
pdf_set_value($pdf, "textrendering", 0);
pdf_show_boxed($pdf, "Fiche d'identité d'un taxon", 50, 750,500,60,"center");
pdf_set_font($pdf, "Courier", 12, "host") ;
pdf_show_boxed($pdf, "Nom valide :", 50, 700,500,40,"left");
pdf_moveto($pdf, 50, 690);pdf_lineto($pdf, 330, 690);pdf_stroke($pdf);
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="FICHE_IDENTITES_TAXONS">
<xsl:if test="not(NOM_VALIDE) and not(LISTE_NOMS_VALIDES)">
$y = $y - 50 ;
pdf_show_boxed($pdf, "Il n'existe aucun nom valide pour ce taxon relativement à la
classification", 40, $y, 500,50, "left") ;
</xsl:if>
<xsl:apply-templates select ="NOM_VALIDE"/>
<xsl:apply-templates select ="LISTE_NOMS_VALIDE"/>
<xsl:apply-templates select ="LISTE_NOMS_TAXONS_PARENTS"/>
<xsl:apply-templates select ="LISTE_SYNONYMES"/>
<xsl:apply-templates select ="LISTE_NOMS_VERNACULAIRES"/>
pdf_end_page($pdf);
pdf_close($pdf) ;
$data = pdf_get_buffer($pdf);
header("Content-type: application/pdf");
header("Content-Disposition: inline; filename=test.pdf");
header("Content-length : ".strlen($data)) ;
echo $data ;
?&#62;
</xsl:template>
 
<xsl:template match="NOM_VALIDE">
<xsl:apply-templates select="NOM_TAXON"/>
</xsl:template>
<xsl:template match="LISTE_NOMS_VALIDES">
<tr class="fieldLabel"><td>Nom valide:</td></tr>
<tr class="text"><td>
<UL>
<xsl:apply-templates select="NOM_TAXON" />
</UL>
</td></tr>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_TAXONS_PARENTS">
$y = $y - 50 ;
pdf_show_boxed($pdf,"Niveaux taxonomiques supérieurs:",40,$y,500,50,"left") ;
 
<xsl:apply-templates select="NOM_TAXON_PARENTS/NOM_TAXON" mode="parent"/>
</xsl:template>
 
<xsl:template match="LISTE_SYNONYMES">
$y = $y - 50 ;
pdf_show_boxed($pdf,"Liste des synonymes :",40,$y,500,50,"left") ;
<xsl:apply-templates select="NOM_TAXON"/>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
$y = $y - 50 ;
pdf_show_boxed($pdf,"Noms communs :",40,$y,500,50,"left") ;
<xsl:apply-templates select="NOM_VERNACULAIRE" />
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<xsl:apply-templates select="NOM"/>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="parent">
<xsl:apply-templates select="NOM"/>
</xsl:template>
 
<xsl:template match="NOM">
$y = $y - 20 ;
pdf_show_boxed($pdf,"<xsl:value-of select="@type"/><xsl:value-of select="."/>&#160;<xsl:value-of select="@auteur"/>",40,$y,500,50,"left") ;
</xsl:template>
<xsl:template match="NOM_VERNACULAIRE">
$y = $y -50 ;
pdf_show_boxed($pdf,"<xsl:value-of select="@langue"/>&#160;:&#160;<xsl:value-of select="."/>(<xsl:value-of select="@pays"/>)&#160;<xsl:choose><xsl:when test="@emploi='0'">recommandé ou typique</xsl:when><xsl:when test="@emploi='1'">secondaire ou regional</xsl:when><xsl:when test="@emploi='2'">peu usité et à éviter</xsl:when></xsl:choose>",40,$y,500,50,"left") ;</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/xsl/listetaxons.xsl
New file
0,0 → 1,108
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" version="1.0" standalone="yes" indent="yes" encoding="ISO-8859-1"/>
 
<xsl:template match="/">
<tr>
<td class="titlePage">
Liste des noms scientifiques trouvés
</td>
</tr>
<xsl:if test="not(/FICHE_LISTE_TAXONS/LISTE_TAXONS/NOM_TAXON)">
<tr>
<td>
<br/>
</td>
</tr>
<tr class="eflore_avertissement">
<td align="center">
Il n'existe aucun nom scientifique correspondant au radical recherch&#233;.
</td>
</tr>
<tr>
<td>
<br/>
</td>
</tr>
<tr class="eflore_avertissement">
<td align="center">
<!--Lien vers le site de test de Tela-Botanica-->
<!--Cliquer <a href="http://test.tela-botanica.org/eflore" target="_top">ICI</a> pour retourner au formulaire principal de l'Index.-->
<!--Lien vers le site officiel de Tela-Botanica-->
Cliquer <a href="http://www.tela-botanica.org/eflore" target="_top" onclick="history.back();return false;">ICI</a> pour retourner au formulaire principal de l'Index.
</td>
</tr>
<tr>
<td>
<br/>
<br/>
</td>
</tr>
</xsl:if>
<xsl:if test="boolean(/FICHE_LISTE_TAXONS/LISTE_TAXONS/NOM_TAXON)">
<xsl:apply-templates select="FICHE_LISTE_TAXONS" />
</xsl:if>
</xsl:template>
 
<xsl:template match="//FICHE_LISTE_TAXONS">
<xsl:apply-templates select="//LISTE_TAXONS" />
</xsl:template>
 
<xsl:template match="LISTE_TAXONS">
<tr class="texte_tb">
<td>
<span class="insTitle1">Cliquer sur un des noms pour afficher la fiche du nom retenu (correct) correspondante.</span>
<br/>
<b>Note :</b> les noms retenus (corrects) apparaissent en gras dans cette liste.
<br/><br/>
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON" />
</ul>
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<xsl:choose>
<xsl:when test="@statut='1'">
<b>
<li>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
<xsl:apply-templates select="NOM" />
</a>
</li>
</b>
</xsl:when>
<xsl:otherwise>
<li>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
<xsl:apply-templates select="NOM" />
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
 
<xsl:template match="NOM">
<!--<b>-->
<xsl:value-of select="@type"/>
<!--</b>-->
&#160;
<i>
<xsl:value-of select="."/>
</i>
&#160;
<xsl:value-of select="@auteur"/>
&#160;
</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/xsl/identitetaxon_nn4.xsl
New file
0,0 → 1,486
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="iso-8859-1" version="1.0" standalone="yes" indent="yes" />
 
<!-- DECLARATION DE VARIABLES-->
<!-- Variable "nom_url" récupérant le numéro nomenclatural du nom recherché.-->
<!-- Ce numéro est présent dans l'url appelant le service XML "donneidentitestaxons".-->
<xsl:variable name="nom_url" select="/FICHE_IDENTITES_TAXONS/@numnom" />
 
<!-- Variable "taxo_url" récupérant le numéro taxonomique du nom recherché,-->
<!-- donc présent dans l'url appelant le service XML "donneidentitestaxons".-->
<!-- Utilisé pour récupérer le nom vernaculaire séléctionné.-->
<xsl:variable name="taxo_url" select="/FICHE_IDENTITES_TAXONS/@numtaxo" />
 
<xsl:template match="/">
<tr>
<td align="center">
<h3 class="titlePage">Identit&#233; du taxon</h3>
</td>
</tr>
<xsl:apply-templates/>
</xsl:template>
 
<xsl:template match="FICHE_IDENTITES_TAXONS">
<xsl:if test="not(boolean(/FICHE_IDENTITES_TAXONS/NOM_VALIDE)) and not(boolean(/FICHE_IDENTITES_TAXONS/LISTE_NOMS_VALIDES))">
<tr>
<td>
<h5 class="insTitle1">Nom retenu (correct)</h5>
</td>
</tr>
<tr class="eflore_avertissement">
<td align="center">
Il n'existe aucun nom retenu (correct) pour ce taxon relativement à la classification courante.
</td>
</tr>
</xsl:if>
<xsl:if test="not(boolean($taxo_url))">
<xsl:apply-templates select ="LISTE_SYNONYMES" mode="nom_url"/>
</xsl:if>
<xsl:apply-templates select ="NOM_VALIDE"/>
<xsl:apply-templates select ="LISTE_NOMS_VALIDES"/>
<xsl:apply-templates select ="LISTE_NOMS_TAXONS_PARENTS"/>
<xsl:apply-templates select ="LISTE_SYNONYMES"/>
<xsl:apply-templates select ="LISTE_NOMS_VERNACULAIRES"/>
</xsl:template>
 
<!-- Le template suivant permet de récupérer dans la liste des synonymes le nom sélectionné dans "listetaxons.xls"-->
<!-- car dans "listetaxons.xsl", l'url permettant d'obtenir la fiche d'identité du taxon utilise le n° nomenclatural-->
<!-- Ce n° nomenclatural apparait dans dans la balise "FICHE_IDENTITES_TAXONS" sous forme de l'attribut "numnom"-->
<xsl:template match="LISTE_SYNONYMES" mode="nom_url">
<tr>
<td>
<h5 class="insTitle1">Nom s&#233;lectionn&#233; pr&#233;c&#233;demment</h5>
</td>
</tr>
<tr class="texte_tb">
<td>
<li>
<xsl:if test="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/NOM_TAXON/@numnom = $nom_url">
<xsl:apply-templates select="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/NOM_TAXON[@numnom]" />
</xsl:if>
<xsl:if test="NOM_TAXON/@numnom = $nom_url">
<xsl:apply-templates select="NOM_TAXON[@numnom = $nom_url]" />
</xsl:if>
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="$nom_url"/>
</span>
<xsl:text> - </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="@numtaxo"/>
</span>
<xsl:text> ] </xsl:text>
</li>
<!--<xsl:if test="boolean($taxo_url)">
<xsl:apply-templates select="/FICHE_IDENTITES_TAXONS/LISTE_NOMS_VERNACULAIRES/NOM_VERNACULAIRE[@numtaxo = $taxo_url]" />
</xsl:if>-->
<br />
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_VALIDE">
<xsl:apply-templates select="NOM_TAXON" mode="nomRetenu"/>
<tr>
<td>
<h5 class="insTitle1">En image</h5>
</td>
</tr>
<tr class="eflore_commentaire">
<td>
Cliquer sur le bouton "Recherche Google" pour afficher des images du taxon (résultat non garanti...).
</td>
</tr>
<tr>
<td class="texte_tb">
<form method="get">
<xsl:attribute name="action">http://images.google.com/images</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<a>
<img>
<xsl:attribute name="src">http://www.google.com/logos/Logo_25wht.gif</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt">Google</xsl:attribute>
<xsl:attribute name="align">absmiddle</xsl:attribute>
</img>
</a>
<input>
<xsl:attribute name="type">text</xsl:attribute>
<xsl:attribute name="name">q</xsl:attribute>
<xsl:attribute name="size">25</xsl:attribute>
<xsl:attribute name="maxlength">255</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="NOM_TAXON/NOM"/>
</xsl:attribute>
</input>
<input>
<xsl:attribute name="class">texte_tb</xsl:attribute>
<xsl:attribute name="type">submit</xsl:attribute>
<xsl:attribute name="name">btnG</xsl:attribute>
<xsl:attribute name="value">Recherche Google</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">ie</xsl:attribute>
<xsl:attribute name="value">ISO-8859-1</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">oe</xsl:attribute>
<xsl:attribute name="value">ISO-8859-1</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">hl</xsl:attribute>
<xsl:attribute name="value">fr</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VALIDES">
<tr class="insTitle1">
<td>
<h5>Noms valides</h5>
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON" />
</ul>
</td>
</tr>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_TAXONS_PARENTS">
<tr>
<td>
<h5 class="insTitle1">Niveaux taxinomiques supérieurs</h5>
</td>
</tr>
<tr class="eflore_commentaire">
<td>
En cliquant sur (...) situé aprés le niveau taxinomique vous obtiendrez la liste des taxons retenus (corrects) qu'il contient.
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON_PARENTS/NOM_TAXON" mode="parent" />
</ul>
</td>
</tr>
</xsl:template>
 
<xsl:template match="LISTE_SYNONYMES">
<tr>
<td>
<h5 class="insTitle1">Synonymes</h5>
</td>
</tr>
 
<!-- Affiches les synonymes nomenclaturaux s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 1">
<tr class="texte_tb">
<td>
<h6>Synonymes nomenclaturaux</h6>
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 1]" mode="biblio_tsyn"/>
</ul>
<br />
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes taxinomiques s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 2">
<tr class="texte_tb">
<td>
<h6>Synonymes taxinomiques</h6>
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 2]" mode="biblio_tsyn"/>
</ul>
<br />
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type inconnu s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 3">
<tr class="texte_tb">
<td>
<h6>Synonymes de type inconnu</h6>
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 3]" mode="biblio_tsyn"/>
</ul>
<br />
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type "inclus dans" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 4">
<tr class="texte_tb">
<td>
<h6>Synonymes de type "inclus dans"</h6>
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 4]" mode="biblio_tsyn"/>
</ul>
<br />
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type "inclus dans" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 5">
<tr class="texte_tb">
<td>
<h6>Synonymes de type "au sens de (sensu)"</h6>
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 5]" mode="biblio_tsyn"/>
</ul>
<br />
</td>
</tr>
</xsl:if>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
<tr>
<td>
<h5 class="insTitle1">Noms vernaculaires</h5>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="*" cellpading="0" cellspacing="0">
<tr class="eflore_commentaire" >
<td width="50" align="left">
Langue
</td>
<td width="30" align="left">
Pays
</td>
<td width="220" align="left">
Nom
</td>
<td width="150">
Emploi
</td>
<td width="50">
Genre
</td>
<td width="50">
Nombre
</td>
</tr>
<xsl:apply-templates select="NOM_VERNACULAIRE" />
</table>
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<xsl:apply-templates select="NOM" />
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="nomRetenu">
<tr>
<td>
<h5 class="insTitle1">Nom retenu (correct) correspondant</h5>
<xsl:text> </xsl:text>
<!--<a href="http://test.tela-botanica.org/tmp/pdf.php" target="_blank"><img src="Local/icons/pdf.gif" border="0"></img></a>-->
</td>
</tr>
<tr class="texte_tb">
<td>
<li>
<b>
<xsl:apply-templates select="NOM" />
</b>
<xsl:apply-templates select="BIBLIOGRAPHIE" />
<xsl:apply-templates select="INFO_COMBINAISON" />
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="@numnom"/>
</span>
<xsl:text> - </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/@numtaxo"/>
</span>
<xsl:text> ] </xsl:text>
</li>
<br />
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="biblio_tsyn">
<li>
<!-- Affichage du nom -->
<xsl:apply-templates select="NOM" />
<br />
<xsl:text> </xsl:text>
<!-- Cas où le nom comporte des infos de biblio ou sur la combinaison -->
<xsl:if test="boolean(BIBLIOGRAPHIE) or boolean (INFO_COMBINAISON)">
<!-- Affichage de la référence biblio et des commentaires nomenclaturaux -->
<xsl:apply-templates select="BIBLIOGRAPHIE" />
<xsl:apply-templates select="INFO_COMBINAISON" />
</xsl:if>
<!-- Affichage des numéros nomenclatural et taxonomique -->
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="@numnom"/>
</span>
<xsl:text> - </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="../@numtaxo"/>
</span>
<xsl:text> ] </xsl:text>
</li>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="parent">
<li>
<b>
<xsl:apply-templates select="NOM" />
</b>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=classificationtaxons.xsl&amp;paramxslt=<xsl:value-of select="position()+2"/>&amp;servicexml=donneclassificationtaxons.php&amp;profondeur=<xsl:value-of select="position()+2"/>&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
(...)
</a>
</li>
</xsl:template>
 
<xsl:template match="NOM">
&#160;
<b>
<xsl:value-of select="@type"/>
</b>
<i>
<xsl:value-of select="."/>
</i>
&#160;
<xsl:value-of select="@auteur"/>
</xsl:template>
 
<xsl:template match="BIBLIOGRAPHIE ">
&#160;
<xsl:value-of select="@annee"/>
&#160;
<xsl:value-of select="."/>
</xsl:template>
 
<xsl:template match="INFO_COMBINAISON ">
&#160;
<xsl:value-of select="."/>
</xsl:template>
 
<xsl:template match="NOM_VERNACULAIRE">
<tr class="texte_tb" >
<td width="50" align="left">
<li>
<xsl:value-of select="@langue"/>
</li>
</td>
<td width="30" align="left">
<xsl:value-of select="@pays"/>
</td>
<td width="220" >
<xsl:if test="@emploi='1'">
<b>
<xsl:value-of select="."/>
</b>
</xsl:if>
<xsl:if test="@emploi='0' or @emploi='2' or @emploi='3'">
<xsl:value-of select="."/>
</xsl:if>
</td>
<td width="150" >
<xsl:choose>
<xsl:when test="@emploi='0'">
&#032;
</xsl:when>
<xsl:when test="@emploi='1'">
recommandé ou typique
</xsl:when>
<xsl:when test="@emploi='2'">
secondaire ou régional
</xsl:when>
<xsl:when test="@emploi='3'">
peu usité et à éviter
</xsl:when>
</xsl:choose>
</td>
<td width="50" align="center">
<xsl:choose>
<xsl:when test="@genre='0'">
&#032;
</xsl:when>
<xsl:when test="@genre='1'">
masculin
</xsl:when>
<xsl:when test="@genre='2'">
féminin
</xsl:when>
<xsl:when test="@genre='3'">
neutre
</xsl:when>
<xsl:when test="@genre='4'">
duel
</xsl:when>
</xsl:choose>
</td>
<td width="50" align="center">
<xsl:choose>
<xsl:when test="@nombre='0'">
&#032;
</xsl:when>
<xsl:when test="@nombre='1'">
singulier
</xsl:when>
<xsl:when test="@nombre='2'">
pluriel
</xsl:when>
<xsl:when test="@nombre='3'">
duel
</xsl:when>
</xsl:choose>
</td>
</tr>
</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/xsl/identitetaxon.xsl
New file
0,0 → 1,686
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="iso-8859-1" version="1.0" standalone="yes" indent="yes" />
 
<!-- DECLARATION DE VARIABLES-->
<!-- Variable "nom_url" récupérant le numéro nomenclatural du nom recherché.-->
<!-- Ce numéro est présent dans l'url appelant le service XML "donneidentitestaxons".-->
<xsl:variable name="nom_url" select="/FICHE_IDENTITES_TAXONS/@numnom" />
 
<!-- Variable "taxo_url" récupérant le numéro taxonomique du nom recherché,-->
<!-- donc présent dans l'url appelant le service XML "donneidentitestaxons".-->
<!-- Utilisé pour récupérer le nom vernaculaire séléctionné.-->
<xsl:variable name="taxo_url" select="/FICHE_IDENTITES_TAXONS/@numtaxo" />
 
<xsl:template match="/">
<tr class="titlePage">
<td>
Identit&#233; du taxon
</td>
</tr>
 
<xsl:apply-templates/>
</xsl:template>
 
<xsl:template match="FICHE_IDENTITES_TAXONS">
<xsl:if test="not(boolean(/FICHE_IDENTITES_TAXONS/NOM_VALIDE)) and not(boolean(/FICHE_IDENTITES_TAXONS/LISTE_NOMS_VALIDES))">
<tr class="insTitle1">
<td>
Nom retenu (correct)
</td>
</tr>
<tr class="eflore_avertissement">
<td align="center">
Il n'existe aucun nom retenu (correct) pour ce taxon relativement à la classification courante.
</td>
</tr>
</xsl:if>
<xsl:if test="not(boolean($taxo_url))">
<xsl:apply-templates select ="LISTE_SYNONYMES" mode="nom_url"/>
</xsl:if>
<xsl:apply-templates select ="NOM_VALIDE"/>
<xsl:apply-templates select ="LISTE_NOMS_VALIDES"/>
<xsl:apply-templates select ="LISTE_NOMS_TAXONS_PARENTS"/>
<xsl:apply-templates select ="LISTE_SYNONYMES"/>
<xsl:apply-templates select ="LISTE_NOMS_VERNACULAIRES"/>
</xsl:template>
 
<!-- Le template suivant permet de récupérer dans la liste des synonymes le nom sélectionné dans "listetaxons.xls"-->
<!-- car dans "listetaxons.xsl", l'url permettant d'obtenir la fiche d'identité du taxon utilise le n° nomenclatural-->
<!-- Ce n° nomenclatural apparait dans dans la balise "FICHE_IDENTITES_TAXONS" sous forme de l'attribut "numnom"-->
<xsl:template match="LISTE_SYNONYMES" mode="nom_url">
<tr class="insTitle1">
<td>
Nom s&#233;lectionn&#233; pr&#233;c&#233;demment
<xsl:text> </xsl:text>
</td>
</tr>
<tr class="texte_tb">
<td>
<li>
<xsl:if test="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/NOM_TAXON/@numnom = $nom_url">
<xsl:apply-templates select="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/NOM_TAXON[@numnom]" />
</xsl:if>
<xsl:if test="NOM_TAXON/@numnom = $nom_url">
<xsl:apply-templates select="NOM_TAXON[@numnom = $nom_url]" />
</xsl:if>
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="$nom_url"/>
</span>
<xsl:text> - </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="@numtaxo"/>
</span>
<xsl:text> ] </xsl:text>
</li>
<!--<xsl:if test="boolean($taxo_url)">
<xsl:apply-templates select="/FICHE_IDENTITES_TAXONS/LISTE_NOMS_VERNACULAIRES/NOM_VERNACULAIRE[@numtaxo = $taxo_url]" />
</xsl:if>-->
<br />
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_VALIDE">
<xsl:apply-templates select="NOM_TAXON" mode="nomRetenu"/>
<tr class="insTitle1">
<td>
En image
</td>
</tr>
<tr class="eflore_commentaire">
<td>
Cliquer sur le bouton "Recherche Google" pour afficher des images du taxon (résultat non garanti...).
</td>
</tr>
<tr>
<td class="texte_tb">
<form method="get">
<xsl:attribute name="action">http://images.google.com/images</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<a>
<img>
<xsl:attribute name="src">http://www.google.com/logos/Logo_25wht.gif</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt">Google</xsl:attribute>
<xsl:attribute name="align">absmiddle</xsl:attribute>
</img>
</a>
<input>
<xsl:attribute name="type">text</xsl:attribute>
<xsl:attribute name="name">q</xsl:attribute>
<xsl:attribute name="size">25</xsl:attribute>
<xsl:attribute name="maxlength">255</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="NOM_TAXON/NOM"/>
</xsl:attribute>
</input>
<input>
<xsl:attribute name="class">texte_tb</xsl:attribute>
<xsl:attribute name="type">submit</xsl:attribute>
<xsl:attribute name="name">btnG</xsl:attribute>
<xsl:attribute name="value">Recherche Google</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">ie</xsl:attribute>
<xsl:attribute name="value">ISO-8859-1</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">oe</xsl:attribute>
<xsl:attribute name="value">ISO-8859-1</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">hl</xsl:attribute>
<xsl:attribute name="value">fr</xsl:attribute>
</input>
</form>
</td>
</tr>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VALIDES">
<tr class="insTitle1">
<td>
Noms valides
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON" />
</ul>
</td>
</tr>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_TAXONS_PARENTS">
<tr class="insTitle1">
<td>
Niveaux taxinomiques supérieurs
</td>
</tr>
<tr class="eflore_commentaire">
<td>
En cliquant sur (...) situé aprés le niveau taxinomique vous obtiendrez la liste des taxons retenus (corrects) qu'il contient.
</td>
</tr>
<tr class="texte_tb">
<td>
<ul>
<xsl:apply-templates select="NOM_TAXON_PARENTS/NOM_TAXON" mode="parent" />
</ul>
</td>
</tr>
</xsl:template>
 
<xsl:template match="LISTE_SYNONYMES">
<tr class="insTitle1">
<td>
Synonymes
</td>
</tr>
<tr class="eflore_commentaire">
<td>
Le symbole
<img>
<xsl:attribute name="name">imEx</xsl:attribute>
<xsl:attribute name="src">Local/icons/openclose-plus.gif</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="width">9</xsl:attribute>
<xsl:attribute name="height">9</xsl:attribute>
</img>
indique la présence d'une source bibliographique et/ou d'information sur la combinaison.
<br/>
Cliquer sur le symbole
<img>
<xsl:attribute name="name">imEx</xsl:attribute>
<xsl:attribute name="src">Local/icons/openclose-plus.gif</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="width">9</xsl:attribute>
<xsl:attribute name="height">9</xsl:attribute>
</img>
pour afficher ces informations complémentaires.
</td>
</tr>
 
<!-- Affiches les synonymes nomenclaturaux s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 1 or NOM_TAXON/@tsyn = 'n'">
<tr class="texte_tb">
<td>
<b>Synonymes nomenclaturaux</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 1 or @tsyn = 'n']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes taxinomiques s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 2 or NOM_TAXON/@tsyn = 't'">
<tr class="texte_tb">
<td>
<b>Synonymes taxinomiques</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 2 or @tsyn = 't']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type inconnu s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 3 or NOM_TAXON/@tsyn = 'o'">
<tr class="texte_tb">
<td>
<b>Synonymes de type inconnu</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 3 or @tsyn = 'o']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type "inclus dans" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 4 or NOM_TAXON/@tsyn = 'i'">
<tr class="texte_tb">
<td>
<b>Synonymes de type "inclus dans"</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 4 or @tsyn = 'i']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type "inclus dans" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 5 or NOM_TAXON/@tsyn = 's'">
<tr class="texte_tb">
<td>
<b>Synonymes de type "au sens de (sensu)"</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 5 or @tsyn = 's']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type "autonyme" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 6 or NOM_TAXON/@tsyn = 'a'">
<tr class="texte_tb">
<td>
<b>Synonymes de type "autonyme"</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 6 or @tsyn = 'a']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type "antonyme" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 7 or NOM_TAXON/@tsyn = 'an'">
<tr class="texte_tb">
<td>
<b>Synonymes de type "antonyme"</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 7 or @tsyn = 'an']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type "pseudonyme" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 8 or NOM_TAXON/@tsyn = 'p'">
<tr class="texte_tb">
<td>
<b>Synonymes de type "pseudonyme"</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 8 or @tsyn = 'p']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type "variant orthographique" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 9 or NOM_TAXON/@tsyn = 'vo'">
<tr class="texte_tb">
<td>
<b>Synonymes de type "variant orthographique"</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 9 or @tsyn = 'vo']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
 
<!-- Affiches les synonymes de type "isonyme" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 10 or NOM_TAXON/@tsyn = 'is'">
<tr class="texte_tb">
<td>
<b>Synonymes de type "isonyme"</b>
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="100%" cellpading="0" cellspacing="0">
<xsl:apply-templates select="NOM_TAXON[@tsyn = 10 or @tsyn = 'is']" mode="biblio_tsyn"/>
</table>
</td>
</tr>
</xsl:if>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
<tr class="insTitle1">
<td>
Noms vernaculaires
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="*" cellpading="0" cellspacing="0">
<tr class="eflore_commentaire" >
<td width="50" align="left">
Langue
</td>
<td width="30" align="left">
Pays
</td>
<td width="220" align="left">
Nom
</td>
<td width="150">
Emploi
</td>
<td width="50">
Genre
</td>
<td width="50">
Nombre
</td>
</tr>
<xsl:apply-templates select="NOM_VERNACULAIRE" />
</table>
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<xsl:apply-templates select="NOM" />
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="nomRetenu">
<tr class="insTitle1">
<td>
Nom retenu (correct) correspondant
<xsl:text> </xsl:text>
<!--<a href="http://test.tela-botanica.org/tmp/pdf.php" target="_blank"><img src="Local/icons/pdf.gif" border="0"></img></a>-->
</td>
</tr>
<tr class="texte_tb">
<td>
<li>
<b>
<xsl:apply-templates select="NOM" />
</b>
<xsl:apply-templates select="BIBLIOGRAPHIE" />
<xsl:apply-templates select="INFO_COMBINAISON" />
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="@numnom"/>
</span>
<xsl:text> - </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/@numtaxo"/>
</span>
<xsl:text> ] </xsl:text>
</li>
<br />
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="biblio_tsyn">
<tr class="texte_tb">
<td width="20" height="15" >
<br/>
</td>
<td align="left">
<div>
<xsl:attribute name="id">el<xsl:value-of select="position()"/>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'">TS1Parent</xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'">TS2Parent</xsl:if>
<xsl:if test="@tsyn = 3 or @tsyn = 'o'">TS3Parent</xsl:if>
<xsl:if test="@tsyn = 4 or @tsyn = 'i'">TS4Parent</xsl:if>
<xsl:if test="@tsyn = 5 or @tsyn = 's'">TS5Parent</xsl:if>
<xsl:if test="@tsyn = 6 or @tsyn = 'a'">TS6Parent</xsl:if>
<xsl:if test="@tsyn = 7 or @tsyn = 'an'">TS7Parent</xsl:if>
<xsl:if test="@tsyn = 8 or @tsyn = 'p'">TS8Parent</xsl:if>
<xsl:if test="@tsyn = 9 or @tsyn = 'vo'">TS9Parent</xsl:if>
<xsl:if test="@tsyn = 10 or @tsyn = 'is'">TS10Parent</xsl:if>
</xsl:attribute>
<xsl:attribute name="class">parent</xsl:attribute>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'">&#8801;</xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'">&#061;</xsl:if>
&#160;
<a>
<xsl:attribute name="class">texte_tb</xsl:attribute>
<xsl:attribute name="href">#</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:text>expandBase('el</xsl:text>
<xsl:value-of select="position()"/>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'"><xsl:text>TS1</xsl:text></xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'"><xsl:text>TS2</xsl:text></xsl:if>
<xsl:if test="@tsyn = 3 or @tsyn = 'o'"><xsl:text>TS3</xsl:text></xsl:if>
<xsl:if test="@tsyn = 4 or @tsyn = 'i'"><xsl:text>TS4</xsl:text></xsl:if>
<xsl:if test="@tsyn = 5 or @tsyn = 's'"><xsl:text>TS5</xsl:text></xsl:if>
<xsl:if test="@tsyn = 6 or @tsyn = 'a'"><xsl:text>TS6</xsl:text></xsl:if>
<xsl:if test="@tsyn = 7 or @tsyn = 'an'"><xsl:text>TS7</xsl:text></xsl:if>
<xsl:if test="@tsyn = 8 or @tsyn = 'p'"><xsl:text>TS8</xsl:text></xsl:if>
<xsl:if test="@tsyn = 9 or @tsyn = 'vo'"><xsl:text>TS9</xsl:text></xsl:if>
<xsl:if test="@tsyn = 10 or @tsyn = 'is'"><xsl:text>TS10</xsl:text></xsl:if>
<xsl:text>',true); return false;</xsl:text>
</xsl:attribute>
<img>
<xsl:attribute name="name">imEx</xsl:attribute>
<xsl:attribute name="id">
<xsl:text>el</xsl:text>
<xsl:value-of select="position()"/>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'"><xsl:text>TS1</xsl:text></xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'"><xsl:text>TS2</xsl:text></xsl:if>
<xsl:if test="@tsyn = 3 or @tsyn = 'o'"><xsl:text>TS3</xsl:text></xsl:if>
<xsl:if test="@tsyn = 4 or @tsyn = 'i'"><xsl:text>TS4</xsl:text></xsl:if>
<xsl:if test="@tsyn = 5 or @tsyn = 's'"><xsl:text>TS5</xsl:text></xsl:if>
<xsl:if test="@tsyn = 6 or @tsyn = 'a'"><xsl:text>TS6</xsl:text></xsl:if>
<xsl:if test="@tsyn = 7 or @tsyn = 'an'"><xsl:text>TS7</xsl:text></xsl:if>
<xsl:if test="@tsyn = 8 or @tsyn = 'p'"><xsl:text>TS8</xsl:text></xsl:if>
<xsl:if test="@tsyn = 9 or @tsyn = 'vo'"><xsl:text>TS9</xsl:text></xsl:if>
<xsl:if test="@tsyn = 10 or @tsyn = 'is'"><xsl:text>TS10</xsl:text></xsl:if>
<xsl:text>Img</xsl:text>
</xsl:attribute>
<xsl:attribute name="src">Local/icons/openclose-plus.gif</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="width">9</xsl:attribute>
<xsl:attribute name="height">9</xsl:attribute>
<xsl:attribute name="alt">Voir informations complémentaires</xsl:attribute>
<xsl:attribute name="title">Voir informations complémentaires</xsl:attribute>
</img>
<!-- Utilisation des plier-déplier. Élément parent.-->
</a>
<xsl:apply-templates select="NOM" />
</div>
<!-- Utilisation des plier-déplier. Élément enfant.-->
<div>
<xsl:attribute name="id">
<xsl:text>el</xsl:text>
<xsl:value-of select="position()"/>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'"><xsl:text>TS1</xsl:text></xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'"><xsl:text>TS2</xsl:text></xsl:if>
<xsl:if test="@tsyn = 3 or @tsyn = 'o'"><xsl:text>TS3</xsl:text></xsl:if>
<xsl:if test="@tsyn = 4 or @tsyn = 'i'"><xsl:text>TS4</xsl:text></xsl:if>
<xsl:if test="@tsyn = 5 or @tsyn = 's'"><xsl:text>TS5</xsl:text></xsl:if>
<xsl:if test="@tsyn = 6 or @tsyn = 'a'"><xsl:text>TS6</xsl:text></xsl:if>
<xsl:if test="@tsyn = 7 or @tsyn = 'an'"><xsl:text>TS7</xsl:text></xsl:if>
<xsl:if test="@tsyn = 8 or @tsyn = 'p'"><xsl:text>TS8</xsl:text></xsl:if>
<xsl:if test="@tsyn = 9 or @tsyn = 'vo'"><xsl:text>TS9</xsl:text></xsl:if>
<xsl:if test="@tsyn = 10 or @tsyn = 'is'"><xsl:text>TS10</xsl:text></xsl:if>
<xsl:text>Child</xsl:text>
</xsl:attribute>
<xsl:attribute name="class">child</xsl:attribute>
<xsl:attribute name="style">margin-bottom: 5px;</xsl:attribute>
 
<!-- Cas où le nom comporte des infos de biblio ou sur la combinaison -->
<xsl:if test="boolean(BIBLIOGRAPHIE) or boolean(INFO_COMBINAISON)">
<xsl:apply-templates select="BIBLIOGRAPHIE" />
<xsl:apply-templates select="INFO_COMBINAISON" />
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="@numnom"/>
</span>
<xsl:text> - </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="../@numtaxo"/>
</span>
<xsl:text> ] </xsl:text>
</xsl:if>
 
<!-- Cas où le nom comporte aucune info de biblio ou sur la combinaison -->
<xsl:if test="not(BIBLIOGRAPHIE) and not (INFO_COMBINAISON)">
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="@numnom"/>
</span>
<xsl:text> - </xsl:text>
<span>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="../@numtaxo"/>
</span>
<xsl:text> ] </xsl:text>
</xsl:if>
 
</div>
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="parent">
<li>
<b>
<xsl:apply-templates select="NOM" />
</b>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=classificationtaxons.xsl&amp;paramxslt=<xsl:value-of select="position()+2"/>&amp;servicexml=donneclassificationtaxons.php&amp;profondeur=<xsl:value-of select="position()+2"/>&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
(...)
</a>
</li>
</xsl:template>
 
<xsl:template match="NOM">
&#160;
<b>
<xsl:value-of select="@type"/>
</b>
<i>
<xsl:value-of select="."/>
</i>
&#160;
<xsl:value-of select="@auteur"/>
</xsl:template>
 
<xsl:template match="BIBLIOGRAPHIE ">
&#160;
<xsl:value-of select="@annee"/>
&#160;
<xsl:value-of select="."/>
</xsl:template>
 
<xsl:template match="INFO_COMBINAISON ">
&#160;
<xsl:value-of select="."/>
</xsl:template>
 
<xsl:template match="NOM_VERNACULAIRE">
<tr class="texte_tb" >
<td width="50" align="left">
<li>
<xsl:value-of select="@langue"/>
</li>
</td>
<td width="30" align="left">
<xsl:value-of select="@pays"/>
</td>
<td width="220" >
<xsl:if test="@emploi='1'">
<b>
<xsl:value-of select="."/>
</b>
</xsl:if>
<xsl:if test="@emploi='0' or @emploi='2' or @emploi='3'">
<xsl:value-of select="."/>
</xsl:if>
</td>
<td width="150" >
<xsl:choose>
<xsl:when test="@emploi='0'">
&#032;
</xsl:when>
<xsl:when test="@emploi='1'">
recommandé ou typique
</xsl:when>
<xsl:when test="@emploi='2'">
secondaire ou régional
</xsl:when>
<xsl:when test="@emploi='3'">
peu usité et à éviter
</xsl:when>
</xsl:choose>
</td>
<td width="50" align="center">
<xsl:choose>
<xsl:when test="@genre='0'">
&#032;
</xsl:when>
<xsl:when test="@genre='1'">
masculin
</xsl:when>
<xsl:when test="@genre='2'">
féminin
</xsl:when>
<xsl:when test="@genre='3'">
neutre
</xsl:when>
<xsl:when test="@genre='4'">
duel
</xsl:when>
</xsl:choose>
</td>
<td width="50" align="center">
<xsl:choose>
<xsl:when test="@nombre='0'">
&#032;
</xsl:when>
<xsl:when test="@nombre='1'">
singulier
</xsl:when>
<xsl:when test="@nombre='2'">
pluriel
</xsl:when>
<xsl:when test="@nombre='3'">
duel
</xsl:when>
</xsl:choose>
</td>
</tr>
</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/xsl/listenomsvernaculaires.xsl
New file
0,0 → 1,140
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" version="1.0" standalone="yes" indent="yes" encoding="iso-8859-1"/>
 
<xsl:template match="/">
<xsl:apply-templates select="FICHE_LISTE_NOMS_VERNACULAIRES"/>
</xsl:template>
 
<xsl:template match="FICHE_LISTE_NOMS_VERNACULAIRES">
<tr class="titlePage">
<td >
Liste des noms vernaculaires trouvés
</td>
</tr>
<xsl:if test="not(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
<tr>
<td>
<br/>
</td>
</tr>
<tr class="eflore_avertissement">
<td align="center">
Il n'existe aucun nom vernaculaire correspondant au radical recherch&#233;.
</td>
</tr>
<tr>
<td>
<br/>
</td>
</tr>
<tr class="eflore_avertissement">
<td align="center">
<!--Lien vers le site de test de Tela-Botanica-->
<!--Cliquer <a href="http://test.tela-botanica.org/eflore" target="_top">ICI</a> pour retourner au formulaire principal de l'Index.-->
<!--Lien vers le site officiel de Tela-Botanica-->
Cliquer <a href="http://www.tela-botanica.org/eflore" target="_top" onclick="history.back();return false;">ICI</a> pour retourner au formulaire principal de l'Index.
</td>
</tr>
<tr>
<td>
<br/>
<br/>
</td>
</tr>
</xsl:if>
<xsl:if test="boolean(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
<xsl:apply-templates select="LISTE_NOMS_VERNACULAIRES"/>
</xsl:if>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
<tr class="insTitle1">
<td>
Cliquer sur un des noms vernaculaires pour afficher la fiche du taxon correspondante.
</td>
</tr>
<tr>
<td>
&#032;
</td>
</tr>
<tr class="texte_tb">
<td>
<table border="0" width="*" cellpading="0" cellspacing="0">
<tr class="eflore_commentaire" >
<td width="70" align="left">
Langue / Pays
</td>
<td align="center" width="130">
Nom vernaculaire
</td>
<td align="left" width="*">
Nom latin du taxon correspondant
</td>
</tr>
<xsl:apply-templates select="ASSOCIATION_NOM_VERNACULAIRE_TAXON"/>
</table>
</td>
</tr>
</xsl:template>
 
<xsl:template match="ASSOCIATION_NOM_VERNACULAIRE_TAXON">
<tr class="texte_tb" >
<td width="70">
<xsl:attribute name="style">text-align : left;</xsl:attribute>
<li>
<xsl:value-of select="NOM_VERNACULAIRE/@langue"/>
<xsl:text> / </xsl:text>
<xsl:value-of select="NOM_VERNACULAIRE/@pays"/>
<xsl:text> : </xsl:text>
</li>
</td>
<td width="130" align="left" >
<xsl:choose>
<xsl:when test="boolean(NOM_TAXON_VALIDE/NOM_TAXON)">
<a>
<xsl:attribute name="style">text-decoration: none; font-weight: bolder;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="./NOM_TAXON_VALIDE/NOM_TAXON/@numnom" /></xsl:attribute>
<xsl:apply-templates select="NOM_VERNACULAIRE"/>
</a>
</xsl:when>
<xsl:when test="not(boolean(NOM_TAXON_VALIDE/NOM_TAXON))">
<xsl:apply-templates select="NOM_VERNACULAIRE"/>
</xsl:when>
</xsl:choose>
</td>
<td width="*">
<xsl:attribute name="style">text-align : left;</xsl:attribute>
<xsl:apply-templates select="./NOM_TAXON_VALIDE"/>
</td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_VERNACULAIRE">
<xsl:value-of select="."/>
</xsl:template>
 
<xsl:template match="NOM_TAXON_VALIDE">
<xsl:apply-templates select="NOM_TAXON" />
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<xsl:apply-templates select="NOM" />
</xsl:template>
 
<xsl:template match="NOM">
<b>
<xsl:value-of select="@type"/>
</b>
<i>
<xsl:value-of select="."/>
</i>
<xsl:if test="position() = last()">
&#160;
<xsl:value-of select="@auteur"/>
</xsl:if>
</xsl:template>
 
</xsl:stylesheet>