jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Auto DOI support issue when multiple papers have the same first author and year

Open zmoon opened this issue 2 months ago • 3 comments

Below I have four DOIs, but in the result, we get two links to the second one of each of the pairs that start the same way. Using Jupyter Book 2.

- https://doi.org/10.1029/2023MS004070
- https://doi.org/10.1029/2024GL112341
- https://doi.org/10.22541/essoar.174547926.68665522/v1
- https://doi.org/10.22541/essoar.174547944.43729039/v1
Image

Edit: doesn't seem to happen in all cases. Not sure what is special about my examples above. But the below start the same but are recognized as separate papers.

- https://doi.org/10.1175/MWR-D-10-05056.1
- https://doi.org/10.1175/MWR-D-11-00215.1

zmoon avatar Sep 29 '25 15:09 zmoon

Thanks for the report. I think that we are converting to a key that is the author_year for DOIs, which clearly doesn't work well here.

To get a fix for now:

myst build --doi-bib

Change the key (e.g. add an _a: Ocasio2025_a) and then run the command again. The UI won't say 2024a, but the links/hovers will be correct.

rowanc1 avatar Sep 29 '25 16:09 rowanc1

I think that we are converting to a key that is the author_year for DOIs, which clearly doesn't work well here.

Ah, yes, that makes sense, the two pairs do have the same first author and year.

build --doi-bib + edit workaround worked, thanks!

The auto key generation for author "Núñez Ocasio" I found to be a little peculiar. It gave N_ez_Ocasio, where Nunez_Ocasio would make more sense to me.

zmoon avatar Sep 29 '25 16:09 zmoon

I suppose we aren't downgrading unicode characters there! Great testing data... ! Thanks again for the issue, and glad you are mostly unblocked for now.

rowanc1 avatar Sep 29 '25 16:09 rowanc1