Moodle customers can install the Leganto Moodle Block to get additional functionality within their Moodle instance, in addition to the standard LTI support. This block displays all lists associated to the current course.
Supported Moodle versions: 3 or higher.
This plugin is based on the Alma Courses API. You will be required to supply your Alma API key when configuring the settings.
Download the installation from here: leganto_16022020.zip
Follow the following steps to install:
Each list title is a link. Select a title to open the list in Leganto in a new browser tab.
The block inside the course page:
The following fields appear in the block settings in Moodle.
Alma API URL (Mandatory) – The relevant URL for your region. Make sure you enter a URL exactly like in the example in the screen. If the URL differs from the example, the block will create wrong permalinks!
API Key (Mandatory) – Your Alma API key
Normalization code (Optional) – The plugin sends the Moodle course code to the Alma API. You may want to normalize this code before it is sent. To do this, you must configure normalization rules in Alma and then place the relevant code here.
To configure normalization rules in Alma:
Configure any set of rules. The field type must be “Course Code”.
The “LTI Profile” contains the code you need to place in the Moodle Blocks settings in the “Normalization Code” field. If you select “All”, configure “All” in Moodle.
Permalink Base URL (Mandatory): The base URL of your Leganto environment.
Alma Institution Code (Mandatory): Your institution code, such as 44HKK_INST.
Authentication Method (Mandatory): Set to “SAML” for most users. If a user is not logged in to Leganto, this field determines the authentication method to be used.
API calls used by the Moodle Block
This plugin calls your Courses API in Alma to retrieve the needed data to be displayed.
The Moodle Block triggers the APIs every time a user enters a page that displays the block.
The following are the API calls used:
- Retrieve Courses – Extract the course code from current page and search courses by course code
(if no courses are found an additional call to the same API is done to search courses by searchable IDs)
- Retrieve Reading Lists – for each course found fetch the associated reading lists
- Retrieve Citations – for each reading list found fetch the relevant citations (for displaying the number of citations in each list)
Example: Assuming a course is associated to a single list a block will be calling 3 different API calls every time it is displayed.
Important – API threshold
When using this block you might want to consider the amount of users exposed to this block and the amount of API calls that will be triggered.
Before using this block make sure you know what your API threshold is in Alma and make sure you know what is the expected amount of API calls that will be added by using this block.