Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 136 Rev 325
Line 517... Line 517...
517
		$champBdd = $this->trouverChampBddCorrespondant($champApi);
517
		$champBdd = $this->trouverChampBddCorrespondant($champApi);
518
		if ($this->parametres['retour.format'] == 'min') {
518
		if ($this->parametres['retour.format'] == 'min') {
519
			if ($champApi == 'nom_sci') {
519
			if ($champApi == 'nom_sci') {
520
				$valeur = $valeur.$this->ajouterCompositionNom($this->resultat_req);
520
				$valeur = $valeur.$this->ajouterCompositionNom($this->resultat_req);
521
			}
521
			}
-
 
522
			if ($champApi == 'nom_sci_html') {
-
 
523
				$valeur = $valeur.$this->ajouterCompositionNom($this->resultat_req, 'htm');
-
 
524
			}
522
			$this->table_retour[$champBdd] = $valeur;
525
			$this->table_retour[$champBdd] = $valeur;
523
		} else {
526
		} else {
524
			$this->afficherToutesLesInfos($champBdd, $valeur);
527
			$this->afficherToutesLesInfos($champBdd, $valeur);
525
		}
528
		}
526
	}
529
	}
Line 549... Line 552...
549
 
552
 
550
		} elseif ($this->correspondAUnCode($nom_champ_api)) {
553
		} elseif ($this->correspondAUnCode($nom_champ_api)) {
551
			preg_match('/^([^.]+)(?:\.code)?$/', $nom_champ_api, $match);
554
			preg_match('/^([^.]+)(?:\.code)?$/', $nom_champ_api, $match);
Line -... Line 555...
-
 
555
			$this->afficherInfosPrecises($match[1], 'code,signification,href', $valeur);
-
 
556
 
552
			$this->afficherInfosPrecises($match[1], 'code,signification,href', $valeur);
557
		} elseif ($nom_champ_api == 'nom_sci_html') {
553
 
558
			$this->table_retour[$nom_champ_api] = $valeur.$this->ajouterCompositionNom($this->resultat_req, 'htm');
554
		} elseif ($nom_champ_api != 'nom_sci') {
559
		}elseif ($nom_champ_api != 'nom_sci') {
555
			$this->table_retour[$nom_champ_api] = $valeur;
560
			$this->table_retour[$nom_champ_api] = $valeur;
Line 556... Line 561...
556
		}
561
		}
Line 699... Line 704...
699
		return $nom;
704
		return $nom;
700
	}
705
	}
Line 701... Line 706...
701
 
706
 
702
	/** Permet de retourner une chaine de caractère composée des parametres du nom (ns.structure : annnée, auteur,
707
	/** Permet de retourner une chaine de caractère composée des parametres du nom (ns.structure : annnée, auteur,
703
	 * bibilio et addendum). A ajouter au nom scientifique */
708
	 * bibilio et addendum). A ajouter au nom scientifique */
-
 
709
	public function ajouterCompositionNom($tab_res, $format = '') {
704
	public function ajouterCompositionNom($tab_res) {
710
		$format = ($format == '') ? $this->parametres['ns.format'] : $format;
705
		$nom = '';
711
		$nom = '';
706
		if (isset($this->compo_nom)) {
-
 
707
 
-
 
708
 
712
		if (isset($this->compo_nom)) {
709
			if ($this->parametres['ns.format'] == 'htm') {
713
			if ($format == 'htm') {
710
				$format = array(
714
				$format = array(
711
					'au' => '<span class="auteur">%s</span>',
715
					'au' => '<span class="auteur">%s</span>',
712
					'an' => '[<span class="annee">%s</span>]',
716
					'an' => '[<span class="annee">%s</span>]',
713
					'an_bib' => '[<span class="annee">%s</span>, <span class="biblio">%s</span>]',
717
					'an_bib' => '[<span class="annee">%s</span>, <span class="biblio">%s</span>]',