Help:Adding Zotero citations

From DFM Wiki
Revision as of 10:23, 19 April 2021 by EricThrift (talk | contribs) (Add info on how to configure the Zotero client for retrieval of item URIs.)

It is possible to add Zotero citations to documents in the wiki. Any cited reference MUST be available in a group library. By default, and unless you specify otherwise, items will be retrieved from the DFM library.

Adding citations in the visual editor

Inside the visual editor view (accessed by following the "Edit" or "Create" link to a page), you will see the option to cite Zotero items in the menu at the top:

Zotero item insert menu option in the MediaWiki visual editor interface menu

The insert menu will ask for the 8-character item key. You can look this up in the web version of the library, although it is also possible to retrieve the key from the desktop client (see below). Here are the web search results for “Nyein and Mathew”, for example:

Item search results and key from the Zotero web library.png

The Zotero item key (ID) is the part of the URL following the “items” part. So if the address bar shows this:

https://www.zotero.org/groups/2183860/dried_fish_matters/search/Nyein/titleCreatorYear/items/4SSP4CYN/item-list

the key is 4SSP4CYN.

This can be copied into the citation box as follows:

Zotero item key entry in wiki.png

And we get this:

Zotero item inserted in wiki text.png

Retrieving item IDs from the Zotero desktop client

It is possible to retrieve item IDs from the Zotero desktop client, although this requires some additional configuration of the client.

Step 1: Install translator

Save the following file as “Zotero Item ID.js” to your Zotero “translators” directory. On Windows, this will be Users \ <your username> \ Zotero \ translators.

https://driedfishmatters.org/wiki/Zotero_Item_ID.js?action=raw

Step 2: Configure Zotero

In the Zotero desktop client, go to Edit > Preferences then select the “Export” tab menu. Under “Default Format”, choose “Zotero item ID” from the drop-down menu.

Setting the preference to use "Zotero citation ID" (URL) export in the Zotero Desktop client.


You should now be able to copy the ID of any item in the library by selecting that item and pressing SHIFT + CTRL + C.