Open andosteinmetz opened 5 years ago
Hello!
Sounds like a bug by all accounts. It's been awhile since I've looked at or used this package.
Are you able to make a pull request to fix this or did you need me to have a look?
I'll make a PR when I find a minute to fix it : )
Hi. I'm evaluating this library for use in a project and I've noticed that the
title()
andauthor()
methods, rather than appending the value of theq
parameter – as per the comments – seem to replace theq
parameter entirely with the new key/value pair.example:
And the results with "gertrude stein" as the
$phrase
argument:The results only show books about Gertrude Stein, not those by Gertrude Stein. I would expect the
parameters
property to look like{"intitle": "gertrude stein", "inauthor: "gertrude stein"}
and to get results for both title and author.Is this the intended behavior or a bug? Or am I missing something?
I can see a work-around by using string concatenation and the
search()
method, but the interface as described in the comments looks much cleaner.