Code style fixes
This commit is contained in:
parent
d8eae4cd3b
commit
3df1a9b812
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue