From ad4ded95bb7d70fd55d9020d155c2a7b737075c8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 1 Apr 2012 13:44:49 -0400 Subject: [PATCH] Trim ISBNs before lookup --- chrome/content/zotero/lookup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index 99984dfea0..0a2e43e84d 100644 --- a/chrome/content/zotero/lookup.js +++ b/chrome/content/zotero/lookup.js @@ -39,7 +39,7 @@ const Zotero_Lookup = new function () { if(doi) { var item = {itemType:"journalArticle", DOI:doi}; } else { - identifier = identifier.replace("-", "", "g"); + identifier = identifier.trim().replace("-", "", "g"); if(identifier.length == 10 || identifier.length == 13) { // ISBN var item = {itemType:"book", ISBN:identifier};