-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bibtex export needs to be aligned to XML output #12
Comments
@opoudjis relaton renders |
@opoudjis the bibtex has a |
@opoudjis I've updated the BibTex renderer in the relaton-bib. Please install the GitHub version of the relaton-bib and try the BibTex output. |
.... No, if I am understanding you.
Yes. |
Well, we should not use DOI links in |
In the spec/examples/*.bib files, I notice:
Surely that's wrong, and it should be |
is missing from the BibTeX record:
|
bundle exec relaton fetch doi:10.5962/bhl.title.124254 -f bibtex This almost cleans up the record, as described in the blog post, but:
The address should be deleting the trailing comma: |
@opoudjis updated relaton-bib and relaton-doi, please try the latest commits from GitHub. |
I am happy with these fixes, thank you! |
I am writing a blog post advertising relaton-doi for metanorma.org. In order to promote relaton-doi, we need to make it usable at least in bibtex. (I would mention citeproc, but apparently we don't support it).
The example DOI I use is
relaton fetch doi:10.1515/9783110889406.257 -f bibtex
The good news is it works (it was crashing in the released version, on parsing the date).
The bad news is that it is leaving out much of the value add that the XML has:
The editors of the collected volume are absent, as are the coauthors, and any URIs.
If the issue here is that the BibTex export of relaton is only partial, then we need to beef it up to be complete. We cannot publicise relaton in a blog article if the only format the outside world knows about is Bibtex, and our bibtex mapping is this incomplete.
Request that you add bibtex output to all fixtures as well; this is the first time we're committing to outputting across all bibtypes in a gem, which is why we don't have great coverage.
Bibtex documentation online is not great, but taking https://www.bibtex.com/e/entry-types/ as a starting point:
BibTeX must include not just the first author or editor, but all of them, in a single prerendered string; e.g. "Lisa A. Urry and Michael L. Cain and Steven A. Wasserman and Peter V. Minorsky and Jane B. Reece"
If we want cleverer rendering of authors, with i18n and templates (e.g. "Susskind, L. & G. Hrabovsky"), you can use relaton-render, but we don't need it yet.
doi, isbn, and issn are non-standard bibtex fields. For now, do not use them.
url is a non-standard bibtex field, but from https://www.bibtex.com/f/url-field/ , it does seem widely used. I suggest we do use it. The standard-compatible way apparently is
howpublished = "\url{https://www.nytimes.com/what-we-learned-2018}"
, but I'm quite happy for us not to use it.FWIW, Crossref uses both:
The text was updated successfully, but these errors were encountered: