Skip to content
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

Added BibTeX import feature #509

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

MaxiGalaxi
Copy link

Closes #50

Summary

Added BibTeX import option, by extracting the DOI from the .bib file and building a session.

In-depth

In SelectedPublicationsComponent.vue:
Added a button to import a BibTeX file, that calls a helper function 'bibtexParser' in Util.js to parse the BibTeX. The returned session is then directly used.

In Util.js:
Added function 'bibtexParser' which takes a file, searches for DOI: #######, and returns a session file (formatted like an exported session).

…traction of DOIs from a BibTeX file. The function uses a regular expression to find all occurrences of DOIs and stores them in an array. The extracted DOIs are then returned as part of a session object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BibTeX import
1 participant