Change style of PNAS to include DOI
Hello, I'm wondering how to include DOIs in the PNAS bibliography code. PNAS requires DOIs, but the current citation style doesn't incorporate them. Any guidance would be appreciated. Thank you!
In the PNAS reference guidelines, the relevant part is:
You must have Volume or Page info in your item. Make sure nothing is in the extra field.
Following the exact wording of the style ("if volume numbers are not available"), I would then think that the style needs to corrected.
"deposited" would be also a nice term to have in CSL 1.0.3)
There was one thing odd, though. When I created bibliography by copying to clipboard, a link was added only to the DOI prefix+suffix but not the resolver. This is not the case for the APA style, for example. This does not affect me at all since I only work in Word, but I thought I'd mention it.
Here is how PNAS (top) vs APA (bottom) styles look for the same item when biblio is copied and pasted into Textedit:
https://s3.amazonaws.com/zotero.org/images/forums/u5124/wx2coha6r5xqyfdcweao.png
/
in line 70 of the csl (I have submitted a PR)M. J. McCoy, A. Z. Fire, Parallel gene size and isoform expansion of ancient neuronal genes. Curr Biol, S0960-9822(24)00163–5, (2024), https://doi.org/10.1016/j.cub.2024.02.021.
should be
M. J. McCoy, A. Z. Fire, Parallel gene size and isoform expansion of ancient neuronal genes. Curr. Biol., S0960-9822(24)00163–5 (2024). https://doi.org/10.1016/j.cub.2024.02.021.
according to the guidelines. The first comma is a problem for all journal articles at the moment, whether there is a volume number or not.
There are other issues with other publication types, especially preprints, but those are for another day.
A common issue to all item types: Make it a full stop/period after year. "(2024), URL or access or deposit date" should be "(2024). Anything that follows".
Preprint is the big one: should be The issues to fix:
1. Include Repository name after title, and follow it with [Preprint] (Year).
2. Add URL after year.
3. Their examples and papers do not include item/page numbers for preprints.
So -> Authors, Title. repoName [Preprint] (Year). https://preprint.url.here/preprint.
4. While I don't like it, after "URL." there is "(accessed Day Month Year)."
Most papers I looked also include datasets and software referenced now, and there are also issues there: should be The issues to fix for these item types:
1. Add Repository Name to software (like, Github). Unfortunately, there isn't an obvious field for this. "Github" is in Library Catalog, so that could be it.
2. Add Repo Name to dataset (like, Zenodo). The field name to is Repository.
3. For both, include URL after Repository Name.
For dataset, have it as -> Available at https://url.here/dataset.
For software, just URL.
3. In both, remove year.
4. For both, add at the end -> Deposited Day Month Year.
Thank you! Please ask if anything is not clear.
https://github.com/citation-style-language/styles/raw/f700db88351b544685c043b595eccd820a2c0692/pnas.csl
Dataset and Preprint have the
Available from
switched. Preprint should have just<URL>
, and instead Dataset should haveAvailable from <URL>
.Last point, Software bibliography should include Archive (Github) and URL. Currently, it is which is improved from previous version (thank you!). But it should be APA and Chicago both get "Github" from the Archive field, so we should do that. The URL is the URL.
P.S. We may also want the Github translator to record "Github" in the Archive field. I may open another post for that.