en205

Month

May 2009

1 post

"Import from Clipboard" for Zotero

I spent a half day recently learning the necessary XUL and Javascript to add an “import from clipboard” function to Zotero. This is a big improvement on my my old process for adding entries with BibTex embedded in a web page. Previously I had to:

  1. Copy the BibTex to the clipboard
  2. Paste it into a temporary file
  3. Choose the import from file function

This got frustrating very quickly. Now I can just:

  1. Copy the BibTex to the clipboard
  2. Choose the import from clipboard function

Apparently there has been talk of having Zotero automatically detect the presence of BibTex on a web page and offer to import it. That would be great.

For the mean time, here is my patch. The diff is against the current 1.0 SVN version, but the last I checked it applied okay against the trunk too. I’ve only tested with BibTex on Mac and Linux, but, possible encoding issues aside, I expect it will work with the other supported import formats.

Zotero’s dev/svn and trac access page explains how to switch to an SVN version from a packaged version.

Disclaimer: I’m not associated with the Zotero project and this is not release quality code. Your mileage may vary.

May 2, 200912 notes
Next page →
2010 2011
  • January
  • February
  • March
  • April 1
  • May 1
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2009 2010 2011
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2008 2009 2010
  • January
  • February
  • March
  • April 1
  • May 1
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2008 2009
  • January
  • February
  • March
  • April
  • May
  • June 10
  • July 3
  • August
  • September
  • October
  • November 1
  • December