The search function/fetch is not working to its best capacity. I've found the API a bit finicky to work with, and would love some help with making the search function better!
Here are some issues in the useFetchBooks hook that need work (but I'm sure there are more - you can try it out for yourself and probably find more bugs and issues...):
[ ] 1. Sometimes, for unknown reasons, even when language is chosen as a search parameter, the API returns results with different language codes. For instance, author-searching for "Andrzej Sapkowski" in English (en) returned one volume in Italian (it). Would be great to have this solved.
[ ] 2. I have iterated over author search to make it more inclusive, but it still needs work. For example, "Emma Mieko Candon" returns appropriate results, as well as "Emma Mieko", but "Emma Candon" returns nothing.
[ ] 3. Title search works, but if you want to look it over and make it more DRY, inclusive or exclusive, suggestions are welcome!
[ ] 4. I would like a way to exclude search results that are just sneak peeks, e-book excerpts or -previews, et c - however, I have not found a good way to do so without inadvertently excluding books that organically have titles with those words in them. If you find a way through the API, that would be great.
The search function/fetch is not working to its best capacity. I've found the API a bit finicky to work with, and would love some help with making the search function better!
Here are some issues in the useFetchBooks hook that need work (but I'm sure there are more - you can try it out for yourself and probably find more bugs and issues...):