Skip to content

Instantly share code, notes, and snippets.

@zuphilip
zuphilip / zotero-wikidata-lookup.js
Last active December 16, 2021 10:52
Zotero Script for Wikidata Lookup
// Zotero script look up selected items in Wikidata and
// check whether the DOI can be found there. If results
// are found then the QIDs are saved in the corresponding
// items in the extra field. Some warnings are given for the
// other cases; thus you may want to watch the Zotero error
// console as well during execution of the script. [CC0]
var items = Zotero.getActiveZoteroPane().getSelectedItems();
var map = [];
@slowkow
slowkow / zotero-pdf-program.md
Last active June 13, 2018 14:03
Open pdfs in Zotero with a different program than your other pdfs

I want to open pdf files with program A unless it is stored in Zotero, in which case I want to open it program B.

  1. Change the OS settings, so the default program for opening pdf files is the shell script shown below.
  2. Set Zotero preferences to store files in "zotero-data".

Below, I use playonlinux to launch Foxit Reader for my Zotero pdf files because Foxit has nice highlighting and annotation features that I like to use on scientific articles. I use [evince][4] for all other pdf files (figures, books, documents, etc.)