mkauffman

Deep Linking (was Content-Item) This Works!

Blog Post created by mkauffman on Apr 7, 2019

Given that I've seen multiple questions about the IMS spec and Deep Linking 1.0, I'm writing this post.  Below, for reference from our test implementation of a Tool Provider GitHub - blackboard/BBDN-LTI-Tool-Provider-Node: A node.js LTI Tool Provider for testing LTI launches, Caliper, and Outc… is sample JSON that can serve as guide for what works. It places multiple links to the provider, the highlighted LineItem is the gradable item. Hope this helps!

 

{"@context":"http://purl.imsglobal.org/ctx/lti/v1/ContentItem","@graph":[{"@type":"LtiLinkItem","mediaType":"application/vnd.ims.lti.v1.ltilink","icon":{"@id":"https://www.wpclipart.com/animals/F/ferret/.cache/Ferret_black-footed.jpg","width":50,"height":50},"title":"Week 1 reading LTI + Link<script>alert('help me');</script> <span style=\"font-family: Garamond; font-weight: bold; font-size: 24px\">Hello</span>","text":"Read this section prior to your tutorial. <script>alert('help me');</script> <span style=\"font-family: Garamond; font-weight: bold; font-size: 24px\">This should be large and bold</span>","custom":{"chapter":"12","section":"3","duedate":"2018-03-31T11:15:00+01:00"},"placementAdvice":{"displayHeight":100,"displayWidth":100,"windowTarget":"_blank"}},{"@type":"LtiLinkItem","mediaType":"application/vnd.ims.lti.v1.ltilink","icon":{"@id":"https://www.wpclipart.com/animals/F/frogs/.cache/Frog_eyeing_dinner.png","width":50,"height":50},"title":"Week 2 reading LTI","text":"Read this section prior to your tutorial.","custom":{"chapter":"12","section":"4","duedate":"2019-05-24T23:15:00+01:00"},"placementAdvice":{"displayHeight":100,"displayWidth":100,"presentationDocumentTarget":"iframe","windowTarget":"_blank"},"lineItem":{"@type":"LineItem","label":"Chapter 12 quiz","reportingMethod":"res:totalScore","assignedActivity":{"@id":"http://toolprovider.example.com/assessment/66400","activityId":"a-9334df-33"},"scoreConstraints":{"@type":"NumericLimits","normalMaximum":100,"extraCreditMaximum":10,"totalMaximum":110}}},{"@type":"ContentItem","@id":":item1","title":"Assignment: Assignment Specification","mediaType":"text/html","text":"Assignment: Assignment Specification","url":"https://www.py4e.com/install.php","placementAdvice":{"presentationDocumentTarget":"WINDOW","windowTarget":"_blank"},"icon":{"@id":"https://www.dr-chuck.net/tsugi-static/font-awesome-4.4.0/png/lock.png","width":64,"height":64}},{"@type":"ContentItem","url":"http://www.imageserver.com/path/image.jpg","mediaType":"image/jpg","title":"Title for my picture","placementAdvice":{"height":100,"width":100}}]}

 

Next week, Wednesday April 24, at 1100 EDT you can ask our lead LTI Developer any questions you have about Deep Linking 1.0 and LTI 1.3/Advantage with Deep Linking 2.0 during our Technical Office Hours!

Outcomes