I was looking into the possibility of adding citoid support to the RefToolbar gadget, but I noticed a potential complication. If the URL given to citoid is for a book chapter it will return the chapter title as "title" and the book title as "bookTitle", but if the URL is for a book (https://books.google.com/books?id=k-XBMNVRfw4C), it will return the book title as "title". I decided to take a look at how VisualEditor handles this problem and discovered that it doesn't. Because there is no way to set up a reliable mapping in the TemplateData (that I could figure out), it simply fills in the wrong value for the title param and drops the real book title in the case of URLs for book chapters.
Example:
http://accessemergencymedicine.mhmedical.com/content.aspx?sectionid=72121336&bookid=1345&Resultclick=2
10.1017/isbn-9780511132971.eh1-7
done
[x] en
[x] fr