Skip to content

books: show what we know about an ISBN, even when no catalogue has it - #270

Merged
ralyodio merged 1 commit into
mainfrom
isbn-metadata
Nov 7, 2026
Merged

ralyodio merged 1 commit into
mainfrom
isbn-metadata

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

/isbn/9798162954880 rendered as a blank Where to buy.

  • Blank title: book.title is '' and ?? keeps it, so the ISBN ... fallback never ran.
  • Google Books is now a second source after Open Library. GOOGLE_BOOKS_API_KEY lifts the shared keyless quota.
  • Failures: a spent quota or an outage is no longer cached for a day as an unknown book. A real miss still is.
  • No record anywhere: the page says so, with what the number itself tells us (registration group, the 979-8 self-publishing note) and a link to add it to Open Library.
  • /api/v1/books/buy gains facts, and subjects and subtitle now show.

Tests: apps/web/src/lib/books.test.js, lint clean.

🤖 Generated with Claude Code

The page for a book Open Library never saw had an empty title: book.title is ''
and ?? keeps it. Google Books is now a second source, for self-published titles.
A spent quota is no longer remembered for a day as an unknown book. A book no
catalogue has says so, with what the number itself tells us.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 5319a8c into main Nov 7, 2026
3 checks passed
@ralyodio
ralyodio deleted the isbn-metadata branch November 7, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant