306 Commits

Author SHA1 Message Date
Andrew Nicols
0e809762d4 MDL-68697 core_h5p: Store missing translations as null 2020-05-13 16:35:41 +08:00
Sara Arjona
a42a9ad997 MDL-68227 core_h5p: localize H5P editor strings
H5P editor has a folder with all supported languages in JS files.
A mechanish has been added to let users to translate them using AMOS.
That's how the translations are managed (the order how they are processed):

- If there a JS file for a language, it's loaded.
- If a string has been translated in Moodle (they are placed in
h5plib_vXXX), it will override strings loaded from the JS file.
2020-05-12 16:39:42 +02:00
Sara Arjona
36a3a259de Merge branch 'MDL-68571-master' of git://github.com/cescobedo/moodle 2020-05-11 16:52:48 +02:00
cescobedo
444b2282f1 MDL-68571 core_h5p: Return default handler if no it has been defined 2020-05-11 16:46:27 +02:00
Jun Pataleta
d1735204c0 Merge branch 'MDL-63580-master' of git://github.com/cescobedo/moodle 2020-05-11 22:32:34 +08:00
cescobedo
db15746c2d MDL-63580 core_task: Deprecation cron_run_single_task and run_from_cli
Also we have move the functions in \tool_task\run_from_cli to \core\task\manager
and we have deprecated that class.
2020-05-11 10:53:23 +02:00
Sara Arjona
f635915137 MDL-68271 core_h5p: implement localization methods for editor
The following methods have been implemented for supporting
content-type translations:
- H5PEditorAjaxInterface.getTranslations. This method is used for
loading the "Text overrides and translations" section.
- H5peditorStorage.getLanguage. This method is used for displaying
the specific fields and messages for each content-type library.
- H5peditorStorage.getAvailableLanguages. This method is used to
get the language list displayed into the "Text overrides and
translations" section.
2020-05-08 18:18:24 +02:00
Andrew Nicols
53c06b63c5 Merge branch 'MDL-68473-master' of git://github.com/vmdef/moodle 2020-05-03 19:59:46 +08:00
Víctor Déniz Falcón
a8455b7240 MDL-68473 core_h5p: moved fixture to anonymous class 2020-05-01 14:25:11 +01:00
Victor Deniz Falcon
e4127c9262 MDL-68473 core_h5p: fixed import of moodleform class 2020-05-01 13:59:16 +01:00
Helen Foster
1fce3f52ac MDL-68434 lang: Import fixed English strings (en_fix)
Significant string changes:

* pluginnamesummary,qtype_ddimageortext and
  pluginnamesummary,qtype_ddmarker - Note about the question type not
  being accessible to visually impaired users

* addresourceoractivity,core - Removing 'resource' as the new activity
  chooser doesn't have resource types separated
2020-04-28 14:01:20 +02:00
Sara Arjona
58f85a6c6e MDL-67795 contentbank: clean all the content when uninstalling plugin 2020-04-23 13:09:40 +02:00
Sara Arjona
153c45625d MDL-67795 h5p: move methods from player to helper 2020-04-23 13:09:40 +02:00
cescobedo
e84ce938d9 MDL-67095 core_h5p: Prevent synchronous access to save the same h5p
When deploying a new H5P resource we need to ensure that
we don't start deploying the same H5P in another thread
(e.g. for another session/user).
2020-04-17 09:14:18 +02:00
Eloy Lafuente (stronk7)
6f9a84348c NOBUG: Fixed SVG browser compatibility 2020-04-16 19:33:44 +02:00
Sara Arjona
0a05ca3604 MDL-67788 h5p: fix issue for non logged-in users 2020-04-16 15:50:10 +02:00
Sara Arjona
2ac1d9aedf MDL-67814 h5p: recover missed xAPI settings 2020-04-16 09:36:05 +01:00
Adrian Greeve
1e33203b82 MDL-67814 core_h5p: Revert of eslintignore change
Also has update to fix js global properly.
2020-04-16 14:02:25 +08:00
Víctor Déniz Falcón
eeb90e7e70 MDL-67814 core_h5p: added renderer and editor classes 2020-04-16 11:29:35 +08:00
Víctor Déniz Falcón
8c325d3feb MDL-67814 core_h5p: modifications to interact with the Hub selector
The HUB selector allows you to install/update H5P content types from
the H5P editor. We have moved these features to the Content Bank, so we
will not show the HUB selector in the H5P editor.
2020-04-16 11:29:35 +08:00
Víctor Déniz Falcón
a0ce8f87b3 MDL-67814 core_h5p: moved common methods from player to helper class 2020-04-16 11:29:35 +08:00
Víctor Déniz Falcón
6da050d72a MDL-67814 core_h5p: implemented H5P Core/Editor library interfaces 2020-04-16 11:29:35 +08:00
Víctor Déniz Falcón
8d702491bc MDL-67814 core_h5p: added H5P Editor PHP library
Added the third party libray "H5P Editor PHP to the v124 h5plib plugin.
2020-04-16 11:27:49 +08:00
Ferran Recio
ad9589f64c MDL-67788 core_h5p: add evaluable h5p to fixtures 2020-04-13 12:39:58 +02:00
Ferran Recio
8685c313e0 MDL-67788 core_h5p: add tracking to player 2020-04-13 12:39:58 +02:00
cescobedo
c667e6064a MDL-68285 core_h5p: Fix unused variables and undeclared globals 2020-03-30 09:55:32 +02:00
cescobedo
254add38f2 MDL-68068 core_h5p: Replace $_SESSION by $SESSION
The third-party library H5P has some references to  instead of Moodle's.
That implies that the information is not saved to backends and other issues,
so only the Moodle one should be used by core (core should be free from  and always use .).
2020-03-20 07:51:49 +01:00
Ferran Recio
40cef8afe7 MDL-67707 core_h5p: move shared h5p files to core fixtures 2020-03-16 17:52:08 +01:00
Ferran Recio
f3c7e00f13 MDL-67707 core_h5p: add public H5P player methods 2020-03-16 17:52:08 +01:00
Sara Arjona
7ae4a58229 MDL-67063 core_h5p: return the correct default handler 2020-03-11 18:18:09 +01:00
Sara Arjona
08fda3e0f8 MDL-67063 h5p: new h5plib plugintype for supporting multi coreAPI
A new plugintype has been created for having more than one installed
third-party H5P libraries. Existing libraries have been moved from
lib/h5p to the new h5plib_v124 plugin.
2020-03-11 08:46:16 +01:00
Sara Arjona
3e3b656795 MDL-68038 core_h5p: rename can_update_library test 2020-03-02 08:00:42 +01:00
Eloy Lafuente (stronk7)
5767ceda85 Merge branch 'MDL-67062-master-fix-oracle' of https://github.com/sarjona/moodle 2020-02-27 13:18:58 +01:00
Sara Arjona
770cfadd68 MDL-67062 core_h5p: fix oracle distinct error 2020-02-27 13:12:52 +01:00
Sara Arjona
91ae2593d6 MDL-67062 core_h5p: behat fix for delete library test 2020-02-27 12:32:21 +01:00
Eloy Lafuente (stronk7)
01689c8fe4 Merge branch 'MDL-67062-master' of git://github.com/sarjona/moodle 2020-02-26 22:44:47 +01:00
Sara Arjona
64a2bd19b0 MDL-67062 core_h5p: delete libraries
New feature to let admins to remove H5P libraries/content types.

