-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate BibTeX from DOIs #10
Conversation
So glad to hear this! 😄
This is very timely! I was thinking about this just recently. I pulled most of these references from one of my Zotero group folders for a community review of low-cost SDLs. I changed this to "Public Closed" just now, so you should be able to view it.
I was thinking about the following (with some of the pieces that were missing inspired by your PR):
It looks like the Zotero API can access group folders ("User and Group Library URLs" section) and also initiate write requests. This could be done manually by adding the reference to the Zotero folder via the Zotero desktop app or programmatically via a GitHub action that uses the Zotero API to add new entries after a PR is merged. I like your approach. It's already working and runs autonomously like SDLs 😉. Maybe in the future, we can do something with the Zotero group folder option. I don't think the Also, thank you for the clear summary of this PR! Lmk what you think of my requested changes. |
For later, I took a quick stab at making a Zotero group folder that mirrors the structure: https://www.zotero.org/groups/5078606/awesome-self-driving-labs |
Co-authored-by: Sterling G. Baird <sterling.baird@utah.edu>
handle `dx.doi` prefix
This is great for me!
Does the Zotero API let you export .bib for group folders? If so, then might not need this step. |
Good point! I'll check. |
Looks like it's supported (read requests section): https://www.zotero.org/support/dev/web_api/v3/basics#export_format |
Thanks for the great contribution! |
Sure no problem. It looks like the git action for add and commit may be failing, this requires change the read and write permissions for the repo to enable. ad-m/github-push-action#96 (comment). I'm seeing your issue #13 now. |
@stefanbringuier thanks for linking that! Adjusting settings per the image in the linked comment was straightforward. |
I'm using this repo list extensively for my references, but want to be able to continuously update my Zotero library from this list using a
.bib
file. This is my approach, but I'm sure better and more streamlined implementations can be devised. Maybe it's useful for others, but if you think it clutters the tree up, feel free to reject.Changes Made
Introduces the
bibtex/generate_bibtex.py
script to the repository. This script serves to create a BibTeX bibliography from the DOI's in thereadme.md
file.Description of the
generate_bibtex.py
scriptThe
generate_bibtex.py
script performs the following functions:readme.md
and requestBibTeX
entry from server.bibtex/references.bib
file.GitHub Action Integration
Introduced job
run-script
in.github/workflow/references.yml
which is set to execute upon a push to themain
branch. The job includes the GitHub actionAdd & Commit
for the filebibtex/references.bib
. This requires workflow read and write permissions.Limitations
BibTeX
entry, otherwise ignored.