188BET靠谱吗Zotero Plugin Development

This page is a work in progress.

188BET靠谱吗Introduction to Zotero Plugins

188BET靠谱吗Zotero plugins run within the Zotero desktop app and interact with Zotero's internalJavaScript APIand internal Firefox APIs.

If you plan to write a plugin, you can start by taking a look at theofficial sample pluginas well asexisting third-party plugins.

188BET靠谱吗Alternatives to Zotero Plugins

Depending on your use case, it may be easier to create an external tool that uses theWeb API188BET靠谱吗to access Zotero libraries, read from (not write to!)188BET靠谱吗the Zotero client's SQLite database,run ad hoc JavaScript188BET靠谱吗within Zotero, or interact withone of the other APIs188BET靠谱吗that the Zotero client exposes (e.g., for word processor integration).

The188BET靠谱吗Zotero Plugins page188BET靠谱吗(which takes an expansive view of the term "plugin") can be very helpful in helping you develop your own Zotero-based tools.

Setting Up a Plugin Development Environment

188BET靠谱吗When developing a Zotero client plugin, it's helpful to have Zotero run the plugin directly from source.188BET靠谱吗After creating your plugin's source directory with sample code, you can tell Zotero to load the plugin by creating an extension proxy file.(This is a technique that used to be possible for Firefox extension development, though it's since been discontinued in Firefox.)

  1. 188BET靠谱吗Close Zotero.
  2. Create a text file in the 'extensions' directory of your 188BET靠谱吗Zotero profile directorynamed after the extension id (e.g., myplugin@mydomain.org).The file contents should be the absolute path to the root of your plugin source code directory, where your install.rdf or bootstrap.js file is located.
  3. 188BET靠谱吗Open prefs.js in the Zotero profile directory in a text editor and delete the lines containing extensions.lastAppBuildIdand extensions.lastAppVersion.188BET靠谱吗Save the file and restart Zotero.188BET靠谱吗This will force Zotero to read the 'extensions' directory and install your plugin from source, after which you should see it listed in Tools → Add-ons.This is only necessary once.
  4. 188BET靠谱吗Whenever you make changes to your plugin code, start up Zotero from the command line and pass the -purgecaches188BET靠谱吗flag to force Zotero to re-read any cached files.188BET靠谱吗(This may no longer be necessary with Zotero 7.) You'll likely want to make an alias or shell script that also includes the 188BET靠谱吗-ZoteroDebugTextand -jsconsoleflags and perhaps -p , where is the name of a development profile.
Baidu
map