feat: link books to their Hardcover edition by ISBN #87

Merged
jfro merged 1 commit from feat/hardcover-link into main 2026-10-25 22:33:54 +00:00
Owner

Closes #75

The book page's lookup links (next to Open Library and Google Books) now include Hardcover, using https://hardcover.app/edition/isbn/{ISBN-13}, which redirects to the edition page (e.g. 9780441172719 → Dune).

  • BookLookup.hardcover_url/1: Hardcover 404s on ISBN-10s, so an ISBN-10 is converted with IsbnUtils.isbn10_to_isbn13/1. An ISBN that's neither 10 nor 13 characters gets no Hardcover link.
  • No schema change: we don't store Hardcover ids, and this route doesn't need one.
  • Tests: doctests, book_lookup_test (ISBN-10 conversion, wrong length), and the show page test.
  • Checked in a browser: the show page for a book with only an ISBN-10 links to the ISBN-13 URL, and Hardcover opens "Dune - Edition of Dune". (hardcover.app returns 403 to headless browsers and curl, so that last step was checked by hand.)

Risk: /edition/isbn/ isn't documented by Hardcover; it's what their own search page links to.

Closes #75 The book page's lookup links (next to Open Library and Google Books) now include **Hardcover**, using `https://hardcover.app/edition/isbn/{ISBN-13}`, which redirects to the edition page (e.g. 9780441172719 → Dune). - `BookLookup.hardcover_url/1`: Hardcover 404s on ISBN-10s, so an ISBN-10 is converted with `IsbnUtils.isbn10_to_isbn13/1`. An ISBN that's neither 10 nor 13 characters gets no Hardcover link. - No schema change: we don't store Hardcover ids, and this route doesn't need one. - Tests: doctests, `book_lookup_test` (ISBN-10 conversion, wrong length), and the show page test. - Checked in a browser: the show page for a book with only an ISBN-10 links to the ISBN-13 URL, and Hardcover opens "Dune - Edition of Dune". (hardcover.app returns 403 to headless browsers and curl, so that last step was checked by hand.) Risk: `/edition/isbn/` isn't documented by Hardcover; it's what their own search page links to.
jfro added this to the v0.9.0 milestone 2026-10-25 21:08:19 +00:00
feat: link books to their Hardcover edition by ISBN
All checks were successful
CI / test (pull_request) Successful in 47s
1ffe7163a5
The book page's lookup links now include Hardcover, via its
/edition/isbn/{ISBN-13} route. Hardcover doesn't resolve ISBN-10s, so an
ISBN-10 is converted to its ISBN-13 first. No new column is needed.

Closes #75
jfro merged commit 9e686607c1 into main 2026-10-25 22:33:54 +00:00
jfro deleted branch feat/hardcover-link 2026-10-25 22:33:54 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/fuzzy_catalog!87
No description provided.