Closed opoudjis closed 1 year ago
@opoudjis relaton renders journal = /series[@type="journal"]/name
and series = /series[not(@type)]/name
. Should we change the behavior?
In the Relaton model, the series
attribute is an array. The BibTex format allows only one journal
value. Should we use only the first series?
url = {https://doi.org/10.1515%2F9783110889406.257},
@opoudjis the bibtex has a doi
field https://www.bibtex.com/f/doi-field/, shouldn't we use it for DOI type links instead of url
?
@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.
@opoudjis relaton renders
journal = /series[@type="journal"]/name
andseries = /series[not(@type)]/name
. Should we change the behavior?
.... No, if I am understanding you.
In the Relaton model, the
series
attribute is an array. The BibTex format allows only onejournal
value. Should we use only the first series?
Yes.
url = {https://doi.org/10.1515%2F9783110889406.257},
@opoudjis the bibtex has a
doi
field https://www.bibtex.com/f/doi-field/, shouldn't we use it for DOI type links instead ofurl
?
Well, we should not use DOI links in url
, because they are not real URLs. OTOH, doi
should be actual DOIs (the suffix of URL, not URL-encoded), not the URL.
In the spec/examples/*.bib files, I notice:
month = apr,
Surely that's wrong, and it should be month = {apr},
relaton fetch doi:10.1515/9783110889406.257 -f bibtex
is now working better, but:
<uri>https://www.degruyter.com/document/doi/10.1515/9783110889406.257/html</uri>
is missing from the BibTeX record:
@inbook{heller-a,
title = {Gender and public space in a bilingual school},
author = {Heller, Monica},
editor = {Pavlenko, Aneta and Blackledge, Adrian and Piller, Ingrid and Teutsch-Dwyer, Marya},
booktitle = {Multilingualism, Second Language Learning, and Gender},
publisher = {DE GRUYTER MOUTON},
address = {Berlin},
timestamp = {2023-01-15},
doi = {http://dx.doi.org/10.1515/9783110889406.257}
}
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:
@book{kuster1852a,
title = {Die Gattungen Pupa, Megaspira, Balea und Tornatellina : in Abbildungen nach der Natur mit Beschreibungen},
author = {Kuster, H. C. and Chemnitz, Johann Hieronymus and Martini, Friedrich Heinrich Wilhelm},
publisher = {Verlag von Bauer und Raspe (Julius Merz)},
year = {1852},
address = {Nürnberg, },
timestamp = {2023-01-15},
doi = {http://dx.doi.org/10.5962/bhl.title.124254}
}
The address should be deleting the trailing comma: address = {Nürnberg},
@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: