notes-20160815: more zotero integration

I would like to cite a paper here ["Field_setCode",[2,0,"ITEM CSL_CITATION {\"citationID\":\"lSo7SajX\",\"properties\":{\"formattedCitation\":\"[1]\",\"plainCitation\":\"[1]\"},\"citationItems\":[{\"id\":16823,\"uris\":[\"http://zotero.org/groups/335735/items/BZH2W6F5\"],\"uri\":[\"http://zotero.org/groups/335735/items/BZH2W6F5\"],\"itemData\":{\"id\":16823,\"type\":\"article-journal\",\"title\":\"BufferBloat: What's Wrong with the Internet?\",\"container-title\":\"Queue\",\"page\":\"10\",\"volume\":\"9\",\"issue\":\"12\",\"source\":\"CrossRef\",\"URL\":\"http://dl.acm.org/citation.cfm?doid=2076796.2076798\",\"DOI\":\"10.1145/2076796.2076798\",\"ISSN\":\"15427730\",\"shortTitle\":\"BufferBloat\",\"language\":\"en\",\"author\":[{\"literal\":\"Jim Gettys\"},{\"literal\":\"Kathleen Nichols\"}],\"issued\":{\"date-parts\":[[\"2011\",12,1]]},\"accessed\":{\"date-parts\":[[\"2014\",8,31]]}}}],\"schema\":\"https://github.com/citation-style-language/schema/raw/master/csl-citation.json\"}"]] Links to an external site.

Step 1: Click on the Add Citation button (which invokes the test application via LTI)

 Image

Step 2: This program sends the appropriate messages to the Zotero Word/LibreOffice plugin to get the prompt for the user to enter their desired reference.

Image

Step 3: The integration API shows either the simple view or the Classic View (shown below) so the user can make their choice of reference from their desired collection of references.

Image

Step 4: The user selects their references and then clicks "OK".

Image

Step 5: The LTI code puts the field code returned by the Zotero integration API as the text.

Image

Step 6: View the HTML to see the URL (http://api.zotero.org/groups/335735/items/BZH2W6F5?format=bib&key=ydkHgvxj6R8YvPk27ZfMffqc) Links to an external site. - has been added

Image

Finally save the page and click this URL - shows the formatted reference in the new window.

 Image

It is possible to change the formatting by adding a style parameter to the Zotero API call. For example, IEEE-with-url:

https://api.zotero.org/groups/335735/items/BZH2W6F5?format=bib&key=ydkHgvxj6R8YvPk27ZfMffqc&style=ieee-with-url

You can see the newly formatted reference below: