Need some hints on accessing zotero 2.x via mozrepl

Hello all,

I recently started to work on bringing Zotero and Emacs together. As I recognized the integration server is gone I chose to interact with Zotero via MozRepl and after some small steps in the world of JavaScript got a prove of concept, an elisp function that exports Zotero items to bibtex[1]. It's really clumsy but building up on that I am certain to be able to go ahead.

As this is the first time I deal with JavaScript as a programmer I was able to write this function by looking at a Perl script[2] that accesses Zotero via MozRepl and exports to whole library as BibTex.

My next step on the list is not exporting but inserting citations and/or bibliographic references in an Emacs buffer but after staggering through Zotero's source-code and some plugins I wasn't quite able to find "how it is done" the JavaScript way.

I suppose the Zotero.CLS Object is the right thing to tinker but before I start the trial-and-error method maybe someone could give a clue (a) where or (b) how I can observe some piece of code to insert citations or (c) a simple example of which functions to call in which order for, let's say: create bibliographic reference with a defined style for an item.

In case (c) just the functions would be enough.

Regards,

-- David

[1] http://gist.github.com/252402
[2] http://www.curiousjason.com/zoterotobibtex.html
This discussion has been closed.