Skip to content

Files

Latest commit

55a5659 · Dec 9, 2021

History

History
This branch is 98 commits behind cnerg/cnerg.github.com:main.

zotero

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 9, 2021
Dec 30, 2020

Automating Updates the Publication List

This script is provided to support testing of the Zotero API. The live website is built using Github actions that invoke similar commands without using this script. If you are debugging the way that the live pages use Zotero, you may want to look into the Github workflows.

The script update_json_w_bibtex.sh will perform queries of the following CNERG Publication sub-collections, getting the most recent 100 items in each and storing them in different files.

  • Refereed Publications -> pub.json
  • Thesis Archive -> theses.json

In order to complete this task, the user must have generated a Oauth key with their own Zotero account. That key should exist in a the file zotero/zotero.key.header. This file should only contain the following:

Zotero-API-Key: <key-goes-here>

where <key-goes-here> should be replaced with your own custom key which will be a 24 character string composed of upper- and lower-case letters and numbers.

When generating the key, it is (probably) necessary to select "Allow library access" and "Read Only" for the Default Group Permissions.