Moodle Configuration Guide
- Integration overview
- Open source
- Prerequisites
- Integration procedure
- Configure openEQUELLA
- Configure Moodle
- Enable Moodle drag and drop auto add to openEQUELLA function
- QTI 2.1 with Moodle openEQUELLA integrations
- Troubleshoot an unsuccessful integration
- Upgrade the openEQUELLA Moodle Module
- Viewing the openEQUELLA Moodle Module change log
Integration overview
openEQUELLA integrates easily with Moodle™ by using the openEQUELLA Moodle Module to create a seamless system for users. Additionally the openEQUELLA Shared Secret functionality provides a single sign-on for users.
The purpose of this guide is to provide system administrators with an understanding of the openEQUELLA Moodle integration process to enable successful integration.
Please note that this guide has been developed for Moodle version 2.9 and, as such, may differ in appearance to your own installation.
Open source
The Moodle module, blocks and legacy repository plug-in are available under the GPLv3 license. The source code for these projects can be found at https://github.com/openequella.
Specifically:
- Moodle module - https://github.com/openequella/moodle-mod_openEQUELLA
- Moodle search block - https://github.com/openequella/moodle-block_openEQUELLA_search
- Moodle tasks block - https://github.com/openequella/moodle-block_openEQUELLA_tasks
- Moodle links block - https://github.com/openequella/moodle-block_openEQUELLA_links
- Supporting diagnostic tool - https://github.com/openequella/moodle-mod_openEQUELLA-tools
Prerequisites
To successfully complete this installation the system administrator will require:
- sufficient privileges to access the Moodle system integration functionality;
- sufficient privileges to access the openEQUELLA User Management functionality; and
- privileges to unzip and create files on the Moodle file system.
System prerequisites for integration
- openEQUELLA opens source and Moodle version 2.6, 2.7 or 2.8 must be installed and running. Further information on installing openEQUELLA is provided in the openEQUELLA Installation and Administration Guide.
- Ensure the time settings of the servers are set correctly, including DST, for the relevant time zone.
- To access the openEQUELLA Dashboard page at least one course must have been created in Moodle. Refer to the Moodle documentation for more information.
Integration procedure
openEQUELLA Moodle integration can be broken into the following steps:
- Configure and enable the LTI consumer and shared secret in the openEQUELLA User Management tool.
- Download the Moodle Module from the openEQUELLA Institution Manager.
- Install the openEQUELLA Moodle Module to the Moodle directory.
- Activate the openEQUELLA Resource Module in Moodle.
- Test the installation.
Configure openEQUELLA
This section describes the required configuration changes to openEQUELLA to support a seamless integration. To achieve this, an openEQUELLA LTI Consumer needs to be registered, along with a Shared Secret configuration.
Register an LTI consumer
LTI consumer client registrations are registered from the Settings page in openEQUELLA.
To create a new LTI consumer
- Select Settings from the navigation menu, and either type LTI in the filter box, then select LTI consumers from the results or scroll down to LTI consumers on the Settings list.
- Select the Create new LTI consumer link to open the Create new LTI consumer page.
- Enter a Title (e.g. Moodle LTI) and a Description (optional).
- A default Consumer key displays. This can be changed as desired (e.g. moodleint). Take note as the Consumer key is entered in Moodle during integration configuration.
- A default Consumer secret displays. This can be changed as desired. Take note as the Client secret is entered in Moodle during integration configuration.
Other options can be enabled as required.
LTI/LIS Role Mappings
When logging into Moodle, users are assigned a Moodle role which can be Teacher or another role. Moodle’s Teacher role is translated as Instructor for LTI purposes, and all other roles as Other. LTI ‘Instructor’ and ‘Other’ roles need to be mapped to the relevant openEQUELLA roles for openEQUELLA permissions to apply. Additionally, it is wise to map Unknown roles that may be sent to openEQUELLA. This is done from the LTI/LIS Role Mappings section of the Add new LTI consumer or Edit LTI consumer pages.
The LTI/LIS Role Mappings section has three areas:
- Instructor role – map the Moodle ‘Teacher’ role to openEQUELLA role/s.
- Other roles –this area is used to map all other roles that might be used in the integration. A list of the standard LTI/LIS roles is supplied, of which ‘Other’ is one.
- Unknown roles – use this area to select the openEQUELLA roles to default to when an unknown role is sent to openEQUELLA.
Mapping the Instructor and Unknown roles
In the Instructor and Unknown roles fields, the Add roles link is used to select the openEQUELLA roles to be used in the mappings. An example using the Instructor role is shown below:
To map to openEQUELLA role/s
- Click the Add roles link under the Instructor role field. The Select role(s) dialog displays.
- Enter a search query then click Search. Matching results display.
- Select the required role/s, then click Select these roles. The mapping/s displays in the Instructor role field.
- Select the Add roles link to add more mappings.
Mapping the ‘Other’ role
The Other roles section is used to map LTI/LIS standard roles (including the role ‘Other’ which is used in the Moodle integration) to openEQUELLA roles.
To map the ‘Other’ role
- In the Other roles area, start typing the required LTI/LIS role (Other) in the Enter LTI/LIS role field. A list of all the standard LTI/LIS roles displays in a drop-down list.
- Select Other from the drop-down list.
- Click the Add roles link next to the selected LTI/LIS role. The Select role(s) dialog displays.
- Enter a search query then click Search. Matching results display.
- Select the required role/s, then click Select these roles . The mapping/s displays in the Other roles field.
- To add further openEQUELLA roles to ‘Other’ roles that have existing mappings or to add another LTI/LIS role mapping, repeat steps 1 to 5.
Configure a shared secret
Shared secrets are configured in the openEQUELLA Administration Console.
To open the Administration Console
- Open a browser and enter your openEQUELLA URL (e.g. ‘http://equella.myequellainstitution.edu’).
- Log in to openEQUELLA as an administrator, select Settings then Administration console.
- The Administration console displays. Select User Management to display a list of plug-ins.
- Highlight the Shared Secrets user management plug-in, then click Configure. The Shared Secrets dialog displays.
- Click + Add to create a new shared secret. The Shared Secrets dialog now displays a new shared secret named ‘DEFAULT’ in the left-hand pane, and the configuration elements to the right of the pane.
- Enter a unique Identifier (ID) (e.g. moodle).
- Enter a shared secret (e.g. mS3cr3t). The secret may be any combination of characters and numbers, but strings longer than eight characters consisting of upper and lower case alphanumeric characters are recommended.
- Make a note of the identifier and shared secret as they will be needed to complete the Activate the openEQUELLA Resource module steps later. Other options can be enabled as required.
- Click Save.
- Click Close to close the dialog.
The Shared Secrets plug-in must be enabled (checked). If not already, enable the plug-in:
- Check the Enabled checkbox for the Shared Secret plug-in.
- Click Yes to confirm.
- Click Exit Console to close the Administration Console.
NOTE: Only trusted users should be able to see the shared secret, as this information can be used to impersonate any user within openEQUELLA.
The next step in the integration process is to download the openEQUELLA Moodle Module.
Configure Moodle
This section describes the required configuration changes to Moodle to support the integration. openEQUELLA provides a module that allows Moodle users to easily contribute, search and select openEQUELLA items, and link them to a course.
Download and install the openEQUELLA Moodle Modules
The Moodle Modules are available from each of their Github repositories:
- Moodle module - https://github.com/openequella/moodle-mod_openEQUELLA
- Moodle search block - https://github.com/openequella/moodle-block_openEQUELLA_search
- Moodle tasks block - https://github.com/openequella/moodle-block_openEQUELLA_tasks
- Moodle links block - https://github.com/openequella/moodle-block_openEQUELLA_links
- Supporting diagnostic tool - https://github.com/openequella/moodle-mod_openEQUELLA-tools
To download the main Moodle Module, simple download the latest release from the releases page. For the blocks and the diagnostic tool, you will need to go to use the green Github ‘Clone or download’ button.
The openEQUELLA Moodle components are made up of three zip files. Each zip contains files relevant to specific sections of the Moodle site.
Inside the Module to add openEQUELLA content as resources or activities zip are the files for the standard module functionality to integrate Moodle with openEQUELLA (referred to in this guide as the openEQUELLA Resource module).
Inside the Block for users to search openEQUELLA directly and Block for users to view their openEQUELLA tasks and notifications zips are the files to add portlets to the Moodle front and course pages, allowing direct openEQUELLA access (openEQUELLA Blocks).
For complete installation the contents of each zip file need to be extracted to the corresponding folder in the Moodle filesystem.
Install the openEQUELLA Resource Module
- To install the openEQUELLA Resource module, download the relevant module version of Module to add openEQUELLA content as resources or activities and unzip into a newly created path-to-moodle/mod/equella directory.
(NOTE: If installing the Moodle Module on UNIX, ensure the ownership and file permissions match those of the /var/www/moodledirectory/directory.)
Install the openEQUELLA Blocks
- To install the openEQUELLA Blocks, download the two blocks zips (Block for users to search openEQUELLA directly and Block for users to view their openEQUELLA tasks and notifications) and unzip them into a newly created path-to-moodle/blocks/equella_search and path-to-moodle/blocks/equella_tasks directories respectively.
Activate the openEQUELLA Resource module
To access Moodle
- Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
- Log in to Moodle as an administrative user.
- Select Site administration from the Settings menu. Then click Notifications
- Look over the Plugins list. Note the presence of the openEQUELLA modules.
- Click Upgrade Moodle database now. The initializing of the openEQUELLA module will commence.
- When completed, you will see confirmation of successful initialization of the openEQUELLA module. The following items will be listed: mod_equella, block_equella_searchc, block_equella_tasks, repository_equella.
- Click Continue to move onto the openEQUELLA resource configuration page.
- Enter the details of your openEQUELLA server into the configuration pane.
- Enter the complete openEQUELLA URL to your institution with ‘/signon.do’ appended to the URL (e.g. ‘http://equella.myinstitution.edu/logon.do’ would become ‘http://equella.myinstitution.edu/signon.do’).
- Enter the openEQUELLA Action (e.g. structured). The ‘structured’ action activates the latest openEQUELLA Integration page where users can search the openEQUELLA Digital Repository for existing content, contribute new items and select openEQUELLA content to link to a course.
- Select a Restrict selections option from the following:
- No restrictions—to not restrict the types of resources course editors can select.
- Items only—to restrict to only items as the type of resources that course editors can select.
- Attachments only—to restrict to only attachments as the type of resources that course editors can select.
- Packages only – this restriction will still allow attachments that aren’t IMS packages to be selected, but they will always display using the IMS package player.
- Enter the openEQUELLA Options (optional). This string is used to specifically override some
built-in actions to restrict the search and contribution options available in the Selection
openEQUELLA Home page. Available options include:
- powerSearchIds=”UUID” (this option restricts advanced searching to just these advanced searches),
- contributionCollectionIds=”UUID” (this option restricts contribution to just these collections), where “UUID” is the Universally Unique Identifier of the given entity.
- Enter an openEQUELLA administrator username. This must be the username of an existing administrator user in openEQUELLA who has the VIEW_ITEM privilege granted. This is required for openEQUELLA to perform high-level, background functions that don’t have a user session.
- If required, change Default window width and Default window height.
- Select Enable LTI and in the Client ID field, enter the Consumer ID for the LTI consumer (e.g. moodleint) and in the Client Secret field, enter the Consumer secret (e.g. 44a1bd760-8371-4155-9bc6-ae632b907a06) created in the Register an LTI consumer steps. NOTE: When LTI is enabled, Shared secrets are disabled for openEQUELLA selection sessions. LTI must be enabled to store QTI quiz scores in the Moodle gradebook when QTI 2.1 quizzes linked to courses from openEQUELLA are launched. If this functionality is not required, LTI doesn’t have to be enabled, and shared secrets can still be used.
Shared secrets (Default Role settings at minimum) are stored regardless, as they are still used for the Moodle blocks and Drag and Drop functions.
- Enter openEQUELLA Shared Secret details. These must exist in openEQUELLA. In this case they are
the same as previously configured. Shared secrets can be configured for different types of
users, including:
- Default role—used for general (read) usage. Typically assigned to students. a. Enter openEQUELLA Shared Secret ID (e.g. moodle). b. Enter openEQUELLA Shared Secret (e.g. mS3cr3t).
- Each write role in your Moodle site. In this case Teacher role (typically assigned to course contributors) or Manager role (typically assigned to administrators). a. Enter openEQUELLA Shared Secret ID. b. Enter openEQUELLA Shared Secret.
- Click Save Changes to save the configuration details and complete the openEQUELLA Moodle Module setup.
Test the module installation
To access Moodle
- Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
- Log in to Moodle as an administrator user.
- Select a course (e.g. EQ101 – openEQUELLA 101) from the My Courses pane to display the Course Weekly outline page.
- Click Turn editing on to display the Add an activity or a resource link. The Add an activity or resource dialog displays.
- Select openEQUELLA Resource then click Add to display the openEQUELLA Integration page.
Activate the openEQUELLA blocks
There are two blocks to add as part of the openEQUELLA integration. The first is a search block that will allow users to search the openEQUELLA repository from inside Moodle and view the results. The other provides users with a summary of their openEQUELLA task list from inside Moodle. Access to the tasks in openEQUELLA can be made by simply clicking the relevant link.
To access Moodle
- Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
- Log in to Moodle as an administrator user.
- Select a course (e.g. Science - Physiology) from the My Courses pane to display the course Weekly outline page.
- Click Turn editing on to display the Add a block drop-down list
- Select the openEQUELLA block options one at a time.
- Upon selecting an option, Moodle will recognize the selection and refresh the page, updating the layout.
Note that the openEQUELLA Tasks block can also be added on the Moodle front page.
Test the blocks installation
To access Moodle
- Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
- Log in to Moodle as an administrator user.
- Select a course (e.g. Science - Physiology) from the My Courses pane to display the course Weekly outline page.
- In the openEQUELLA Search block, click the Search openEQUELLA link.
- Enter a search term into the search box and click Search.
- All results matching the search query will be returned from the openEQUELLA repository.
- Click the View link alongside a resource to open it.
Activate the openEQUELLA repository
Activate the openEQUELLA repository plug-in to enable searching of the openEQUELLA repository to find and retrieve files from when using a file picker from inside Moodle.
- Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
- Log in to Moodle as an administrator user.
- From the Moodle home page expand the Site administration menu folder.
- Expand the Plugins menu folder, and then the Repositories menu folder
- Click the Manage repositories link to open the configuration pane.
- Find the openEQUELLA repository drop-down menu, and expand it to reveal the options.
- Select Enabled and visible to make the openEQUELLA repository a selectable option in a file picker. The Configuration for openEQUELLA repository page displays.
- Click Save.
- Scroll down to openEQUELLA Repository once again, and select the Settings link. The Configuration for openEQUELLA repository page displays.
- Click Create a Repository Instance. The Create a repository instance page displays.
- Enter a Name for the openEQUELLA repository (e.g. openEQUELLA). This name displays in the file picker. If multiple openEQUELLA repositories are to be configured, using a descriptive name is useful (e.g. University of Tas, RMIT etc.).
- Enter the complete openEQUELLA URL for the relevant institution with ‘/signon.do’ appended to the URL (e.g. ‘http://equella.myinstitution.edu/logon.do’ would become ‘http://equella.myinstitution.edu/signon.do’).
- Enter the openEQUELLA Options (optional). This string is used to specifically override some built-in actions to restrict the search and contribution options available on the openEQUELLA Integration page.
- Enter the Default role settings, Shared secret ID and Shared secret that have been set in the openEQUELLA instance.
- Enter the Shared secret IDs and Shared secrets for Manager role settings, Teacher role settings and/or openEQUELLA Web Service Role settings if relevant.
- Click Save. The repository instance displays on the openEQUELLA repository page.
Test the Repository installation
To access Moodle
- Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
- Log in to Moodle as an administrator user.
- Select a course (e.g. DOC1 - Documentation) from the My Courses pane to display the course Weekly outline page.
- Click Turn editing on to enable the editing options.
- With a resource already present in your course, select the Edit link, then Edit settings from the menu.
- On the Updating openEQUELLA Resource page, click the Insert/Edit image button in the editor. The image properties dialog displays.
- Click Browse repositories to open the File picker window.
- openEQUELLA (or the name entered for the repository instance) displays in the left-hand menu. Click the openEQUELLA link to search the repository.
Enable Moodle drag and drop auto add to openEQUELLA function
Files can be automatically contributed to openEQUELLA when dragging and dropping onto a Moodle course page, or onto the Content, Select files panel from the Adding a new File page in Moodle. The system first checks to see if the file already exists in openEQUELLA. If so, it creates a link to the file, otherwise it contributes the file into the collection allocated for the ‘Quick contribute’ function.
In versions prior to openEQUELLA 6.2, the drag and drop/auto add function used an OAuth client, but in order to pass through the correct user details to openEQUELLA, all subsequent releases use a Shared secret, which is already set up when the integration is configured.
Configure Moodle for drag and drop/auto add to openEQUELLA
To configure Moodle for drag and drop/auto add to openEQUELLA
- Log in to Moodle as an administrator.
- From the Moodle home page expand the Site administration menu folder, then select Plugins, Activity modules, openEQUELLA Resource. 3. Scroll to the bottom of the page, where the Shared Secret Settings section is visible.
- Make sure there is a Shared secret ID and Shared secret for Default role settings. This would have been configured during the initial integration configuration process.
- Select the required Intercept drag and drop files option:
- Don’t intercept files – always adds files as file resources locally in Moodle.
- Display file destination dialog – displays a confirmation dialog asking the user to select where the file should be saved.
- Options are:
- Contribute to openEQUELLA – automatically contributes the file to openEQUELLA, with the file name as the Title and Description, and adds a link to that openEQUELLA record in Moodle.
- Add image to course page - shows the full sized image on the course page instead of a link. This option only displays for image files.
- Create file resource – saves the file locally in Moodle as a file resource.
- Click Save Changes.
QTI 2.1 with Moodle openEQUELLA integrations
QTI 2.1 quizzes can be linked to Moodle courses from openEQUELLA, then launched and submitted. Quiz answers are stored in the openEQUELLA database, and a score is calculated on submitting the quiz. The score is passed back to the Moodle gradebook, and can be viewed by users with the appropriate permissions.
Configuring an openEQUELLA/Moodle integration for QTI 2.1 gradebook scoring
openEQUELLA enables QTI quizzes to be linked to Moodle courses and launched and submitted from those courses. To enable the score to be stored in the Moodle gradebook, an LTI consumer must be configured.
To configure the LTI consumer
- Create an LTI consumer record in openEQUELLA.
- Map the LTI roles.
- Log in to Moodle as an administrator.
- From the Moodle home page expand the Site administration menu folder, then select Plugins, Activity modules, openEQUELLA Resource.
- Scroll to the LTI Settings section.
- Select Enable LTI and enter the Client (Consumer) ID (e.g. moodleint) and Client (Consumer) Secret (e.g. 44a1bcd0-dea5-4976-90c3-80b1cd421144) created in the prior Register an LTI consumer steps. NOTE: Once LTI has been enabled, Shared secrets are disabled for openEQUELLA selection sessions. The Default role settings Shared secret is still used for the Moodle drag and drop/auto add to openEQUELLA and Moodle blocks functions.
- Click Save Changes.
QTI 2.1 quizzes launched from Moodle courses will now automatically store the score in the user’s Moodle gradebook.
Troubleshoot an unsuccessful integration
If the integration is unsuccessful, these are the points to check first:
- Check that both the Moodle server and the openEQUELLA server have the same UTC time.
- Ensure the Shared Secret plug-in in the openEQUELLA User Management tool is enabled.
- Check the openEQUELLA Moodle Module file is installed.
- Check the configuration data in Moodle.
Upgrade the openEQUELLA Moodle Module
To upgrade the openEQUELLA Moodle Module
- Remove the existing openEQUELLA folder in the path-to-moodle\mod directory and replace it with the latest version of the openEQUELLA folder.
Viewing the openEQUELLA Moodle Module change log
The openEQUELLA Moodle Module change log enables administrators to view bug fixes and new features added to the current openEQUELLA module release.
To view the openEQUELLA Moodle Module change log
- Log in to Moodle as an administrative user.
- Select Site administration from the Administration menu.
- Select Plugins, Activity modules then openEQUELLA Resource.
- Click the View change log link at the top of the page to open the change log in a new browser tab and view the Moodle Module information.