From 158e3eb2df95331af780ebd52385c09d5ecb2877 Mon Sep 17 00:00:00 2001 From: aina-esokia Date: Thu, 10 Jan 2019 18:29:47 +0400 Subject: [PATCH 1/6] port fix preview pdf in pdfjs --- lib/classes/media/subdef.php | 2 ++ templates/web/common/thumbnail.html.twig | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/classes/media/subdef.php b/lib/classes/media/subdef.php index 45eaa4cdbe..53b8b290bc 100644 --- a/lib/classes/media/subdef.php +++ b/lib/classes/media/subdef.php @@ -89,6 +89,7 @@ class media_subdef extends media_abstract implements cache_cacheableInterface const TYPE_AUDIO_MP3 = 'AUDIO_MP3'; const TYPE_IMAGE = 'IMAGE'; const TYPE_NO_PLAYER = 'UNKNOWN'; + const TYPE_PDF = 'PDF'; /* * Technical datas types constants @@ -407,6 +408,7 @@ class media_subdef extends media_abstract implements cache_cacheableInterface { static $types = [ 'application/x-shockwave-flash' => self::TYPE_FLEXPAPER, + 'application/pdf' => self::TYPE_PDF, 'audio/mp3' => self::TYPE_AUDIO_MP3, 'audio/mpeg' => self::TYPE_AUDIO_MP3, 'image/gif' => self::TYPE_IMAGE, diff --git a/templates/web/common/thumbnail.html.twig b/templates/web/common/thumbnail.html.twig index b6529ec052..45a31dfb05 100644 --- a/templates/web/common/thumbnail.html.twig +++ b/templates/web/common/thumbnail.html.twig @@ -19,7 +19,7 @@ src="{{ url('alchemy_embed_view', {url: url|trim, autoplay: autoplay|default('false') }) }}" frameborder="0" allowfullscreen> - {% elseif record_type == 'FLEXPAPER' %} + {% elseif record_type == 'FLEXPAPER' or record_type == 'PDF' %}
Date: Fri, 25 Jan 2019 15:37:11 +0400 Subject: [PATCH 2/6] update alchemy/embed-bundle to 0.3.8 --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 80ccaa0827..8a41ac8dfc 100644 --- a/composer.lock +++ b/composer.lock @@ -131,16 +131,16 @@ }, { "name": "alchemy/embed-bundle", - "version": "0.3.7", + "version": "0.3.8", "source": { "type": "git", "url": "https://github.com/alchemy-fr/embed-bundle.git", - "reference": "ce7408c7a47387eed3df2a743577d6e0e25f991f" + "reference": "8a9699bc51e2b2997ccfd357bb2892f3702c33ef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/alchemy-fr/embed-bundle/zipball/ce7408c7a47387eed3df2a743577d6e0e25f991f", - "reference": "ce7408c7a47387eed3df2a743577d6e0e25f991f", + "url": "https://api.github.com/repos/alchemy-fr/embed-bundle/zipball/8a9699bc51e2b2997ccfd357bb2892f3702c33ef", + "reference": "8a9699bc51e2b2997ccfd357bb2892f3702c33ef", "shasum": "" }, "require-dev": { @@ -178,10 +178,10 @@ ], "description": "Embed resources bundle", "support": { - "source": "https://github.com/alchemy-fr/embed-bundle/tree/0.3.7", + "source": "https://github.com/alchemy-fr/embed-bundle/tree/0.3.8", "issues": "https://github.com/alchemy-fr/embed-bundle/issues" }, - "time": "2017-05-30T13:18:21+00:00" + "time": "2019-01-11T10:35:41+00:00" }, { "name": "alchemy/geonames-api-consumer", From bde79d64e1f449a263b37f1b4d93aa28e761a100 Mon Sep 17 00:00:00 2001 From: Xavier Rousset Date: Mon, 18 Feb 2019 17:46:10 +0100 Subject: [PATCH 3/6] PHRAS-1802 Update default vagrant php version --- Vagrantfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index bca737d028..4e71464ef1 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -35,7 +35,7 @@ else if which('ifconfig') end $php = [ "5.6", "7.0", "7.1", "7.2" ] -$phpVersion = ENV['phpversion'] ? ENV['phpversion'] : "5.6"; +$phpVersion = ENV['phpversion'] ? ENV['phpversion'] : "7.0"; unless Vagrant.has_plugin?('vagrant-hostmanager') raise "vagrant-hostmanager is not installed! Please run\n vagrant plugin install vagrant-hostmanager\n\n" @@ -166,4 +166,4 @@ Vagrant.configure("2") do |config| config.vm.synced_folder "./", "/vagrant" end -end \ No newline at end of file +end From 09e688f09c8d326548fa4ef24cfbf212fbcaa1ad Mon Sep 17 00:00:00 2001 From: Anthony C Date: Mon, 14 Jan 2019 12:32:47 +0100 Subject: [PATCH 4/6] Translated using Weblate (French) Currently translated at 92.7% (2204 of 2376 strings) --- resources/locales/messages.fr.xlf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/locales/messages.fr.xlf b/resources/locales/messages.fr.xlf index fb2161c165..d3cf38a7e6 100644 --- a/resources/locales/messages.fr.xlf +++ b/resources/locales/messages.fr.xlf @@ -636,7 +636,7 @@ Activate highlight - Activer le surlignage + Activer le surlignage (beta). Impacte les performances de recherche SearchEngine/Elastic/ElasticsearchSettingsFormType.php web/setup/step2.html.twig From be92a5738274407f6e434a0159f072889c6a6a12 Mon Sep 17 00:00:00 2001 From: Anthony C Date: Tue, 22 Jan 2019 12:11:08 +0100 Subject: [PATCH 5/6] Translated using Weblate (French) Currently translated at 92.9% (2209 of 2376 strings) --- resources/locales/messages.fr.xlf | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/resources/locales/messages.fr.xlf b/resources/locales/messages.fr.xlf index d3cf38a7e6..060db22cba 100644 --- a/resources/locales/messages.fr.xlf +++ b/resources/locales/messages.fr.xlf @@ -853,9 +853,9 @@ actions/Feedback/list.html.twig actions/Feedback/list.html.twig - + All these conditions - All these conditions + Toutes les conditions web/prod/index.html.twig @@ -1315,9 +1315,9 @@ OBSOLETE Autoriser *Phraseanet Navigator* Form/Configuration/APIClientsFormType.php - + Authorize Adobe cc Plugin to connect. - Authorize Adobe cc Plugin to connect. + Autoriser la connexion du plugin Adobe CC Form/Configuration/APIClientsFormType.php @@ -1939,9 +1939,9 @@ Consulter en ligne les prérequis et la configuration du serveur Web web/setup/step2.html.twig - + Contains - Contains + Contient web/prod/index.html.twig @@ -5912,9 +5912,9 @@ Pour les utilisateurs authentifiés, la demande de validation est également dis Voir les résultats de la demande de validation Notification/Mail/MailInfoValidationDone.php - + Select a field - Select a field + Choisir un champ web/prod/index.html.twig @@ -7196,9 +7196,9 @@ Pour les utilisateurs authentifiés, la demande de validation est également dis Suggestion d'utilisateurs prod/actions/Push.html.twig - + Utilisation prevue: - Utilisation prévue: + Utilisation prévue : prod/orders/order_item.html.twig @@ -10984,9 +10984,9 @@ Si vous recevez cet e-mail sans l'avoir sollicité, merci de l'ignorer ou de le Vous ne possédez pas les autorisations d'accès requises sur les documents pour effectuer cette action. Controller/Prod/MoveCollectionController.php - + prod::advancesearch:tooltips:datefield_restriction_explanation - prod::advancesearch:tooltips:datefield_restriction_explanation + Limiter l'affichage des résultats à des dates web/prod/index.html.twig From 2da6ad462986aa45aa93502663e8fad964b37254 Mon Sep 17 00:00:00 2001 From: Nicolas Maillat Date: Thu, 21 Feb 2019 13:44:10 +0100 Subject: [PATCH 6/6] Translated using Weblate (French) Currently translated at 92.9% (2208 of 2376 strings) --- resources/locales/messages.fr.xlf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/locales/messages.fr.xlf b/resources/locales/messages.fr.xlf index 060db22cba..b0123c405e 100644 --- a/resources/locales/messages.fr.xlf +++ b/resources/locales/messages.fr.xlf @@ -577,9 +577,9 @@ Accès aux sous résolutions web/admin/editusers.html.twig - + Access to the above bases constitutes acceptance of the following Terms of Use (TOU). - Pour accéder aux bases ci-dessus, vous devez d'abord accepter les conditions générales d'utilisation. + L'accès aux ressources de cette base implique l'acceptation des Conditions générales d'utilisation suivantes : web/account/access.html.twig