Fix error on Google Books when there's no publisher
This commit is contained in:
parent
ac927f090d
commit
1d48b2e8cb
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue