Status of support for NASA ADS
dstillman
Zotero Team
This discussion was created from comments split from: Support for Smithsonian/NASA ADS Astronomy Abstract Service.
Upgrade Storage
Technical note: On ADS Bibcodes: https://ui.adsabs.harvard.edu/help/actions/bibcode -- should be possible to recognize these pretty reliably via regex and IIRC Abe is already using the API, so could be something to consider, although I don't think it's been requested much.
We have to draw the line somewhere when it comes to what we support in "Add item(s) by identifier" - there are just too many domain-specific paper ID systems in the world - but if importing via bibcode is a common workflow, I'd be happy to support it.
(And separately in the translation server.)
If you enter an ISBN in the box, it'll run each search translator that supports searching for ISBNs, so adding a new ISBN translator wouldn't require any change to client code. Adding a new identifier form altogether would.
A new ISBN translator is actually sort of worse in that it's an additional network request for every ISBN that hasn't yet been found.
Take this publication as an example:
https://ui.adsabs.harvard.edu/abs/2007ASPC..382..495K/abstract
When I'm typing my paper in Latex I would write "\cite{2007ASPC..382..495K}" and thus easily link the citation and bibliography in my Latex document from ADS giving the following entry in my Bibtex:
"@INPROCEEDINGS{2007ASPC..382..495K,
author = {{Kent}, B.~R.},
title = "{Chapter 46: How to Use Cone Search Client Applications}",
booktitle = {The National Virtual Observatory: Tools and Techniques for Astronomical Research},
year = 2007,
editor = {{Graham}, Matthew J. and {Fitzpatrick}, Michael J. and {McGlynn}, Thomas A.},
series = {Astronomical Society of the Pacific Conference Series},
volume = {382},
month = jan,
pages = {495},
adsurl = {https://ui.adsabs.harvard.edu/abs/2007ASPC..382..495K},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
"
using tools such as adstex (https://github.com/yymao/adstex) that create the .bib file from the .tex file using just the ADS Bibcode.
Therefore if Zotero could also support ADS Bibcodes it would make life easier for a lot of astronomers! Thank you.
Disclaimer: I don't know exactly what changes were made in response to this thread. However in recent Zotero versions when I add a new reference from ADS with the Firefox connector, all entries are auto-populated with text in the "Extra" field. The extra text consists of two lines that list the ADS bibcode, for example:
Citation Key: 1965ApJ...142..419P
ADS Bibcode: 1965ApJ...142..419P
from this paper: https://ui.adsabs.harvard.edu/abs/1965ApJ...142..419P
The issue is that BBT uses that same "Citation Key: usertext" format to override the citation keys that it generates by default according to the user's preferences. Therefore in recent versions of Zotero you now have to delete that Citation Key line from the Extra field manually every time you add a new ADS reference. This seems not ideal - after all, the bibcode is already being added to Extra, so why add it twice? People that do use the bibcode for cite keys can still access them with BBT through the "ADS Bibcode:" line in Extra, while the rest of us won't have our default preferred cite key format overridden.
To be concrete, my suggestion is that when importing from ADS, the Extra field should contain only the "ADS Bibcode: bibcode" line, and the "Citation Key: bibcode" line should be removed.
Like I say, I don't know exactly what updates were made in response to this thread, so apologies if this is a red herring. But I think I've isolated the issue to be within Zotero itself, not BBT.
a) want it generated algorithmically and/or
b) be able to set/override it manually
If you were an astronomer who wanted to use ADS Bibcodes when available and otherwise use a different citation key format, and this wasn't added, it seems like you would need BBT (or built-in functionality from Zotero for this) to know about the "ADS Bibcode" field and use that when available? But the alternative is that any citation key set by a translator would take precedence, with no good way for BBT/Zotero to decide whether to keep it, so I guess that's worse and justifies the removal…
^ Yes, this is exactly what I assumed could be done.
If any astros from the future find this thread, you can use Better Bibtex to swipe the ADS Bibcode from the Extra field and use that as your cite key. This assumes that the format in the Extra field remains as "ADS Bibcode: xxxxxx", but you can also alter it if things change in the future.
Go to Zotero -> Preferences -> Better Bibtex -> Citation keys (tab), and in the Citation key format box, enter:
[Extra:transliterate:select=3] | [auth:lower:alphanum][shortyear]
To break that down:
- the [Extra:transliterate:select=3] part will search the Extra field, remove any unsafe characters ('transliterate'), and return all words starting with the 3rd. This removes the first two words, "ADS Bibcode:", from the full string so only the bibcode itself is used for the citekey.
- In case there is no text in the Extra field, the cite key will revert by default to lastnameYY, which is what the [auth:lower:alphanum][shortyear] produces.
I'm sure there are edge cases here I haven't thought of, but hopefully this is enough to satisfy both the folks who want to use the bibcodes as citekeys and the rest of us too.
[extra=ADSBibcode], the next version of BBT will also support[extra=ADS\ Bibcode]