Line 23... |
Line 23... |
23 |
'subf.' => 'Sous-Forme',
|
23 |
'subf.' => 'Sous-Forme',
|
24 |
'f. sp.' => 'Forma species',
|
24 |
'f. sp.' => 'Forma species',
|
25 |
'proles' => 'Race prole'
|
25 |
'proles' => 'Race prole'
|
26 |
);
|
26 |
);
|
Line 27... |
Line 27... |
27 |
|
27 |
|
28 |
private $nomSciTpl = '<span class=sci>%s</span>';
|
28 |
private $nomSciTpl = '<span class="sci">%s</span>';
|
29 |
private $nomSupraGenTpl = '<span class="supra_gen">%s</span>';
|
29 |
private $nomSupraGenTpl = '<span class="supra_gen">%s</span>';
|
30 |
private $genTpl = '<span class="gen">%s</span>';
|
30 |
private $genTpl = '<span class="gen">%s</span>';
|
31 |
private $infraGenTpl = '<span class="infra-gen">%s</span>';
|
31 |
private $infraGenTpl = '<span class="infra-gen">%s</span>';
|
32 |
private $spFHTpl = '<span class="gen">%s</span> <span class="sp">%s</span>';
|
32 |
private $spFHTpl = '<span class="gen">%s</span> <span class="sp">%s</span>';
|
Line 208... |
Line 208... |
208 |
*/
|
208 |
*/
|
209 |
private function verifierHybridite($epithete, $type) {
|
209 |
private function verifierHybridite($epithete, $type) {
|
210 |
$html = '';
|
210 |
$html = '';
|
211 |
if ($epithete != '') {
|
211 |
if ($epithete != '') {
|
212 |
if (substr($epithete, 0, 2) == 'x ') {
|
212 |
if (substr($epithete, 0, 2) == 'x ') {
|
213 |
$html = ' <span class=hyb>x <span class="'.$type.'">'.str_replace('x ', '', $epithete).'</span></span>';
|
213 |
$html = ' <span class="hyb">x <span class="'.$type.'">'.str_replace('x ', '', $epithete).'</span></span>';
|
214 |
} elseif (substr($epithete, 0, 2) == '+ ') {
|
214 |
} elseif (substr($epithete, 0, 2) == '+ ') {
|
215 |
$html = ' <span class=chimere>+ <span class="'.$type.'">'.str_replace('+ ', '', $epithete).'</span></span>';
|
215 |
$html = ' <span class="chimere">+ <span class="'.$type.'">'.str_replace('+ ', '', $epithete).'</span></span>';
|
216 |
} else if (substr_count($epithete, ' x ') > 1) {
|
216 |
} else if (substr_count($epithete, ' x ') > 1) {
|
217 |
// Cas d'une formule d'hybridité comprenant des parents hybrides
|
217 |
// Cas d'une formule d'hybridité comprenant des parents hybrides
|
218 |
$html = ' '.$this->insererBaliseFormuleHyb($epithete);
|
218 |
$html = ' '.$this->insererBaliseFormuleHyb($epithete);
|
219 |
} elseif (substr_count($epithete, ' x ') == 1) {
|
219 |
} elseif (substr_count($epithete, ' x ') == 1) {
|
220 |
// Cas d'une formule d'hybridité simple
|
220 |
// Cas d'une formule d'hybridité simple
|