{"id":6350,"date":"2020-01-07T17:07:55","date_gmt":"2020-01-07T17:07:55","guid":{"rendered":"http:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/?p=6350"},"modified":"2020-01-07T17:15:45","modified_gmt":"2020-01-07T17:15:45","slug":"linking-directly-to-an-individual-assignment","status":"publish","type":"post","link":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/2020\/01\/linking-directly-to-an-individual-assignment\/","title":{"rendered":"Linking Directly to an Individual Assignment"},"content":{"rendered":"<p>It is possible to link directly to an individual assignment in WebLearn, however, this facility isn&#8217;t directly available in the user interface so I thought I&#8217;d present a relatively easy &#8220;recipe&#8221; on how to get hold of the link.<\/p>\n<h2>Step One &#8211; locate the Site ID<\/h2>\n<p>Navigate to the site which contains the assignment and click on\u00a0<em>Site Info, <\/em>copy\u00a0the site ID which is the last part of the\u00a0<strong>Site URL<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6352\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/site-url.png\" alt=\"\" width=\"722\" height=\"46\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/site-url.png 722w, https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/site-url-300x19.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<h2>Step Two &#8211; get a list of assignment reference IDs<\/h2>\n<p>Use the site ID in the following URL<\/p>\n<blockquote>\n<pre><small><\/small><small>https:\/\/weblearn.ox.ac.uk\/direct\/assignment\/site\/<em><span style=\"color: #993300\">[[site ID]]<\/span><\/em>.json<\/small>\r\n<\/pre>\n<\/blockquote>\n<p>for example<\/p>\n<blockquote>\n<pre><small><\/small><small>....\/direct\/assignment\/site\/cc2c88fe-a0fe-44d6-0046-89493362b2aa.json<\/small>\r\n<\/pre>\n<\/blockquote>\n<p>This will return a slew of JSON which will include the all-important assignment ID (or <tt>entityId<\/tt>\u00a0in Sakai terminology) for each assignment on the site &#8211; this will include unpublished (draft) and completed assignments.<\/p>\n<p>Search for the assignment title (use CTRL-F in the browser). Once the title has been located, copy the associated\u00a0<tt>entityId<\/tt>. The ID is the alphanumeric string between the quotes (starting &#8220;26a266&#8230;.&#8221; in the example)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6371\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/json.jpg\" alt=\"\" width=\"661\" height=\"320\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/json.jpg 661w, https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/json-300x145.jpg 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/p>\n<h2>Step Three &#8211; retrieve a\u00a0&#8220;view&#8221; deep link<\/h2>\n<p>Use the entity ID in the following URL<\/p>\n<blockquote>\n<pre><small><\/small><small>https:\/\/weblearn.ox.ac.uk\/direct\/assignment\/deepLink\/assignment\/<span style=\"color: #993300\"><em>[[assignment id]]<\/em><\/span>.json<\/small>\r\n<\/pre>\n<\/blockquote>\n<p>for example<\/p>\n<blockquote>\n<pre><small><\/small><small>....\/direct\/assignment\/deepLink\/assignment\/26a266ab-f7ac-4e0b-af36-c89709b0f4af.json<\/small><\/pre>\n<\/blockquote>\n<p>This will return a further slew of JSON which (more or less) contains the &#8220;magic&#8221; deep link URL, the &#8220;assignmentURL&#8221;. Copy this URL.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6369\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/deeplink1.jpg\" alt=\"\" width=\"674\" height=\"254\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/deeplink1.jpg 674w, https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/deeplink1-300x113.jpg 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/p>\n<h2>Step Four &#8211; remove backslash characters<\/h2>\n<p>Unfortunately you need\u00a0to edit the URL in order to remove all the &#8220;\\&#8221; characters. It&#8217;s probably easiest to do this whilst you are adding the URL to your Canvas page.<\/p>\n<h2>Step Five &#8211; construct a deep link which will allow submission<\/h2>\n<p>The URL from Step Fouris almost ready for use but needs one minor edit right at the very end of the URL.<\/p>\n<p>The very last part of the URL needs changing from<\/p>\n<blockquote>\n<pre>doView_assignment\r\n<\/pre>\n<\/blockquote>\n<p>to<\/p>\n<blockquote>\n<pre>doView_submission\r\n<\/pre>\n<\/blockquote>\n<p>The URL will now look like this<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6381\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/edited-url.jpg\" alt=\"\" width=\"784\" height=\"47\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/edited-url.jpg 784w, https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/edited-url-300x18.jpg 300w, https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/edited-url-768x46.jpg 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<p>You are now free to embed this on a Canvas page, when clicked, the student will see the assignment in WebLearn.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6379\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/WL-deeplink.jpg\" alt=\"\" width=\"633\" height=\"630\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/WL-deeplink.jpg 633w, https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/WL-deeplink-150x150.jpg 150w, https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/WL-deeplink-300x300.jpg 300w, https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/files\/2020\/01\/WL-deeplink-144x144.jpg 144w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to link directly to an individual assignment in WebLearn, however, this facility isn&#8217;t directly available in the user interface so I thought I&#8217;d present a relatively easy &#8220;recipe&#8221; on how to get hold of the link. Step &hellip; <a href=\"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/2020\/01\/linking-directly-to-an-individual-assignment\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[480,105],"tags":[],"class_list":["post-6350","post","type-post","status-publish","format-standard","hentry","category-migration","category-weblearn"],"_links":{"self":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/posts\/6350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/comments?post=6350"}],"version-history":[{"count":20,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/posts\/6350\/revisions"}],"predecessor-version":[{"id":6385,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/posts\/6350\/revisions\/6385"}],"wp:attachment":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/media?parent=6350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/categories?post=6350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/adamweblearn\/wp-json\/wp\/v2\/tags?post=6350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}