Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 324 → Rev 325

/trunk/services/modules/0.1/bdtfx/CommunNomsTaxons.php
519,6 → 519,9
if ($champApi == 'nom_sci') {
$valeur = $valeur.$this->ajouterCompositionNom($this->resultat_req);
}
if ($champApi == 'nom_sci_html') {
$valeur = $valeur.$this->ajouterCompositionNom($this->resultat_req, 'htm');
}
$this->table_retour[$champBdd] = $valeur;
} else {
$this->afficherToutesLesInfos($champBdd, $valeur);
551,7 → 554,9
preg_match('/^([^.]+)(?:\.code)?$/', $nom_champ_api, $match);
$this->afficherInfosPrecises($match[1], 'code,signification,href', $valeur);
 
} elseif ($nom_champ_api != 'nom_sci') {
} elseif ($nom_champ_api == 'nom_sci_html') {
$this->table_retour[$nom_champ_api] = $valeur.$this->ajouterCompositionNom($this->resultat_req, 'htm');
}elseif ($nom_champ_api != 'nom_sci') {
$this->table_retour[$nom_champ_api] = $valeur;
}
}
701,12 → 706,11
 
/** Permet de retourner une chaine de caractère composée des parametres du nom (ns.structure : annnée, auteur,
* bibilio et addendum). A ajouter au nom scientifique */
public function ajouterCompositionNom($tab_res) {
public function ajouterCompositionNom($tab_res, $format = '') {
$format = ($format == '') ? $this->parametres['ns.format'] : $format;
$nom = '';
if (isset($this->compo_nom)) {
 
 
if ($this->parametres['ns.format'] == 'htm') {
if ($format == 'htm') {
$format = array(
'au' => '<span class="auteur">%s</span>',
'an' => '[<span class="annee">%s</span>]',