- This module requires openEQUELLA 4.1 QA3 or higher.
- The master branch works with the Moodle 2.7 and up.
For Moodle earlier versions, choose the appropriate git branches.
Feel free to fork this and send back Pull Requests for any defects or features that you want to contribute back. Opening issues here is also recommended.
Clone this link to get a docker instance of Moodle. Then use Docker to build it.
git clone https://github.com/jmhardison/docker-moodle
cd docker-moodle
docker build -t moodle .Then setup and run the MYSQL database for use with the docker Moodle.
docker run -d --name DB -p 3306:3306 -e MYSQL_DATABASE=moodle -e MYSQL_ROOT_PASSWORD=moodle -e MYSQL_USER=moodle -e MYSQL_PASSWORD=moodle mysqlThen, run the Moodle instance. Give it a URL and a matching port.
docker run -d -P --name moodle --link DB:DB -e MOODLE_URL=http://localhost:8099 -p 8099:80 jhardison/moodleNOTE: This port and URL should not conflict with that of your openEQUELLA.
From this point on, you should open the Moodle instance in your web browser and follow the installation process.
You can access the Terminal of your Moodle if you so wish with the following command:
docker exec -it moodle bashThis project folder should be copied into the Moodle at /var/www/html/mod. It must be renamed from moodle-mod_equella
to simply equella in order to work properly. From your machine terminal in the folder that contains the moodle-mod_equella directory:
docker cp moodle-mod_equella/ moodle:/var/www/html/mod/
docker exec -it moodle bash
cd ./var/www/html/mod/
mv moodle-mod_equella/ equella/Login to Moodle. It should notify you that a new module has been detected. Click to upgrade.
In the settings, set an openEQUELLA URL. Note: this must have the URI /[institutionname]/signon.do so
for example, http://localhost:8080/vanilla/signon.do.
In the openEQUELLA action setting, type structured, assuming you are using a recent (6.1 and above) version of openEQUELLA.
You're done! You now have a Moodle instance and an openEQUELLA instance integrated together.
This section applies when a site administrator has enabled (Intercept drag and drop files → Auto contribute file to openEQUELLA with meta data) in the openEQUELLA module plugin settings. When active, dragging a file onto a course page opens a custom metadata modal (title, description, copyright, keywords) instead of using Moodle's default upload behaviour.
The DND upload feature is built using TypeScript and Webpack. The source code is located in the tsrc directory.
If you are modifying the DND feature, you must compile the TypeScript code into the amd/build and amd/src directories for Moodle to recognize the changes.
- Navigate to the source directory:
cd tsrc- Install the required dependencies:
npm ci- Build the files for production:
npm run buildFor any more information regarding integration with Moodle from openEQUELLA, visit this documentation page.