Pressbooks LTI Provider
Contributors: conner_bw, greatislander
Tags: pressbooks, lti, lms
Requires at least: 6.0
Tested up to: 6.0.2
Stable tag: 2.0.0
Requires PHP: 7.4
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html, (*1)
NOTE: This plugin is no longer being used by Pressbooks and has been deprecated. We have archived this repo, as it is no longer being maintained., (*2)
This plugin turns Pressbooks into an LTI provider., (*3)
Description
, (*4)
A plugin that turn Pressbooks into an LTI Provider., (*5)
This plugin is built on top of a (forked and maintained) IMS Global Learning Consortium provided LTI-Tool-Provider-Library-PHP abstraction
layer. It includes support for LTI 1.1 and the unofficial extensions to LTI 1.0, as well as the registration process and services of LTI 2.0., (*6)
Installation
composer require pressbooks/pressbooks-lti-provider
Or, download the latest version from the releases page and unzip it into your WordPress plugin directory): https://github.com/pressbooks/pressbooks-lti-provider/releases, (*7)
Then, activate and configure the plugin at the Network level., (*8)
Read the integrations documentation for more info: https://docs.pressbooks.org/integrations/lti/, (*9)
Troubleshooting
-
If the user's web browser does not allow 3rd Party Cookies, then logins will not work when Pressbooks is in an iframe., (*10)
-
If the web server has incorrect X-Frame-Options
settings, then iframes will refuse to display. More info., (*11)
-
This plugin requires PDO for MySQL. These drivers are usually installed by default when installing MySQL packages for PHP. If you have
Pressbooks running, then PDO should already be installed. If for some reason the PDO drivers are missing, install them., (*12)
Deep Linking
Connect URL (LTI 2 Registration URL), (*13)
https://site/book/format/lti, (*14)
Book cover page, (*15)
https://site/book/format/lti/launch, (*16)
Post_id, (*17)
https://site/book/format/lti/launch/123, (*18)
Post_type + Post_name, (*19)
https://site/book/format/lti/launch/front-matter/introduction, (*20)
Root site compatibility:, (*21)
https://site/format/lti/BOOK_ID?page_id=123, (*22)
https://site/format/lti/BOOK_ID/launch/123, (*23)
https://site/format/lti/BOOK_ID/launch/front-matter/introduction, (*24)
ContentItemSelectionRequest (Automatic Configuration)
Pressbooks supports incoming content-item requests for media type values of application/vnd.ims.lti.v1.ltilink
., (*25)
This feature allows course designers to select which chapter they want to display from inside their LMS., (*26)
When configuring, the Launch URL will be something like https://site/book/format/lti
where https://site/book
is the URL to your book. Setup instructions follow:, (*27)
Note: Automatic configuration is a feature of the LTI 2.0 specification. Support, usefulness, varies between Learning Management Systems., (*28)
Moodle
First, whitelist the Tool Consumer domain in Pressbooks "LTI2 Registration Whitelist"., (*29)
In Moodle go to: Site Administration -> Plugins -> Manage Tools -> Add tool. Paste in the Launch URL. Follow the configuration steps., (*30)
Once configured, you can pick a chapter when adding an external tool by clicking "Select Content"., (*31)
Canvas
Settings -> Apps -> View App Configuration -> +App. Configure using the "Paste XML Configuration Type" with the following XML snippet, making sure to replace https://site/book/format/lti
with your Launch URL:, (*32)
<?xml version="1.0" encoding="UTF-8"?>
<cartridge_basiclti_link xmlns="http://www.imsglobal.org/xsd/imslticc_v1p0" xmlns:blti="http://www.imsglobal.org/xsd/imsbasiclti_v1p0" xmlns:lticm="http://www.imsglobal.org/xsd/imslticm_v1p0" xmlns:lticp="http://www.imsglobal.org/xsd/imslticp_v1p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imslticc_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticc_v1p0.xsd http://www.imsglobal.org/xsd/imsbasiclti_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imsbasiclti_v1p0p1.xsd http://www.imsglobal.org/xsd/imslticm_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticm_v1p0.xsd http://www.imsglobal.org/xsd/imslticp_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticp_v1p0.xsd">
<blti:title>Pressbooks Book</blti:title>
<blti:description>This is a Pressbooks Book</blti:description>
<blti:launch_url>https://site/book/format/lti</blti:launch_url>
<blti:extensions platform="canvas.instructure.com">
<lticm:property name="privacy_level">email_only</lticm:property>
<lticm:options name="link_selection">
<lticm:property name="message_type">ContentItemSelectionRequest</lticm:property>
<lticm:property name="url">https://site/book/format/lti</lticm:property>
</lticm:options>
<lticm:property name="selection_height">600</lticm:property>
<lticm:property name="selection_width">800</lticm:property>
</blti:extensions>
</cartridge_basiclti_link>
More info., (*33)
Sakai
Click on the Site Info tool in the left navigation area. Click on the External Tools tab. Click on Install LTI 1.1 link., (*34)
When entering the information, make sure to select: Allow the tool to be launched as a link, Allow external tool to configure itself, and Allow the tool to be used from the rich content editor to select content., (*35)
Once configured, use "Launch External Tool Configuration" when adding an External Tool., (*36)
Blackboard
System Admin -> LTI Tool Providers -> Register Provider Domain. Configure accordingly., (*37)
Next, from the options menu (little arrow next to the configured domain) select: Manage Placements, then Create Placement., (*38)
When entering the information make sure to select: Course content tool and Supports deep linking., (*39)
The placement will be available in your Course the under Build Content menu., (*40)
Common Cartridge
Allows users to export books as "Thin" Common Cartridge zip files. Supports CC 1.1, 1.2 and 1.3. Produces .imscc (zip) files with LTI links. Some notes:, (*41)
- Files passed the IMS Common Cartridge Validator.
- Moodle was able to import CC 1.1 (because there's no code to import 1.2 or 1.3 ?!)
- Canvas was able to import CC 1.1, 1.2, and 1.3.
- Sakai imports but didn't know what to do with the LTI links? Only empty Frontmatter, Main Body, Backmatter appeared under Lessons. The rest of the content appeared as unusable XML files under Resources. Fixed in 12.4. See this bug report for resolution.
- Blackboard was able to import CC 1.1 and 1.2.
Thanks to Ed Beck, Bracken Mosbacker, Brad Payne, Steel Wagstaff and everyone in https://pressbooks.community/ who helped us get this working., (*42)
Screenshots
, (*43)
Changelog
2.0.0
- See: https://github.com/pressbooks/pressbooks-lti-provider/releases/tag/2.0.0
- Full release history available at: https://github.com/pressbooks/pressbooks-lti-provider/releases
Upgrade Notice
2.0.0
Pressbooks LTI Provider 2.0.0 requires Pressbooks >= 6.0.0, (*44)
1.3.6
Pressbooks LTI Provider requires PHP 7.4, (*45)