commit 1d48b2e8cb105594a4258e91edd6371f0332b84e
parent ac927f090dfcb3e6944100f159f0ac5030564aac
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 20 Sep 2009 03:12:15 +0000
Fix error on Google Books when there's no publisher
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/translators/Google Books.js b/translators/Google Books.js
@@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
- "lastUpdated":"2009-06-04 01:10:00"
+ "lastUpdated":"2009-09-20 03:15:00"
}
@@ -97,7 +97,9 @@ function doWeb(doc, url) {
}
newItem.ISBN = ISBN;
- newItem.publisher = xml.publisher[0].toString();
+ if (xml.publisher[0]) {
+ newItem.publisher = xml.publisher[0].toString();
+ }
newItem.title = xml.title[0].toString();