diff --git a/chrome/locale/en-US/zotero/zotero.dtd b/chrome/locale/en-US/zotero/zotero.dtd index f77cde670b..10f39853b6 100644 --- a/chrome/locale/en-US/zotero/zotero.dtd +++ b/chrome/locale/en-US/zotero/zotero.dtd @@ -176,7 +176,7 @@ - + diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 62ea286a43..34ee6f1fde 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -1180,7 +1180,7 @@ lookup.failure.description = Zotero could not find a record for the specified lookup.failureToID.description = Zotero could not find any identifiers in your input. Please verify your input and try again. lookup.failureTooMany.description = Too many identifiers. Please enter one identifier and try again. -createParent.prompt = Enter a DOI, ISBN, PMID, or arXiv ID to identify this file +createParent.prompt = Enter a DOI, ISBN, PMID, arXiv ID, or ADS Bibcode to identify this file locate.online.label = View Online locate.online.tooltip = Go to this item online diff --git a/test/tests/utilities_internalTest.js b/test/tests/utilities_internalTest.js index 22a3d433f4..70fb73351b 100644 --- a/test/tests/utilities_internalTest.js +++ b/test/tests/utilities_internalTest.js @@ -382,6 +382,15 @@ describe("Zotero.Utilities.Internal", function () { assert.propertyVal(identifiers[2], "arXiv", "hep-ex/9809001"); assert.propertyVal(identifiers[3], "arXiv", "math.GT/0309135"); }); + + it("should extract ADS bibcodes", async function () { + var identifiers = ZUI.extractIdentifiers("9 2021wfc..rept....8D, 2022MSSP..16208010Y."); + assert.lengthOf(identifiers, 2); + assert.lengthOf(Object.keys(identifiers[0]), 1); + assert.lengthOf(Object.keys(identifiers[1]), 1); + assert.propertyVal(identifiers[0], "adsBibcode", "2021wfc..rept....8D"); + assert.propertyVal(identifiers[1], "adsBibcode", "2022MSSP..16208010Y"); + }); }); describe("#resolveLocale()", function () {