304,7 → 304,7 |
public function formaterId($resultat) { |
$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp'); |
$this->resultat_req = $resultat; |
|
|
foreach ($resultat as $cle => $valeur) { |
if ($valeur != '') { |
$this->afficherDonnees($cle, $valeur); |
704,8 → 704,8 |
public function ajouterCompositionNom($tab_res) { |
$nom = ''; |
if (isset($this->compo_nom)) { |
$compo_nom = null; |
$nom_complet = null; |
|
|
if ($this->parametres['ns.format'] == 'htm') { |
$format = array( |
'au' => '<span class="auteur">%s</span>', |
721,12 → 721,13 |
'bib' => '[%s]', |
'ad' => '[%s]'); |
} |
$compo_nom = array(); |
foreach ($this->compo_nom as $key => $champ) { |
if (isset($tab_res[$champ]) && !empty($tab_res[$champ])) { |
$compo_nom[$key] = $tab_res[$champ]; |
} |
} |
$this->formerNomComplet($compo_nom, $nom_complet, $format); |
$nom_complet = $this->formerNomComplet($compo_nom, $format); |
$nom = ' '.implode(' ', $nom_complet); |
} |
return rtrim($nom, ' '); |
733,7 → 734,8 |
} |
|
|
public function formerNomComplet(&$compo_nom, &$nom_complet, $format) { |
public function formerNomComplet($compo_nom, $format) { |
$nom_complet = array(); |
extract($compo_nom); |
if (isset($au)) $nom_complet[] = sprintf($format['au'], $au); |
if (isset($an)) { |