Skip to content
Snippets Groups Projects
Commit 1942181a authored by Laurent's avatar Laurent
Browse files

hotline #66056: better authors responsibilities unimarc decoding

parent 8c8fc992
Branches
Tags
3 merge requests!2464Master,!2463Hotline master,!2455Hotline#66056 bron pb responsabilites auteurs
Pipeline #3232 failed with stage
in 24 minutes and 42 seconds
......@@ -1267,19 +1267,12 @@ class Class_Notice extends Storm_Model_Abstract {
$item = explode('|', $auteur);
$nom = $item[0];
$prenom = $item[1];
$fonction = $item[2];
$fonction_pergame = $item[3];
$fonction = $fonction_pergame ? $fonction_pergame : $item[2];
if (!$codif_auteur = Class_CodifAuteur::findByLastNameFirstName($nom, $prenom))
return [];
if ($fonction_pergame)
$fonction = $fonction_pergame;
else {
if ($auteur_fonction = Class_CodifAuteurFonction::find($fonction))
$fonction = $auteur_fonction->getLibelle();
}
$label = trim($prenom . ' ' . $nom) . (($fonction) ? ' (' . $fonction . ')': '');
return $this->getReboundFieldForFacet('A'.$codif_auteur->getId(),
$label,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment