Code style fixes

This commit is contained in:
Abe Jellinek 2024-06-21 13:39:54 -04:00 committed by Dan Stillman
parent d8eae4cd3b
commit 3df1a9b812

View file

@ -628,8 +628,8 @@ Zotero.RecognizeDocument = new function () {
});
if (searchItemJSON) {
if (search.ISBN && searchItemJSON?.ISBN?.split(' ')
.map(resolvedISBN => Zotero.Utilities.cleanISBN(resolvedISBN))
.includes(search.ISBN)) {
.map(resolvedISBN => Zotero.Utilities.cleanISBN(resolvedISBN))
.includes(search.ISBN)) {
Zotero.debug('RecognizeDocument: Using ISBN search result');
itemJSON = searchItemJSON;
}
@ -637,7 +637,8 @@ Zotero.RecognizeDocument = new function () {
Zotero.debug(`RecognizeDocument: ISBN mismatch (was ${search.ISBN}, got ${searchItemJSON.ISBN})`);
}
}
} catch (e) {
}
catch (e) {
Zotero.debug('RecognizeDocument: Error while resolving ISBN: ' + e);
}
}