Trim ISBNs before lookup

This commit is contained in:
Dan Stillman 2012-04-01 13:44:49 -04:00
parent 4fcee3afa4
commit ad4ded95bb

View File

@ -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};