Loading module/Application/src/Application/Controller/TheseController.php +0 −17 Original line number Diff line number Diff line Loading @@ -2,12 +2,8 @@ namespace Application\Controller; use Application\Command\MergeCommand; use Application\Command\TruncateAndMergeCommand; use Application\Entity\Db\Attestation; use Application\Entity\Db\Diffusion; use Application\Entity\Db\Doctorant; use Application\Entity\Db\Etablissement; use Application\Entity\Db\Fichier; use Application\Entity\Db\Individu; use Application\Entity\Db\MailConfirmation; Loading @@ -15,7 +11,6 @@ use Application\Entity\Db\MetadonneeThese; use Application\Entity\Db\NatureFichier; use Application\Entity\Db\RdvBu; use Application\Entity\Db\Role; use Application\Entity\Db\Structure; use Application\Entity\Db\These; use Application\Entity\Db\TypeValidation; use Application\Entity\Db\Variable; Loading Loading @@ -54,11 +49,9 @@ use UnicaenApp\Exception\RuntimeException; use UnicaenApp\Service\EntityManagerAwareTrait; use UnicaenApp\Service\MessageCollectorAwareTrait; use UnicaenApp\Traits\MessageAwareInterface; use UnicaenApp\Util; use Zend\Form\Element\Hidden; use Zend\Form\Element\Radio; use Zend\Form\Element\Submit; use Zend\Form\Element\Text; use Zend\Form\Form; use Zend\Http\Response; use Zend\InputFilter\InputFilter; Loading Loading @@ -128,10 +121,6 @@ class TheseController extends AbstractController ->setItemCountPerPage((int)$maxi) ->setCurrentPageNumber((int)$page); $numeroEtudiantExtractor = function(Doctorant $doctorant) { return $this->sourceCodeStringHelper->removePrefixFrom($doctorant->getSourceCode()); }; return new ViewModel([ 'theses' => $paginator, 'text' => $text, Loading @@ -139,7 +128,6 @@ class TheseController extends AbstractController 'displayEtablissement' => !$etablissement, 'displayDateSoutenance' => $etatThese === These::ETAT_SOUTENUE || !$etatThese, 'etatThese' => $etatThese, 'numeroEtudiantExtractor' => $numeroEtudiantExtractor, ]); } Loading Loading @@ -227,10 +215,6 @@ class TheseController extends AbstractController $rattachements = null; if ($unite !== null) $rattachements = $this->getUniteRechercheService()->findEtablissementRattachement($unite); $numeroEtudiantExtractor = function(Doctorant $doctorant) { return $this->sourceCodeStringHelper->removePrefixFrom($doctorant->getSourceCode()); }; //TODO JP remplacer dans modifierPersopassUrl(); $urlModification = $this->url()->fromRoute('doctorant/modifier-persopass',['back' => 1, 'doctorant' => $these->getDoctorant()->getId()], [], true); Loading @@ -255,7 +239,6 @@ class TheseController extends AbstractController 'etatMailContact' => $etatMailContact, 'rattachements' => $rattachements, 'validationsDesCorrectionsEnAttente' => $validationsDesCorrectionsEnAttente, 'numeroEtudiantExtractor' => $numeroEtudiantExtractor, ]); $view->setTemplate('application/these/identite'); Loading module/Application/src/Application/Entity/Db/Doctorant.php +10 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,16 @@ class Doctorant implements DoctorantInterface, HistoriqueAwareInterface, Resourc return $this->id; } /** * Get numeroEtudiant * * @return string */ public function getNumeroEtudiant() { return $this->getIndividu()->getSupannId(); // todo: à remplacer par $this->>numeroEtudiant lorsqu'il sera importé. } /** * Set dateNaissance * Loading module/Application/view/application/these/identite.phtml +1 −2 Original line number Diff line number Diff line Loading @@ -29,7 +29,6 @@ use Application\View\Renderer\PhpRenderer; * @var string $mailContact * @var string $etatMailContact * @var Validation[] $validationsDesCorrectionsEnAttente * @var callable $numeroEtudiantExtractor * * @see TheseController::detailIdentiteAction() */ Loading Loading @@ -94,7 +93,7 @@ $financementFormatter->setDisplayAs(FinancementFormatter::DISPLAY_AS_LINE); <strong> <?php echo $this->translate("N° étudiant :"); ?> </strong> <?php echo $numeroEtudiantExtractor($these->getDoctorant()) ?> <br> <?php echo $these->getDoctorant()->getNumeroEtudiant() ?> <br> <strong> <?php echo $this->translate("Adresse électronique :"); ?> Loading module/Application/view/application/these/index.phtml +2 −3 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ use Zend\Paginator\Paginator; * @var Role $roleDirecteurThese * @var bool $displayEtablissement * @var bool $displayDateSoutenance * @var callable $numeroEtudiantExtractor * * @see \Application\Controller\TheseController::indexAction() */ Loading Loading @@ -136,7 +135,7 @@ $acteursFormatterCodirecteurs->asSeparated() <td> <span title="<?php echo $these->getTitre() ?>"> <a href="<?php echo $this->url('these/identite', ['these' => $these->getId()], [], true) ?>"> <?php echo $this->partial('application/these/partial/titre', ['these' => $these, 'useTitreThese' => true, 'numeroEtudiantExtractor' => $numeroEtudiantExtractor]) ?> <?php echo $this->partial('application/these/partial/titre', ['these' => $these, 'useTitreThese' => true]) ?> </a> </span> </td> Loading @@ -152,7 +151,7 @@ $acteursFormatterCodirecteurs->asSeparated() } ?> <td><?php echo $these->getEtatThese() ?></td> <td><?php echo $numeroEtudiantExtractor($these->getDoctorant()) ?></td> <td><?php echo $these->getDoctorant()->getNumeroEtudiant() ?></td> <td><?php echo $these->getDoctorant()->getIndividu()->getNomComplet() ?></td> <td class="acteurs"> Loading module/Application/view/application/these/partial/fiche.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ $acteursFormatter = new ActeursFormatter(); <td> <?php echo $these->getDoctorant()->getNomComplet(true, true, true) ?> (<?php echo $these->getDoctorant()->getDateNaissanceToString() ?>) <br> N°<?php echo $these->getDoctorant()->getIndividu()->getSupannId() ?> <br> N°<?php echo $these->getDoctorant()->getNumeroEtudiant() ?> <br> Nationalité: <?php echo $these->getDoctorant()->getNationalite() ?> </td> </tr> Loading Loading
module/Application/src/Application/Controller/TheseController.php +0 −17 Original line number Diff line number Diff line Loading @@ -2,12 +2,8 @@ namespace Application\Controller; use Application\Command\MergeCommand; use Application\Command\TruncateAndMergeCommand; use Application\Entity\Db\Attestation; use Application\Entity\Db\Diffusion; use Application\Entity\Db\Doctorant; use Application\Entity\Db\Etablissement; use Application\Entity\Db\Fichier; use Application\Entity\Db\Individu; use Application\Entity\Db\MailConfirmation; Loading @@ -15,7 +11,6 @@ use Application\Entity\Db\MetadonneeThese; use Application\Entity\Db\NatureFichier; use Application\Entity\Db\RdvBu; use Application\Entity\Db\Role; use Application\Entity\Db\Structure; use Application\Entity\Db\These; use Application\Entity\Db\TypeValidation; use Application\Entity\Db\Variable; Loading Loading @@ -54,11 +49,9 @@ use UnicaenApp\Exception\RuntimeException; use UnicaenApp\Service\EntityManagerAwareTrait; use UnicaenApp\Service\MessageCollectorAwareTrait; use UnicaenApp\Traits\MessageAwareInterface; use UnicaenApp\Util; use Zend\Form\Element\Hidden; use Zend\Form\Element\Radio; use Zend\Form\Element\Submit; use Zend\Form\Element\Text; use Zend\Form\Form; use Zend\Http\Response; use Zend\InputFilter\InputFilter; Loading Loading @@ -128,10 +121,6 @@ class TheseController extends AbstractController ->setItemCountPerPage((int)$maxi) ->setCurrentPageNumber((int)$page); $numeroEtudiantExtractor = function(Doctorant $doctorant) { return $this->sourceCodeStringHelper->removePrefixFrom($doctorant->getSourceCode()); }; return new ViewModel([ 'theses' => $paginator, 'text' => $text, Loading @@ -139,7 +128,6 @@ class TheseController extends AbstractController 'displayEtablissement' => !$etablissement, 'displayDateSoutenance' => $etatThese === These::ETAT_SOUTENUE || !$etatThese, 'etatThese' => $etatThese, 'numeroEtudiantExtractor' => $numeroEtudiantExtractor, ]); } Loading Loading @@ -227,10 +215,6 @@ class TheseController extends AbstractController $rattachements = null; if ($unite !== null) $rattachements = $this->getUniteRechercheService()->findEtablissementRattachement($unite); $numeroEtudiantExtractor = function(Doctorant $doctorant) { return $this->sourceCodeStringHelper->removePrefixFrom($doctorant->getSourceCode()); }; //TODO JP remplacer dans modifierPersopassUrl(); $urlModification = $this->url()->fromRoute('doctorant/modifier-persopass',['back' => 1, 'doctorant' => $these->getDoctorant()->getId()], [], true); Loading @@ -255,7 +239,6 @@ class TheseController extends AbstractController 'etatMailContact' => $etatMailContact, 'rattachements' => $rattachements, 'validationsDesCorrectionsEnAttente' => $validationsDesCorrectionsEnAttente, 'numeroEtudiantExtractor' => $numeroEtudiantExtractor, ]); $view->setTemplate('application/these/identite'); Loading
module/Application/src/Application/Entity/Db/Doctorant.php +10 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,16 @@ class Doctorant implements DoctorantInterface, HistoriqueAwareInterface, Resourc return $this->id; } /** * Get numeroEtudiant * * @return string */ public function getNumeroEtudiant() { return $this->getIndividu()->getSupannId(); // todo: à remplacer par $this->>numeroEtudiant lorsqu'il sera importé. } /** * Set dateNaissance * Loading
module/Application/view/application/these/identite.phtml +1 −2 Original line number Diff line number Diff line Loading @@ -29,7 +29,6 @@ use Application\View\Renderer\PhpRenderer; * @var string $mailContact * @var string $etatMailContact * @var Validation[] $validationsDesCorrectionsEnAttente * @var callable $numeroEtudiantExtractor * * @see TheseController::detailIdentiteAction() */ Loading Loading @@ -94,7 +93,7 @@ $financementFormatter->setDisplayAs(FinancementFormatter::DISPLAY_AS_LINE); <strong> <?php echo $this->translate("N° étudiant :"); ?> </strong> <?php echo $numeroEtudiantExtractor($these->getDoctorant()) ?> <br> <?php echo $these->getDoctorant()->getNumeroEtudiant() ?> <br> <strong> <?php echo $this->translate("Adresse électronique :"); ?> Loading
module/Application/view/application/these/index.phtml +2 −3 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ use Zend\Paginator\Paginator; * @var Role $roleDirecteurThese * @var bool $displayEtablissement * @var bool $displayDateSoutenance * @var callable $numeroEtudiantExtractor * * @see \Application\Controller\TheseController::indexAction() */ Loading Loading @@ -136,7 +135,7 @@ $acteursFormatterCodirecteurs->asSeparated() <td> <span title="<?php echo $these->getTitre() ?>"> <a href="<?php echo $this->url('these/identite', ['these' => $these->getId()], [], true) ?>"> <?php echo $this->partial('application/these/partial/titre', ['these' => $these, 'useTitreThese' => true, 'numeroEtudiantExtractor' => $numeroEtudiantExtractor]) ?> <?php echo $this->partial('application/these/partial/titre', ['these' => $these, 'useTitreThese' => true]) ?> </a> </span> </td> Loading @@ -152,7 +151,7 @@ $acteursFormatterCodirecteurs->asSeparated() } ?> <td><?php echo $these->getEtatThese() ?></td> <td><?php echo $numeroEtudiantExtractor($these->getDoctorant()) ?></td> <td><?php echo $these->getDoctorant()->getNumeroEtudiant() ?></td> <td><?php echo $these->getDoctorant()->getIndividu()->getNomComplet() ?></td> <td class="acteurs"> Loading
module/Application/view/application/these/partial/fiche.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ $acteursFormatter = new ActeursFormatter(); <td> <?php echo $these->getDoctorant()->getNomComplet(true, true, true) ?> (<?php echo $these->getDoctorant()->getDateNaissanceToString() ?>) <br> N°<?php echo $these->getDoctorant()->getIndividu()->getSupannId() ?> <br> N°<?php echo $these->getDoctorant()->getNumeroEtudiant() ?> <br> Nationalité: <?php echo $these->getDoctorant()->getNationalite() ?> </td> </tr> Loading