https://github.com/caltechlibrary/manage_dois
Scripts for managing custom DOIs
https://github.com/caltechlibrary/manage_dois
datacite doi
Last synced: about 1 year ago
JSON representation
Scripts for managing custom DOIs
- Host: GitHub
- URL: https://github.com/caltechlibrary/manage_dois
- Owner: caltechlibrary
- License: other
- Created: 2018-05-21T18:56:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-19T22:34:35.000Z (over 3 years ago)
- Last Synced: 2025-04-13T05:50:01.927Z (about 1 year ago)
- Topics: datacite, doi
- Language: Python
- Size: 65.4 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
- Codemeta: codemeta.json
Awesome Lists containing this project
README
# manage_dois
Scripts to manage custom DOIs
Requires:
Python 3 (Recommended via [Anaconda](https://www.anaconda.com/download)) with [requests](https://pypi.python.org/pypi/requests) library and [Dataset](https://github.com/caltechlibrary/dataset).
Set your DataCite password by making a file 'pw' under the directory 'data'
## DOIs for Web Sites
- web_doi.py - Search google sheet for archived web sites that need DOIs
- static_content.py - Takes a CaltechDATA id and url for the web view of an
interactive resource stored in CaltechDATA
## TCCON New Site Release
- Get a .xlsx metadata template (TCCON_Metadata_Template.xlsx) completed by the site PI.
Type `python tccon_doi.py template.xlsx` to generate a .json metadata file.
Transfer to TCCON server. Make sure the site has a web site (e.g.
https://tccon-wiki.caltech.edu/Sites/Hefei) and add to
create_readme_contents_tccon-data. Type ./run_new_site hf
## Local Cool DOI Creation
You need some ruby dependencies installed. On a mac type :
`sudo gem install base32-url`
`sudo gem install securerandom`
Then you can generate the DOI suffix with:
`./gen-cool-doi`
or in python
`suffix = subprocess.check_output(['./gen-cool-doi'],universal_newlines=True)`