Skip to content

Instantly share code, notes, and snippets.

View Institute of Physics.js
{
"translatorID":"9346ddef-126b-47ec-afef-8809ed1972ab",
"label":"Institute of Physics",
"creator":"Michael Berkowitz",
"target":"^http://iopscience.iop.org/[0-9\\-]+/.+",
"minVersion":"1.0.0b4.r5",
"maxVersion":"",
"priority":99,
"inRepository":"1",
"translatorType":4,
View New Zealand Herald
{"translatorID":"207f4aad-b604-43ef-a7f5-3e6229aade9f",
"label":"New Zealand Herald",
"creator":"Sopheak Hean (University of Waikato, Faculty of Education)",
"target":"www.nzherald.co.nz",
"minVersion":"1.0",
"maxVersion":"",
"priority":100,
"inRepository":"1",
"translatorType":4,
"lastUpdated":"2010-07-30 09:26:09"}
View New Zealand Herald.js
{"translatorID":"207f4aad-b604-43ef-a7f5-3e6229aade9f",
"label":"New Zealand Herald",
"creator":"Sopheak Hean (University of Waikato, Faculty of Education)",
"target":"www.nzherald.co.nz",
"minVersion":"1.0",
"maxVersion":"",
"priority":100,
"inRepository":"1",
"translatorType":4,
"lastUpdated":"2010-07-30 09:26:09"}
View The Economist.js
{
"translatorID":"6ec8008d-b206-4a4c-8d0a-8ef33807703b",
"label":"The Economist",
"creator":"Michael Berkowitz",
"target":"^http://(www.)?economist.com/",
"minVersion":"1.0.0b4.r5",
"maxVersion":"",
"priority":100,
"inRepository":"1",
"translatorType":4,
@avram
avram / overlay.xul
Created Dec 8, 2010
Zotfile key files changed for photo workflow
View overlay.xul
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://zotfile/skin/overlay.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://zotfile/locale/zotfile.dtd">
<overlay id="zotfile-overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<stringbundleset id="stringbundleset">
<stringbundle id="zotfile-strings"
src="chrome://zotfile/locale/zotfile.properties"/>
@avram
avram / gist:758294
Created Dec 29, 2010
australian harvard
View gist:758294
<group delimiter=" ">
<text macro="author-short"/>
<group delimiter=":">
<text macro="year-date"/>
<text variable="locator"/>
</group>
</group>
@avram
avram / gist:781665
Created Jan 16, 2011
Error when installing zotero-multi-2.xpi over Zotero 2.1b4
View gist:781665
[JavaScript Error: "uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.createStatement]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://zotero/content/xpcom/db.js :: anonymous :: line 292" data: no] [QUERY: SELECT I.*, COALESCE(CASE (SELECT COUNT(*) FROM itemCreators IC LEFT JOIN itemTypeCreatorTypes ITCT ON (IC.creatorTypeID=ITCT.creatorTypeID AND ITCT.itemTypeID=I.itemTypeID) WHERE itemID=I.itemID AND primaryField=1) WHEN 0 THEN NULL WHEN 1 THEN (SELECT lastName FROM itemCreators IC NATURAL JOIN creators NATURAL JOIN creatorData LEFT JOIN itemTypeCreatorTypes ITCT ON (IC.creatorTypeID=ITCT.creatorTypeID AND ITCT.itemTypeID=I.itemTypeID) WHERE itemID=I.itemID AND primaryField=1) WHEN 2 THEN (SELECT (SELECT lastName FROM itemCreators IC NATURAL JOIN creators NATURAL JOIN creatorData LEFT JOIN itemTypeCreatorTypes ITCT ON (IC.creatorTypeID=ITCT.creatorTypeID AND ITCT.itemTypeID=I.itemTypeID) WHERE itemID=I.itemI
@avram
avram / gist:782055
Created Jan 16, 2011
Debug from multilingual-- broken collection
View gist:782055
(4)(+0088212): Unregistering observer in notifier with hash 'pE'
(4)(+0000004): Registering observer for [item,collection-item,share-items,bucket] in notifier with hash XA'
(3)(+0000140): Refreshing items list
(5)(+0000001): SELECT tag FROM zlsPreferences WHERE profile=? AND param=?
(5)(+0000000): Binding parameter 1 of type string: "default"
@avram
avram / gist:784712
Created Jan 18, 2011
Multilingual Zotero error
View gist:784712
[JavaScript Error: "reversePartnerItemIDs[deleteid] is undefined" {file: "chrome://zotero/content/xpcom/duplicate.js" line: 320}]
[JavaScript Error: "this._getItemAtRow(row) is undefined" {file: "chrome://zotero/content/xpcom/itemTreeView.js" line: 403}]
[JavaScript Error: "this._getItemAtRow(row) is undefined" {file: "chrome://zotero/content/xpcom/itemTreeView.js" line: 403}]
[JavaScript Error: "'subject' is not a valid field for type 8" {file: "chrome://zotero/content/bindings/itembox.xml" line: 2291}]
[JavaScript Error: "this._getItemAtRow(row) is undefined" {file: "chrome://zotero/content/xpcom/itemTreeView.js" line: 403}]
@avram
avram / gist:784723
Created Jan 18, 2011
Another multi error
View gist:784723
[JavaScript Error: "tipElement.ownerDocument is null" {file: "chrome://browser/content/browser.js" line: 2376}]
[JavaScript Error: "stmt is undefined" {file: "chrome://zotero/content/xpcom/data/item.js" line: 1952}]
[JavaScript Error: "stmt is undefined" {file: "chrome://zotero/content/xpcom/data/item.js" line: 1952}]
[JavaScript Error: "row.firstChild is undefined" {file: "chrome://zotero/content/bindings/itembox.xml" line: 913}]
[JavaScript Error: "row.firstChild is undefined" {file: "chrome://zotero/content/bindings/itembox.xml" line: 913}]
You can’t perform that action at this time.