fabian-beck / pure-suggest

Citation-based literature search
https://fabian-beck.github.io/pure-suggest/
MIT License
41 stars 4 forks source link

Added BibTeX import feature #509

Open MaxiGalaxi opened 2 months ago

MaxiGalaxi commented 2 months ago

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).