A simple website to serve a list of books currently in my possession. https://library.yetaga.in/
Go to file
2017-07-04 13:03:59 -04:00
css generate isbn-10s if I don't have them, and load images from amazon 2017-05-23 21:39:49 -04:00
js add sorting and better icons on the headers for it 2017-05-19 17:44:56 -04:00
.gitignore create upload/append-to-sheet script 2017-05-14 15:27:17 -04:00
index.html update the icon used to mark signed copies 2017-07-04 13:03:59 -04:00
index.js pre-sort by title to take advantange of stable sort; watch for null date 2017-05-16 21:57:29 -04:00
package.json more updates 2017-05-15 21:46:41 -04:00
readme.md more info on the google books API 2017-05-17 20:41:12 -04:00

library

set publicSpreadsheetUrl in index.html to set a sheet

expects the following columns, but easily updated:

  • title
  • author
  • authorLast (used for sorting)
  • isbn-10 (not displayed)
  • isbn-13
  • format
  • genre
  • publisher
  • series
  • volume
  • year
  • coverurl
  • description
  • notes
  • signed (yes or blank)

adding books using the google books API

  1. update SHEET_ID and SHEET_NAME in index.js.
  2. follow the instructions at https://developers.google.com/sheets/api/quickstart/nodejs#step_1_turn_on_the_api_name, and save the resulting json file to .credentials/client_secret.json.
  3. run npm install.
  4. run npm start.

the google books API is somewhat spotty; searching for a title at https://books.google.com/ will sometimes pull up a book and provide the ISBN they know it by. It also doesn't have comprehensive coverage of various editions of titles, and doesn't return image URLs or format information.