feat: link books to their Hardcover edition by ISBN #87
No reviewers
Labels
No labels
bug
critical
ebook-branch
high
low
main
medium
release-blocker
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/fuzzy_catalog!87
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/hardcover-link"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 withIsbnUtils.isbn10_to_isbn13/1. An ISBN that's neither 10 nor 13 characters gets no Hardcover link.book_lookup_test(ISBN-10 conversion, wrong length), and the show page test.Risk:
/edition/isbn/isn't documented by Hardcover; it's what their own search page links to.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