Thanks Ferran Recio for your contribution with the renderer!

AMOS BEGIN
 CPY [actions,core],[actions,core_h5p]
AMOS END
2020-02-26 19:55:34 +01:00
Sara Arjona
2b8d97326d MDL-67062 core_h5p: delete cache assets when removing libraries
The cache assets linked to a library have to be removed also when a
library is deleted, in order to rebuild them again next time they are
required.
2020-02-26 19:55:34 +01:00
Jun Pataleta
47fd698541 Merge branch 'MDL-67921-master' of git://github.com/sarjona/moodle 2020-02-26 16:51:19 +08:00
Eloy Lafuente (stronk7)
b5220abb0f Merge branch 'MDL-67920-master' of git://github.com/aanabit/moodle 2020-02-25 23:32:17 +01:00
cescobedo
5d81efd1f7 MDL-67131 core_h5p: Allow use webservice/pluginfile|tokenpluginfile url
With this fix the player accepts webservice/pluginfile.php, pluginfile.php
and tokenpluginfile.php URLs to find the h5p files.
Also, we allow to build fileurl with the proper endpoint if
the URL is webservice/pluginfile, tokenpluginfile.php or pluginfile.php
as Mobile App needs.
2020-02-21 09:46:23 +01:00
Sara Arjona
92ad6bd901 MDL-67921 core_h5p: re-implement framework->getOption
The implementation done for getOption was not correct because it
was only taking into account the displayoptions for download and
embed.
Besides, setOption implementation has been added.
2020-02-21 09:29:07 +01:00
Amaia Anabitarte
f531a30252 MDL-67920 core_h5p: Move upload button into form and fix title
Minor bugs in Site administration > H5P > Manage H5P content types admin page'
2020-02-21 08:59:27 +01:00
Sara Arjona
5963c3c8f0 Merge branch 'MDL-67060-master' of git://github.com/aanabit/moodle 2020-02-11 11:40:18 +01:00
Amaia Anabitarte
78f0e17127 MDL-67060 core_h5p: Behats for H5P tools Overview 2020-02-11 10:26:57 +01:00
Amaia Anabitarte
4e7a035f68 MDL-67060 core_h5p: Improvements to Manage H5P setting page
Co-authored by: Adrian Greeve <adrian@moodle.com>

AMOS BEGIN
 CPY [description,moodle],[description,core_h5p]
 CPY [status,moodle],[status,core_h5p]
AMOS END
2020-02-11 10:26:57 +01:00
Amaia Anabitarte
d3ee08dba3 MDL-67060 core_h5p: Improving H5P libraries list 2020-02-11 10:26:57 +01:00
Víctor Déniz Falcón
fe9bb50cb5 MDL-67192 core_h5p: remove redundant assignment 2020-02-10 08:40:13 +00:00
Víctor Déniz Falcón
a23969a5fa MDL-67192 core_h5p: get site UUID from H5P using the API 2020-02-10 08:40:12 +00:00
Víctor Déniz Falcón
e942844d76 MDL-67296 core_h5p: tests modified to use exttests 2020-01-22 20:40:12 +00:00