feat: narrow manual title lookup by author #86
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!86
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/title-author-lookup"
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 #77
What changed
BookLookupProvidergets an optionallookup_by_title_and_author/2callback.BookLookup.lookup_by_title/2uses it where a provider has it, otherwise falls back to title search. Either way, results whose author matches (every word, ignoring case/accents/punctuation/order, e.g. "tolkien" ↔ "J. R. R. Tolkien", "Herbert, Frank" ↔ "Frank Herbert") are ranked first. Blank author = the old title search.search.json?title=…&author=…(both properly query-encoded)q=intitle:… inauthor:…bath.title="…" and bath.author="…"(checked live against lx2.loc.gov)author_names). Nye is researching Hardcover; will adjust if there's a better field-scoped way.:open_library_req_optionshook (like Google's) for tests.Tested
book_lookup_author_test.exs: author passed to capable providers, fallback + ranking for title-only ones, unconfigured providers skipped, blank/nil author is a plain title search, author matching rules.mix precommitpasses (647 tests).Not tried live: Hardcover (no API token on my dev box), Google Books (quota exhausted today; covered by the stubbed test).