fix: link books to Open Library and Google Books, not only Open Library #2
Loading…
Reference in a new issue
No description provided.
Delete branch "jtk/book-lookup-links"
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?
Fixes GitHub #28 (old mirror): the book page only linked to Open Library, which is a dead end for books that came from Google Books, Hardcover, LoC, or were entered by hand.
What changed
BookLookup.google_books_url/1andBookLookup.external_links/1;openlibrary_url/1shares ISBN cleanup (keeps a trailing X, ignores junk).rel="noopener noreferrer".Tests
book_lookup_test.exs).mix precommit: 160 passed.Review from Nye (approved) — clean_isbn handles nil/blank/lowercase x, ISBN-13 preferred over 10, rel=noopener added, tests + doctests cover it. No other callers of openlibrary_url broke.