Detect retractions for DOIs with capital letters

https://forums.zotero.org/discussion/102745/retraction-watch-not-working
This commit is contained in:
Dan Stillman 2023-02-05 21:31:49 -05:00
parent c6bcc2572c
commit bac87cbc42
2 changed files with 3 additions and 1 deletions

View file

@ -716,6 +716,8 @@ Zotero.Retractions = {
_valueToKey: function (type, value) {
if (type == this.TYPE_DOI) {
// DOIs are case-insensitive
value = value.toLowerCase();
return Zotero.Utilities.Internal.sha1(value);
}
return value;

View file

@ -4,7 +4,7 @@ describe("Retractions", function() {
var zp;
var server;
var checkQueueItemsStub;
var retractedDOI = '10.1016/S0140-6736(97)11096-0';
var retractedDOI = '10.1039/C3AN01547E';
before(async function () {
userLibraryID = Zotero.Libraries.userLibraryID;