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

import --bibtex creates strange filenames for *.bib files #29

Closed
andreas-h opened this issue Feb 16, 2019 · 2 comments
Closed

import --bibtex creates strange filenames for *.bib files #29

andreas-h opened this issue Feb 16, 2019 · 2 comments

Comments

@andreas-h
Copy link

I just installed using pip install academic; academic -h tells me I'm using version v0.3.0.

When I run academic import --normalize --bibtex publications.bib, the *.bib files which are created all have the filename {slugify(entry['ID'])}.bib. In my site, when clicking on the download link in the cite popup, I do get prompted for the download, and the download works okay, but the filename is again {slugify(entry['ID'])}.bib, which is ugly and confusing.

@andreas-h
Copy link
Author

Just noticed that in the cite popup, there is the message Error: 0 error written in red next to the download button, but the download still works.

@gcushen
Copy link
Collaborator

gcushen commented Feb 16, 2019

There is only one form of ID available to us per Bibtex entry. The folder name created by this tool is the Bibtex ID which many reference managers give you the freedom to define. The rest of the algo is just converting it to a web-safe name. I have opened #30 to propose our own ID generation scheme - feel free to contribute.

@gcushen gcushen closed this as completed Feb 16, 2019
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

No branches or pull requests

2 participants