Commit 29f96c1f authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Utilisation du nom de famille pour les doctorants

parent 8d29d99c
Loading
Loading
Loading
Loading
+8 −1
Changes for module/Application/src/Application/Service/Fichier/FichierService.php: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -556,7 +556,14 @@ class FichierService extends BaseService
        $pdcData->setTitre($these->getTitre());
        $pdcData->setSpecialite($these->getLibelleDiscipline());
        if ($these->getEtablissement()) $pdcData->setEtablissement($these->getEtablissement()->getLibelle());
        if ($these->getDoctorant()) $pdcData->setDoctorant($these->getDoctorant()->getIndividu()->getNomComplet(false, false, false, true, true));
//        if ($these->getDoctorant()) $pdcData->setDoctorant($these->getDoctorant()->getIndividu()->getNomComplet(false, false, false, true, true));
        if ($these->getDoctorant()) {
            $nom = $these->getDoctorant()->getIndividu()->getNomPatronymique();
            if ($nom === null ) $nom = $these->getDoctorant()->getIndividu()->getNomUsuel();
            $nom = strtoupper($nom);
            $prenom = $these->getDoctorant()->getIndividu()->getPrenom1();
            $pdcData->setDoctorant($prenom. " ". $nom);
        }
        if ($these->getDateSoutenance()) $pdcData->setDate($these->getDateSoutenance()->format("d/m/Y"));

        /** cotutelle */