notes-20160920

Adding a citation to a Canvas page via Zotero.

 

Simple example ["Field_setCode",[2,0,"ITEM CSL_CITATION {\"citationID\":\"LSgP0Iv4\",\"properties\":{\"formattedCitation\":\"[1]\",\"plainCitation\":\"[1]\"},\"citationItems\":[{\"id\":8993,\"uris\":[\"http://zotero.org/groups/153536/items/B8T3JXR6\"],\"uri\":[\"http://zotero.org/groups/153536/items/B8T3JXR6\"],\"itemData\":{\"id\":8993,\"type\":\"paper-conference\",\"title\":\"A Generic Raster Display for Medical Images: A Description\",\"container-title\":\"Proceedings of the Nineteenth Annual Hawaii International Conference on System Sciences\",\"publisher\":\"IEEE and ACM\",\"publisher-place\":\"Honolulu, Hawaii, USA\",\"page\":\"279-288\",\"event\":\"Nineteenth Annual Hawaii International Conference on System Sciences\",\"event-place\":\"Honolulu, Hawaii, USA\",\"author\":[{\"family\":\"Maguire Jr.\",\"given\":\"G. Q.\"},{\"family\":\"Noz\",\"given\":\"Marilyn E.\"}],\"issued\":{\"date-parts\":[[\"1986\",1]]}}}],\"schema\":\"https://github.com/citation-style-language/schema/raw/master/csl-citation.json\"}"]] Links to an external site.

 

The parameter for the above LTI launch were

params to /lti_launch
{"oauth_consumer_key"=>"consumerkey",
"oauth_signature_method"=>"HMAC-SHA1",
"oauth_timestamp"=>"1474376681",
"oauth_nonce"=>"eU4JdMesopIxuBOtsA66hmq2ZXUAjmt9lurQylGI",
"oauth_version"=>"1.0",
"context_id"=>"08d76eee8fbed3381e05c688c1f630b7d84cf06c",
"context_label"=>"Chip",
"context_title"=>"Chip sandbox",
"custom_canvas_enrollment_state"=>"active",
"ext_content_intended_use"=>"embed",
"ext_content_return_types"=>"oembed,lti_launch_url,url,image_url,iframe",
"ext_content_return_url"=>"https://kth.instructure.com/courses/11/external_content/success/external_tool_dialog",
"ext_roles"=>"urn:lti:instrole:ims/lis/Administrator,urn:lti:instrole:ims/lis/Instructor,urn:lti:role:ims/lis/Instructor,urn:lti:sysrole:ims/lis/User",
"launch_presentation_document_target"=>"iframe",
"launch_presentation_height"=>"500",
"launch_presentation_locale"=>"en-GB",
"launch_presentation_return_url"=>"https://kth.instructure.com/courses/11/external_content/success/external_tool_dialog",
"launch_presentation_width"=>"500",
"lti_message_type"=>"basic-lti-launch-request",
"lti_version"=>"LTI-1p0",
"oauth_callback"=>"about:blank",
"resource_link_id"=>"08d76eee8fbed3381e05c688c1f630b7d84cf06c",
"resource_link_title"=>"test app",
"roles"=>"Instructor,urn:lti:instrole:ims/lis/Administrator",
"selection_directive"=>"embed_content",
"text"=>"",
"tool_consumer_info_product_family_code"=>"canvas",
"tool_consumer_info_version"=>"cloud",
"tool_consumer_instance_contact_email"=>"notifications@instructure.com",
"tool_consumer_instance_guid"=>"ySt5cF5tiEU8j5oIzxT2J98caTu54Vl6y9s6gYdS:canvas-lms",
"tool_consumer_instance_name"=>"KTH Royal Institute of Technology",
"user_id"=>"97d0ab13fafc432d23aa6cd73fc51d769d651f21",
"oauth_signature"=>"Vesv8yrQ9wTA9mqwH2zrBdXwCG8="}