GitXplorerGitXplorer
k

GT-Zotero

public
12 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
82a20fa415e5cc91a2c0eebbe310c50329e9bfcd

Update spotter searches for new spotter

kkhinsen committed 2 years ago
Unverified
cc7678c549aa46b592d9af504759e4c6de04db00

Bug fix in group update

kkhinsen committed 2 years ago
Unverified
6ff049709cbee6e24fac61d578b4a6572fbe84e3

URL-encode DOIs transformed to URLs

kkhinsen committed 3 years ago
Unverified
676f5b7425ff658255a032ba09c2c0c61c55a065

OpenAlex button on ZtItems

kkhinsen committed 3 years ago
Unverified
93f166be05d2362b821033a53a11e031cfbc83c6

Add GT-OpenAlex as a dependency

kkhinsen committed 3 years ago
Unverified
feea31cfde8cc1367f93e845da702a893603322e

Bug fix

kkhinsen committed 3 years ago

README

The README file for this repository.

A Zotero client for Glamorous Toolkit

screenshot

Installation

  1. Launch Glamorous Toolkit and open a Playground.
  2. Paste the following lines into the playground and run them
Metacello new
    baseline: 'Zotero';
    repository: 'github://khinsen/GT-Zotero:main/src';
    load.

Functionality

For now, GT-Zotero is a read-only client. Its main use case is exploring and searching the items in a Zotero library, using GToolkit inspectors and Pharo code snippets. For managing your library, and in particular for adding items to it, use the Zotero desktop client.

Accessing your Zotero account

A Zotero account is defined by a username, but the Zotero Web API requires the associated userID, which is a number, plus an "API Token". You can obtain both from https://www.zotero.org/settings/keys, after logging in. The userID is displayed on that page, the API token is generated by clicking on "Create a new private key".

With these two pieces of information, execute the following lines (after substituting your username, userID, and API Token) in a Playground:

(ZtUser username: 'my-user-name')
	userId: '1234567';
	apiToken: '**********************************';
	storeCredentials

You have to do this only once, your credentials are stored for future use in FileLocator preferences / 'GT-Zotero' / 'credentials.v1.ston'.

Once your credentials are stored, you can access your Zotero data by inspecting the result of

ZtUser username: 'my-user-name'

From the ZtUser inspector, you can access your user library and the group libraries for all the groups of which you are a member.

The first time you open a library, all items in it will be downloaded, which might take a few minutes. The data is cached (in FileLocator home / '.cache' / 'GT-Zotero') and only updated (a much faster operation) when the library is accessed from a freshly created ZtUser instance.

Accessing a local Zotero file storage

The Zotero desktop client keeps copies of all the file attachments, which are normally not stored in the Zotero Web account. Under Linux and macOS, the default location of the directory is ${HOME}/Zotero/storage. GT-Zotero can access this storage, providing one-click access to the attachments, after an additional configuration step in the playground:

ZtLibrary configureStorage:
	(ZtLocalStorage directory:
		(FileLocator home / 'Zotero' / 'storage'))

The next time you open a library, it will use the configured storage by default.