davidagraf / doi2bib2

350 stars 24 forks source link

Produces wrong year information #97

Open archisman-panigrahi opened 3 weeks ago

archisman-panigrahi commented 3 weeks ago

I am trying to generate bibtex entry for this paper https://doi.org/10.1038/s42254-020-00262-6

The journal website asks to cite the article as (notice 2021)

Paschen, S., Si, Q. Quantum phases driven by strong correlations. Nat Rev Phys 3, 9–26 (2021). https://doi.org/10.1038/s42254-020-00262-6

doi2bib2 gives year 2020 instead of 2021. The output was this:

@article{Paschen2020,
  title = {Quantum phases driven by strong correlations},
  volume = {3},
  ISSN = {2522-5820},
  url = {http://dx.doi.org/10.1038/s42254-020-00262-6},
  DOI = {10.1038/s42254-020-00262-6},
  number = {1},
  journal = {Nature Reviews Physics},
  publisher = {Springer Science and Business Media LLC},
  author = {Paschen,  Silke and Si,  Qimiao},
  year = {2020},
  month = dec,
  pages = {9–26}
}

The paper was submitted and accepted in 2020, but published in 2021, which could have been the source of the issue.

fbucchini commented 3 weeks ago

I noticed this issue too and reached the same conclusion: the published date is used instead of the issue date.

I don't think the issue comes from doi2bib though: if you request the bibtex directly using the DOI, you get the same date, e.g.

curl --silent -LH "Accept: application/x-bibtex" 'https://doi.org/10.1038/s42254-020-00262-6'

This returns:

 @article{Paschen_2020, title={Quantum phases driven by strong correlations}, volume={3}, ISSN={2522-5820}, url={http://dx.doi.org/10.1038/s42254-020-00262-6}, DOI={10.1038/s42254-020-00262-6}, number={1}, journal={Nature Reviews Physics}, publisher={Springer Science and Business Media LLC}, author={Paschen, Silke and Si, Qimiao}, year={2020}, month=dec, pages={9–26} }

Personally, I was fine with these dates, as they correspond to the online publication dates and are not completely random.

archisman-panigrahi commented 2 weeks ago

Is there any way doi2bib2 can process the publication year and report that instead?

Personally, I was fine with these dates, as they correspond to the online publication dates and are not completely random.

I agree they are not completely random, but a paper needs to be cited the way the journal recommends it (here 2021).