Skip to content

{ Tag Archives } Zotero

Zotz and the limitations of the Zotero plugin framework

Zotz Developer's Guide – SIMILE has a useful warning to all who work on developing Zotero plugins: Zotz is a Zotero add-on, but it's written as a regular Firefox extension: the nature of firefox extensions all living in the same address space allows extensions to invoke each other internal methods, which means that Zotz can […]

Also tagged ,

copying to clipboard Zotero citations as HTML w/ chickenfoot

Here's a first pass at a Chickenfoot script that copies selected Zotero items as HTML to the clipboard.  (I couldn't find anything in the Zotero interface to do exactly this function.  There is a  Create Bibliography from Selected Item(s)->Copy to Clipboard but that seems to copy citations as RTF for me.) var Zotero = chromeWindow.Zotero; […]

Also tagged

I installed the coins-metadata plugin

I just installed coins-metadata plugin for my various WordPress blogs so that Zotero can pick up the embedded OpenURL ContextObject in SPAN (COinS).

Also tagged

studying sync.js to (start) to understand how Zotero does synchronization

This morning I was studying how Zotero performs synchronization among libraries distributed in different Firefox profiles via Zotero sync server. Specifically, I printed out /extension/tags/1.5-sync3.5/chrome/content/zotero/xpcom/sync.js to decipher some off its workings. My goal wasn't to understand all the code, which gets pretty complicated, because of the complexities of things like conflict resolution. Rather, my focus […]

Also tagged

Range of creator types in Zotero

One thing that I didn't know about Zotero was the range of creator types in Zotero. Here's a Chickenfoot script that you can run to list them: // to explore the range of creatorTypes // to do: figure out how to get localized string for different creator types var Zotero = chromeWindow.Zotero; var creatorTypes = […]

Also tagged

Accessing attributes of Zotero Items

The following Chickenfoot script demonstrates how to access attributes related to Zotero items. (I've run this script on both Zotero 1.0.7 and the latest named release of  Zotero 1.5 Sync Preview (1.5-sync3.5))): // zotero_item_show_pieces.js // code to extract elements of the first selected item // Dec 16, 2008 var Zotero = chromeWindow.Zotero; var ZoteroPane = […]

Also tagged

Getting primary and secondary item types in Zotero

A Chickenfoot script for calculating the primary and secondary Zotero items (which draws upon the code in overlay.js->onLoad(): // based on https://www.zotero.org/trac/browser/extension/tags/1.0.7/chrome/content/zotero/overlay.js#L153 var Zotero = chromeWindow.Zotero; var itemTypes = Zotero.ItemTypes.getPrimaryTypes(); for(var i = 0; i<itemTypes.length; i++) { output (itemTypes[i]['name'] + ":" + itemTypes[i]['id']); } var itemTypes = Zotero.ItemTypes.getSecondaryTypes(); for(var i = 0; i<itemTypes.length; i++) { output (itemTypes[i]['name'] + ":" + itemTypes[i]['id']); } The output of the script is (for […]

Also tagged

A screencast to show Chickenfoot scripting of Zotero

Several weeks ago, I wrote (a blog post and a post on the zotero-dev group) on how to use Chickenfoot to script Zotero. I'm starting to experiment with creating little videos that I hope will make my technical posts easier to understand. Here's one I just made to illustrate what I wrote about in the […]

Also tagged ,

adding all Firefox tabs to Zotero using Chickenfoot

We can now build on what was presented in the previous blog post: Adding items to Zotero with Chickenfoot. The end goal is to loop through all the tabs and add Each of them as items into Zotero. So we need to figure out how to access the tabs. I would do so here by […]

Also tagged

Adding items to Zotero with Chickenfoot

Here I report a few code fragments that you can try in Chickenfoot to create a Zotero item from the contents in the selected tab of your browser. (For a bit of context for what I'm talking about here, see my previous post Data Unbound » Accessing Zotero via Chickenfoot: a warm up exercise.) There's […]

Also tagged