Subversion Repositories eFlore/Archives.eflore-consultation-v1

Rev

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

Rev 2 Rev 8
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: eflore_transfo_xslt.inc.php,v 1.1 2005-05-24 15:57:48 jpm Exp $
24
// CVS : $Id: eflore_transfo_xslt.inc.php,v 1.2 2005-06-01 18:26:21 jpm Exp $
25
/**
25
/**
26
* Réalisation de la transfo XSL du XML d'eFlore.
26
* Réalisation de la transfo XSL du XML d'eFlore.
27
*
27
*
28
*@package eFlore
28
*@package eFlore
29
*@subpackage Ancien
29
*@subpackage Ancien
30
//Auteur original :
30
//Auteur original :
31
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
31
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@author        Aucun
33
*@author        Aucun
34
*@copyright     Tela-Botanica 2000-2005
34
*@copyright     Tela-Botanica 2000-2005
35
*@version       $Revision: 1.1 $ $Date: 2005-05-24 15:57:48 $
35
*@version       $Revision: 1.2 $ $Date: 2005-06-01 18:26:21 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
Line 69... Line 69...
69
        $xslt = 'listenomsvernaculaires.xsl';
69
        $xslt = 'listenomsvernaculaires.xsl';
70
        break;
70
        break;
71
}
71
}
72
(isset($_GET['servicexml'])) ? $xml = $_GET['servicexml'] : '';
72
(isset($_GET['servicexml'])) ? $xml = $_GET['servicexml'] : '';
73
(isset($_GET['xslt'])) ? $xslt = $_GET['xslt'] : '';
73
(isset($_GET['xslt'])) ? $xslt = $_GET['xslt'] : '';
74
//Nous recherchons le navigateur utilisé par le client. S'il s'agit de Netscape 4.x nous
-
 
75
//lui attribuons une nouvelle feuille xslt pour la fiche identité taxon.
-
 
76
$navigateur = get_browser($_SERVER['HTTP_USER_AGENT']);
-
 
77
if ( is_object($navigateur) && $navigateur->browser == 'Netscape' && $navigateur->majorver == '4' && $xslt == 'identitetaxon.xsl') {
-
 
78
    $xslt = 'identitetaxon_nn4.xsl';
-
 
79
}
-
 
Line 80... Line 74...
80
 
74
 
81
$radical = rawurlencode($radical);
75
$radical = rawurlencode($radical);
82
$param = '?radical='.$radical;
76
$param = '?radical='.$radical;
83
if (!empty($numclass)) $param .= '&numclass='.$numclass;
77
if (!empty($numclass)) $param .= '&numclass='.$numclass;