View on GitHub

openEQUELLA

A digital repository providing a single platform to house your teaching and learning, research, media, and library content.

Home

Moodle Configuration Guide

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

he 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/equella/.

Prerequisites

To successfully complete this installation the system administrator will require:

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:

  1. Configure and enable the LTI consumer and shared secret in the openEQUELLA User Management tool.
  2. Download the Moodle Module from the openEQUELLA Institution Manager.
  3. Install the openEQUELLA Moodle Module to the Moodle directory.
  4. Activate the openEQUELLA Resource Module in Moodle.
  5. 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

  1. 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.
  2. Select the Create new LTI consumer link to open the Create new LTI consumer page.
  3. Enter a Title (e.g. Moodle LTI) and a Description (optional).
  4. 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.
  5. 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:

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

  1. Click the Add roles link under the Instructor role field. The Select role(s) dialog displays.
  2. Enter a search query then click Search. Matching results display.
  3. Select the required role/s, then click Select these roles. The mapping/s displays in the Instructor role field.
  4. 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

  1. 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.
  2. Select Other from the drop-down list.
  3. Click the Add roles link next to the selected LTI/LIS role. The Select role(s) dialog displays.
  4. Enter a search query then click Search. Matching results display.
  5. Select the required role/s, then click Select these roles . The mapping/s displays in the Other roles field.
  6. 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

  1. Open a browser and enter your openEQUELLA URL (e.g. ‘http://equella.myequellainstitution.edu’).
  2. Log in to openEQUELLA as an administrator, select Settings then Administration console.
  3. The Administration console displays. Select User Management to display a list of plug-ins.
  4. Highlight the Shared Secrets user management plug-in, then click Configure. The Shared Secrets dialog displays.
  5. 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.
  6. Enter a unique Identifier (ID) (e.g. moodle).
  7. 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.
  8. 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.
  9. Click Save.
  10. Click Close to close the dialog.

The Shared Secrets plug-in must be enabled (checked). If not already, enable the plug-in:

  1. Check the Enabled checkbox for the Shared Secret plug-in.
  2. Click Yes to confirm.
  3. 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 the Downloads page in the openEQUELLA Github repository

To download the Moodle Modules

  1. Navigate to the Downloads Page in the openEQUELLA Github Repository

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

  1. 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

  1. 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

  1. Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
  2. Log in to Moodle as an administrative user.
  3. Select Site administration from the Settings menu. Then click Notifications
  4. Look over the Plugins list. Note the presence of the openEQUELLA modules.
  5. Click Upgrade Moodle database now. The initializing of the openEQUELLA module will commence.
  6. 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.
  7. Click Continue to move onto the openEQUELLA resource configuration page.
  8. Enter the details of your openEQUELLA server into the configuration pane.

a. 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’).

b. 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.

c. Select a Restrict selections option from the following:

d. 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:

e. 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.

f. If required, change Default window width and Default window height.

g. 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.

h. 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:

  1. Click Save Changes to save the configuration details and complete the openEQUELLA Moodle Module setup.

Test the module installation

To access Moodle

  1. Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
  2. Log in to Moodle as an administrator user.
  3. Select a course (e.g. EQ101 – openEQUELLA 101) from the My Courses pane to display the Course Weekly outline page.
  4. Click Turn editing on to display the Add an activity or a resource link. The Add an activity or resource dialog displays.
  5. 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

  1. Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
  2. Log in to Moodle as an administrator user.
  3. Select a course (e.g. Science - Physiology) from the My Courses pane to display the course Weekly outline page.
  4. Click Turn editing on to display the Add a block drop-down list
  5. Select the openEQUELLA block options one at a time.
  6. 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

  1. Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
  2. Log in to Moodle as an administrator user.
  3. Select a course (e.g. Science - Physiology) from the My Courses pane to display the course Weekly outline page.
  4. In the openEQUELLA Search block, click the Search openEQUELLA link.
  5. Enter a search term into the search box and click Search.
  6. All results matching the search query will be returned from the openEQUELLA repository.
  7. 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.

  1. Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
  2. Log in to Moodle as an administrator user.
  3. From the Moodle home page expand the Site administration menu folder.
  4. Expand the Plugins menu folder, and then the Repositories menu folder
  5. Click the Manage repositories link to open the configuration pane.
  6. Find the openEQUELLA repository drop-down menu, and expand it to reveal the options.
  7. Select Enabled and visible to make the openEQUELLA repository a selectable option in a file picker. The Configuration for openEQUELLA repository page displays.
  8. Click Save.
  9. Scroll down to openEQUELLA Repository once again, and select the Settings link. The Configuration for openEQUELLA repository page displays.
  10. Click Create a Repository Instance. The Create a repository instance page displays.
  11. 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.).
  12. 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’).
  13. 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.
  14. Enter the Default role settings, Shared secret ID and Shared secret that have been set in the openEQUELLA instance.
  15. Enter the Shared secret IDs and Shared secrets for Manager role settings, Teacher role settings and/or openEQUELLA Web Service Role settings if relevant.
  16. Click Save. The repository instance displays on the openEQUELLA repository page.

Test the Repository installation

To access Moodle

  1. Open a browser and enter your Moodle URL (e.g. ‘http://moodle.myequellainstitution.edu’).
  2. Log in to Moodle as an administrator user.
  3. Select a course (e.g. DOC1 - Documentation) from the My Courses pane to display the course Weekly outline page.
  4. Click Turn editing on to enable the editing options.
  5. With a resource already present in your course, select the Edit link, then Edit settings from the menu.
  6. On the Updating openEQUELLA Resource page, click the Insert/Edit image button in the editor. The image properties dialog displays.
  7. Click Browse repositories to open the File picker window.
  8. 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

  1. Log in to Moodle as an administrator.
  2. 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.
  3. 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.
  4. 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.
  5. 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

  1. Create an LTI consumer record in openEQUELLA.
  2. Map the LTI roles.
  3. Log in to Moodle as an administrator.
  4. From the Moodle home page expand the Site administration menu folder, then select Plugins, Activity modules, openEQUELLA Resource.
  5. Scroll to the LTI Settings section.
  6. 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.
  7. 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:

  1. Check that both the Moodle server and the openEQUELLA server have the same UTC time.
  2. Ensure the Shared Secret plug-in in the openEQUELLA User Management tool is enabled.
  3. Check the openEQUELLA Moodle Module file is installed.
  4. Check the configuration data in Moodle.

Upgrade the openEQUELLA Moodle Module

To upgrade the openEQUELLA Moodle Module

  1. 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

  1. Log in to Moodle as an administrative user.
  2. Select Site administration from the Administration menu.
  3. Select Plugins, Activity modules then openEQUELLA Resource.
  4. 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.4. 4.