Loading CHANGELOG.md +0 −2 Original line number Diff line number Diff line Loading @@ -19,8 +19,6 @@ Journal des modifications 1.1.4 (03/04/2019) ------------------ ## 1.1.4 (03/04/2019) ### Nouveautés - Ouverture à toutes personnes identifiées de la consultation de la liste des thèses, à la recherche de thèse et à la Loading module/Application/src/Application/Controller/TheseController.php +1 −4 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ use Application\Entity\Db\Variable; use Application\Entity\Db\VersionFichier; use Application\Entity\Db\WfEtape; use Application\Filter\IdifyFilterAwareTrait; use Application\Filter\TitreFormatter; use Application\Form\AttestationTheseForm; use Application\Form\ConformiteFichierForm; use Application\Form\DiffusionTheseForm; Loading Loading @@ -1379,9 +1378,7 @@ class TheseController extends AbstractController if ($description === null) { $description = new MetadonneeThese(); $titreFormatter = new TitreFormatter(); $titre = $titreFormatter->doFormat($these); $description->setTitre($titre); $description->setTitre($these->getTitre()); } $form->bind($description); Loading module/Application/src/Application/Entity/Db/These.php +0 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ namespace Application\Entity\Db; use Application\Filter\TitreApogeeFilter; use Application\Filter\TitreFormatter; use Assert\Assertion; use DateTime; use Doctrine\Common\Collections\ArrayCollection; Loading Loading @@ -314,8 +313,6 @@ class These implements HistoriqueAwareInterface, ResourceInterface */ public function getTitre() { // $titreFormatter = new TitreFormatter(); // $titre = $titreFormatter->doFormat($this->titre); return $this->getTitreFilter()->filter($this->titre); } Loading module/Application/src/Application/Filter/TitreApogeeFilter.php +2 −7 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ namespace Application\Filter; use Zend\Filter\AbstractFilter; use Zend\Filter\Exception; /** * Class TitreApogeeFilter Loading Loading @@ -73,7 +72,7 @@ class TitreApogeeFilter extends AbstractFilter "ì" => "ˣ", //739 "¡" => "⁺", "ñ" => "⁻", "«" => "₀", // "«" => "₀", // commenté pour respecter l'utilisation possible dans Apogée de "«" "_" => "₁", "ú" => "₂", "~" => "₃", Loading @@ -93,7 +92,7 @@ class TitreApogeeFilter extends AbstractFilter "£" => "β", "¶" => "γ", "·" => "δ", "»" => "ε", // "»" => "ε", // commenté pour respecter l'utilisation possible dans Apogée de "»" "¼" => "ζ", "½" => "η", "¾" => "θ", Loading Loading @@ -143,10 +142,6 @@ class TitreApogeeFilter extends AbstractFilter "°" => "°", "ö" => "ö", "ã" => "ã", //semble pas fonctionner ... "₀" => "«", "ε" => "«", ]; return strtr($strin, $mapping); Loading module/Application/src/Application/Filter/TitreFormatter.phpdeleted 100644 → 0 +0 −32 Original line number Diff line number Diff line <?php namespace Application\Filter; use Application\Entity\Db\These; use Zend\Filter\AbstractFilter; class TitreFormatter extends AbstractFilter { /** Format n array of acteurs * @param These $these * @return string le titre reformatté de la thèse */ public function doFormat($these) { // $text = ""; // if ($these instanceof These) $text = $these->getTitre(); // else $text = $these; $result = str_replace(["₀","ε"],["«","»"], $these->getTitre()); return $result; } public function filter($value) { // TODO: Implement filter() method. return null; } } No newline at end of file Loading
CHANGELOG.md +0 −2 Original line number Diff line number Diff line Loading @@ -19,8 +19,6 @@ Journal des modifications 1.1.4 (03/04/2019) ------------------ ## 1.1.4 (03/04/2019) ### Nouveautés - Ouverture à toutes personnes identifiées de la consultation de la liste des thèses, à la recherche de thèse et à la Loading
module/Application/src/Application/Controller/TheseController.php +1 −4 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ use Application\Entity\Db\Variable; use Application\Entity\Db\VersionFichier; use Application\Entity\Db\WfEtape; use Application\Filter\IdifyFilterAwareTrait; use Application\Filter\TitreFormatter; use Application\Form\AttestationTheseForm; use Application\Form\ConformiteFichierForm; use Application\Form\DiffusionTheseForm; Loading Loading @@ -1379,9 +1378,7 @@ class TheseController extends AbstractController if ($description === null) { $description = new MetadonneeThese(); $titreFormatter = new TitreFormatter(); $titre = $titreFormatter->doFormat($these); $description->setTitre($titre); $description->setTitre($these->getTitre()); } $form->bind($description); Loading
module/Application/src/Application/Entity/Db/These.php +0 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ namespace Application\Entity\Db; use Application\Filter\TitreApogeeFilter; use Application\Filter\TitreFormatter; use Assert\Assertion; use DateTime; use Doctrine\Common\Collections\ArrayCollection; Loading Loading @@ -314,8 +313,6 @@ class These implements HistoriqueAwareInterface, ResourceInterface */ public function getTitre() { // $titreFormatter = new TitreFormatter(); // $titre = $titreFormatter->doFormat($this->titre); return $this->getTitreFilter()->filter($this->titre); } Loading
module/Application/src/Application/Filter/TitreApogeeFilter.php +2 −7 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ namespace Application\Filter; use Zend\Filter\AbstractFilter; use Zend\Filter\Exception; /** * Class TitreApogeeFilter Loading Loading @@ -73,7 +72,7 @@ class TitreApogeeFilter extends AbstractFilter "ì" => "ˣ", //739 "¡" => "⁺", "ñ" => "⁻", "«" => "₀", // "«" => "₀", // commenté pour respecter l'utilisation possible dans Apogée de "«" "_" => "₁", "ú" => "₂", "~" => "₃", Loading @@ -93,7 +92,7 @@ class TitreApogeeFilter extends AbstractFilter "£" => "β", "¶" => "γ", "·" => "δ", "»" => "ε", // "»" => "ε", // commenté pour respecter l'utilisation possible dans Apogée de "»" "¼" => "ζ", "½" => "η", "¾" => "θ", Loading Loading @@ -143,10 +142,6 @@ class TitreApogeeFilter extends AbstractFilter "°" => "°", "ö" => "ö", "ã" => "ã", //semble pas fonctionner ... "₀" => "«", "ε" => "«", ]; return strtr($strin, $mapping); Loading
module/Application/src/Application/Filter/TitreFormatter.phpdeleted 100644 → 0 +0 −32 Original line number Diff line number Diff line <?php namespace Application\Filter; use Application\Entity\Db\These; use Zend\Filter\AbstractFilter; class TitreFormatter extends AbstractFilter { /** Format n array of acteurs * @param These $these * @return string le titre reformatté de la thèse */ public function doFormat($these) { // $text = ""; // if ($these instanceof These) $text = $these->getTitre(); // else $text = $these; $result = str_replace(["₀","ε"],["«","»"], $these->getTitre()); return $result; } public function filter($value) { // TODO: Implement filter() method. return null; } } No newline at end of file