Open wolass opened 8 years ago
Thanks for the bug report with the example; that's pretty strange. Will look into it.
Appears to be an upstream bug in RefManageR, so hoping it will get addressed there: https://github.com/mwmclean/RefManageR/issues/7
I suppose we could swap in rcrossref
to get a bit more robust handling for this, but it would be cleaner and simpler to address upstream.
Though there is an (easily fixed) bug with RefManageR here, note that the key for this entry is not valid. With the bux fixed, this entry will still not be parsed (by either the R package bibtex, which RefManageR depends on or actual BibTeX) because of the white space in the key. Using a different RefManageR function that does not have the bug produces:
RefManageR::GetBibEntryWithDOI("10.1684/ejd.2008.0573")
## Warning message:
## In do_read_bib(file, encoding = .Encoding, srcfile) :
## /tmp/RtmpIpffl1/filecd2659e6c68.bib:1:0
## syntax error, unexpected TOKEN_ABBREV, expecting TOKEN_COMMA
## Dropping the entry `Celine` (starting at line 1)
@mwmclean thanks and apologies, I also hadn't noticed that this example also had what looks like an invalid key; notably crossref cn fails to even return an entry in its own crossref-xml
or citeproc-json
format for this DOI.
but when I use the link http://dx.doi.org/10.1684/ejd.2008.0573 the site opens,
when I paste the doi into doi2bib:
Other DOIs work well. This happens for selected DOIs only.