Skip to content

EsupPortail/moodle-repository_pod

Repository files navigation

repository pod : moodle repository for POD

repository pod is a moodle repository plugin that enable to create file resource linked by reference to an external POD v2 server

Features

  • Enable to create video or audio file reference with a POD server filtering on current username
  • search enabled
  • paging enabled for listing and searching in filepicker
  • override of renderer to check resource existence on POD server

Download

from moodle plugin repository

Moodle Installation

Repository installation

Install repository/pod in your own repository directory

Repository new instance settings

fill plugin setting field :

  • pod_url : POD webservice base url
  • pod_api_key : POD webservice API key (Token generated into pod admin interface)
  • page_size : page size :you must put the same value than in pod settings.py file (PAGE_SIZE) webservice and then enabling paging on filepicker
  • usernamehook : will only be available if a hookfile.php is located in repository/pod of your moodle installation
    • check this if you have to apply username hook
    • username hook enable you to map moodle username with pod uid
    • in hooklib.php define a repository_pod_moodle_uid_to_pod_uid function that will make a trnaformation from moodle user object to obtain corresponding pod uid
  • enrichedviewmode :
    • If checked, Pod resource will be displayed with Pod enriched media player instead of Moodle internal media player
    • except for automatic and embed mode
    • pay attention that draft and authentified required Pod resource will trigger authentication when displaying Pod resource
    • Note that it is possible to create to Pod instance of same server enabling you to propose bith enriched and direct files Pod repositories

filepicker paging patch for search

  • apply patch included
patch -p1 /moodle_dirroot/repository/filepicker.js  < patch/repository_filepicker_js.patch

Install patch to take external repository in charge

  • by default moodle does not restore external repository in course to prevent file breaking
    • but you can enable this by installing following patch on your moodle version
patch -p1 /moodle_path/backup/moodle2/restore_stepslib.php < /moodlepath/patch/backup_moodle2_restore_stepslib.patch

Issues

Videos width issues

  • sometime, in edit mode, video take to much places
    • to solve that add video{max-width:100%} to your custom css field in theme configuration

Contributions

Contributions of any form are welcome. Github pull requests are preferred. Fill free to commit any bugs, improvements, or feature requiests in our [issue tracker][issues].

Authors

  • Celine Perves
  • Matthieu Fuchs
  • Pascal Mathelin
  • Claude Yahou

Mainteners

  • Celine Perves
  • Matthieu Fuchs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages