remove join and constrain the title column

This commit is contained in:
David 2017-05-15 22:13:40 -04:00
parent 6d00d0ae6a
commit 4f4c557fd6
2 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@
.bookTable .tRow .title {
font-style: italic;
max-width: 600px;
}
#current h1 {

View File

@ -130,7 +130,7 @@ function normalizeGoogleData(book) {
return {
title: book.subtitle ? book.title + ': ' + book.subtitle : book.title,
author: _.join(book.authors, ', '),
authorLast: book.authors ? _.join(_.lowerCase(_.head(_.reverse(_.split(book.authors[0], ' ')))), '') : '',
authorLast: book.authors ? _.lowerCase(_.head(_.reverse(_.split(book.authors[0], ' ')))) : '',
"isbn-10": _.find(book.industryIdentifiers, { type: "ISBN_10" })
? _.find(book.industryIdentifiers, { type: "ISBN_10" }).identifier
: '',