AnsweredAssumed Answered

Setting up AssignmentLinkItem properties using deep linking

Question asked by abziz on Apr 17, 2019

I am trying to change basic properties of an AssignmentLinkItem using LTI deep linking.
This is the JsonLD I am sending back to the consumer via "content_items" fields:

{
"@context": "http://purl.imsglobal.org/ctx/lti/v1/ContentItem",
"@graph": [
{
"@type": "LtiLinkItem",
"icon": {
"@id": "https://localhost:44374/images/some50x50.png",
"height": 50,
"width": 50
},
"mediaType": "application/vnd.ims.lti.v1.ltilink",
"placementAdvice": {
"presentationDocumentTarget": "iframe"
},
"text": "this is a description",
"thumbnail": {
"@id": "https://localhost:44374/images/some50x50.png",
"height": 50,
"width": 50
},
"title": "this is a title",
"url": "https://localhost:44374/assignment",
"custom": {
"maxGrade": "100",
"dueDate": "18/04/2019 14:33:23"
},
"lineItem": {
"@context": "http://purl.imsglobal.org/ctx/lis/v2/LineItem",
"@type": "LineItem",
"label": "this is a title",
"reportingMethod": "res:totalScore",
"scoreConstraints": {
"@type": "NumericLimits",
"normalMaximum": 100.0,
"totalMaximum": 100.0
}
}
}
]
}


which leads to this item showing up on the course:

 


which brings me to two questions

 

1. why doesn't the thumbnail / icon show ?
2. how can I change fields of the content such as due date ?

Outcomes