piater / zenodo-import-bibtex

Pre-fill Zenodo metadata and upload files using a BibTeX file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zenodo-import-bibtex

Import publications from a BibTeX (.bib) file to Zenodo using Zenodo's REST API

This tool attempts to make reasonable use of the BibTeX data to fill as many of the available Zenodo metadata fields as possible.

The data models of Zenodo and BibTeX are so different that fully-automatic import is not possible. The result needs to be checked, and almost always completed or corrected, and published by hand.

In addition to the formally-defined BibTeX fields, this script makes use of the following:

  • abstract is used to fill Zenodo's Description field. (If it does not exist, notes is used instead, and if that is not used, placeholder text is inserted, since the Zenodo API requires a Description to be specified.)
  • keyword containing a comma-separated list of keywords
  • doi
  • url will be recorded as a Related/alternate identifier to an identical resource.
  • If -p is given and if the url field is present and ends in .pdf, then the tool attempts to upload the given PDF file. It will take it from the directory specified via -p, or, if not found there, will attempt to download the url.

Configuration File

A configuration file can be specified ($HOME/.config/zenodo-import-bibtex/config.json by default, if it exists), which may hold the following information:

  • author affiliations and ORCIDs
  • options corresponding to long command-line argument names

See the example configuration file supplied.

State of this Project

  • The script is already useful.
  • BibTeX parsing and metadata provision to Zenodo are probably incomplete.
  • The usage is not geared towards non-technical people.
  • The script does not check for duplicates.

About

Pre-fill Zenodo metadata and upload files using a BibTeX file.

License:GNU General Public License v3.0


Languages

Language:TeX 60.0%Language:Python 40.0%