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

Serment du docteur

parent f46863de
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ Journal des modifications
- [FIX] Correction paramètre de route erronée + suppression bouton inactif 
- [FIX] Correction du bug de comptage d'année si pas de thèse
- [FIX] Ouverture de l'acces aux gestionnaires d'UR sur les popositions de soutenance

5.2.6
-----
- Déclaration des membres du comite de suivi individuel
+18 −0
Original line number Diff line number Diff line
@@ -36,4 +36,22 @@ comment on table doctorant_compl is 'Table obsolète conservée un temps';
alter table doctorant_compl rename to z_doctorant_compl;

alter table step_star_log add tag varchar(64);

-- ajout pour le serment du docteur
INSERT INTO unicaen_renderer_macro (code, description, variable_name, methode_name) VALUES ('These#Discipline', '<p>Affiche le libellé de la discipline associée à la thèse</p>', 'these', 'getLibelleDiscipline');
INSERT INTO unicaen_renderer_template (code, description, document_type, document_sujet, document_corps, document_css) VALUES ('SERMENT_DU_DOCTEUR', '<p>Texte du serment du doctorant</p>', 'pdf', 'serment_du_docteur.pdf', '<h1>Serment du docteur</h1>
<div class="description" style="color: #333333; font-family: Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
<div class="wiki">
<p>En présence de mes pairs.</p>
<p>« Parvenu(e) à l''issue de mon doctorat en<em> VAR[These#Discipline]</em>, et ayant ainsi pratiqué, dans ma quête du savoir, l''exercice d''une recherche scientifique exigeante, en cultivant la rigueur intellectuelle, la réflexivité éthique et dans le respect des principes de l''intégrité scientifique, je m''engage, pour ce qui dépendra de moi, dans la suite de ma carrière professionnelle quel qu''en soit le secteur ou le domaine d''activité, à maintenir une conduite intègre dans mon rapport au savoir, mes méthodes et mes résultats. »</p>
<h1>Doctor''s Oath</h1>
<p>In the presence of my peers.</p>
<p>"Having completed my doctorate in<em> VAR[These#Discipline]</em>, and having thus practiced, in my quest for knowledge, the exercise of a demanding scientific research research, cultivating intellectual rigor, ethical reflexivity and respect for the principles of scientific integrity, I commit myself, for the sake of scientific integrity, I  commit myself, for what will depend on me, in the continuation of my professional career whatever the sector or the field or field of activity, to maintain   integrity in my relationship to knowledge, my methods and my results."</p>
</div>
</div>
<p><br class="Apple-interchange-newline" /><br /></p>
<p> </p>
<p> </p>', null);


```
+12 −0
Original line number Diff line number Diff line
@@ -3,10 +3,13 @@
namespace Soutenance\Controller;

use Application\Controller\AbstractController;
use Fichier\Service\Fichier\FichierStorageServiceAwareTrait;
use Information\Service\InformationServiceAwareTrait;
use Soutenance\Provider\Template\PdfTemplates;
use Soutenance\Service\Avis\AvisServiceAwareTrait;
use Soutenance\Service\Exporter\SermentExporter\SermentPdfExporter;
use Structure\Service\Etablissement\EtablissementServiceAwareTrait;
use Structure\Service\Structure\StructureServiceAwareTrait;
use These\Entity\Db\Acteur;
use Individu\Entity\Db\Individu;
use Individu\Entity\Db\IndividuRole;
@@ -54,6 +57,8 @@ class PropositionController extends AbstractController
    use AvisServiceAwareTrait;
    use EcoleDoctoraleServiceAwareTrait;
    use EvenementServiceAwareTrait;
    use EtablissementServiceAwareTrait;
    use FichierStorageServiceAwareTrait;
    use InformationServiceAwareTrait;
    use JustificatifServiceAwareTrait;
    use MembreServiceAwareTrait;
@@ -769,11 +774,18 @@ class PropositionController extends AbstractController
            'these' => $these,
        ];
        $rendu = $this->getRenduService()->generateRenduByTemplateCode(PdfTemplates::SERMENT_DU_DOCTEUR, $vars);
        $comue = $this->etablissementService->fetchEtablissementComue();

        $cheminLogoComue = ($comue)?$this->fichierStorageService->getFileForLogoStructure($comue->getStructure()):null;
        $cheminLogoEtablissement = ($these->getEtablissement())?$this->fichierStorageService->getFileForLogoStructure($these->getEtablissement()->getStructure()):null;

        $exporter = new SermentPdfExporter($this->renderer, 'A4');
        $exporter->getMpdf()->SetMargins(0,0,50);
        $exporter->setVars([
            'texte' => $rendu->getCorps(),
            'comue' => $comue,
            'cheminLogoComue' => $cheminLogoComue,
            'cheminLogoEtablissement' => $cheminLogoEtablissement,
        ]);
        $exporter->export($these->getId() . '_serment.pdf');
        exit;
+8 −0
Original line number Diff line number Diff line
@@ -2,11 +2,13 @@

namespace Soutenance\Controller;

use Fichier\Service\Fichier\FichierStorageService;
use Information\Controller\InformationController;
use Information\Service\InformationService;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Soutenance\Service\Avis\AvisService;
use Structure\Service\Etablissement\EtablissementService;
use These\Service\Acteur\ActeurService;
use Structure\Service\EcoleDoctorale\EcoleDoctoraleService;
use Application\Service\Role\RoleService;
@@ -45,8 +47,10 @@ class PropositionControllerFactory
         * @var ActeurService $acteurService
         * @var AvisService $avisService
         * @var EcoleDoctoraleService $ecoleDoctoraleService
         * @var EtablissementService $etablissementService
         * @var InformationService $informationService
         * @var EvenementService $evenementService
         * @var FichierStorageService $fichierStorageService
         * @var MembreService $membreService
         * @var NotifierSoutenanceService $notificationSoutenanceService
         * @var PropositionService $propositionService
@@ -60,7 +64,9 @@ class PropositionControllerFactory
        $acteurService = $container->get(ActeurService::class);
        $avisService = $container->get(AvisService::class);
        $ecoleDoctoraleService = $container->get(EcoleDoctoraleService::class);
        $etablissementService = $container->get(EtablissementService::class);
        $evenementService = $container->get(EvenementService::class);
        $fichierStorageService = $container->get(FichierStorageService::class);
        $informationService = $container->get(InformationService::class);
        $membreService = $container->get(MembreService::class);
        $notificationSoutenanceService = $container->get(NotifierSoutenanceService::class);
@@ -102,7 +108,9 @@ class PropositionControllerFactory
        $controller->setActeurService($acteurService);
        $controller->setAvisService($avisService);
        $controller->setEcoleDoctoraleService($ecoleDoctoraleService);
        $controller->setEtablissementService($etablissementService);
        $controller->setEvenementService($evenementService);
        $controller->setFichierStorageService($fichierStorageService);
        $controller->setInformationService($informationService);
        $controller->setMembreService($membreService);
        $controller->setNotifierSoutenanceService($notificationSoutenanceService);
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ class SermentPdfExporter extends PdfExporter
    public function export($filename = null, $destination = self::DESTINATION_BROWSER, $memoryLimit = null) : string
    {
        $this->addBodyScript('serment.phtml', false, $this->vars);
        $this->setHeaderScript('header.phtml');
        $this->setHeaderScript('header.phtml', null, $this->vars);
        $this->setFooterScript('footer.phtml');
        return PdfExporter::export($filename, $destination, $memoryLimit);
    }
Loading