This repository contains the Zotero translation architecture code responsible for
parsing Zotero translators and running them on live and static web pages to retrieve
Zotero items.
A consumer of this repository needs to implement the following interfaces:
Zotero.Translators found in translators.jsZotero.HTTP found in http.jsZotero.Translate.ItemSaver found in translation/translate_item.jsYou also need to:
Zotero.Schema.init(data) with Zotero schema.json.Zotero.Date.init(json) with the JSON from utilities/resource/dateFormats.jsonrequire('../utilities/cachedTypes').setTypeSchema(typeSchema)utilities/resource/zoteroTypeSchemaData.js.Please bundle translators and Zotero schema with the translation architecture.
Do not load them from a remote server.
You may also want to reimplement or modify:
Zotero.Repo found in repo.js to set up periodic translator update retrievalZotero.Debug found in debug.js to customize debug loggingZotero and Zotero.Prefs found in zotero.js to set up the environment andZotero.Translate.ItemGetter found in translation/translate_item.js for exportZotero.Translate.SandboxManager found in translation/sandboxManager.js forSee example/index.html for file loading order.
To run the example:
$ git submodule update --init
$ google-chrome --disable-web-security --user-data-dir=/tmp/chromeTemvar
Open example/index.html in the CORS ignoring Google Chrome
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.