www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 85b170db2a857cb6e7b83bdc443199396841c9a2
parent 9a27afb06979d6ffffa80f59d1ce9437dd159919
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 27 May 2010 17:29:19 +0000

Pushed Google Books


Diffstat:
Mtranslators/Google Books.js | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/translators/Google Books.js b/translators/Google Books.js @@ -8,7 +8,7 @@ "priority":100, "inRepository":"1", "translatorType":4, - "lastUpdated":"2010-05-03 04:20:00" + "lastUpdated":"2010-05-27 17:20:00" } /* @@ -132,8 +132,13 @@ function parseXML(text, itemUrlBase) { if (xml.publisher[0]) { newItem.publisher = xml.publisher[0].toString(); } - - newItem.title = xml.title[0].toString(); + + var titleparts = xml.title; + var title = []; + for (var i in titleparts) { + title.push(titleparts[i].toString()); + } + newItem.title = title.join(': '); var url = itemUrlBase + xml.identifier[0];