Closed fsteeg closed 7 years ago
Why is there no staging deployed? Does this affect our API example 'http://lobid.org/resource?author=118580604&owner=DE-5,DE-6' ?
The title indicates already a answer to my question:"Change multi value query behavior to AND, except for type and owner". Howerver, it's an API break, yes? (If it's possible to OR subject queries I would nonetheless maybe give an ACK).
(will further discuss in https://github.com/hbz/nwbib/issues/336 )
Yes, it changes the behavior, but only for undocumented cases. The only documented case is the owner
param, which remains unchanged. I also discussed this behavior change with @acka47 last week.
Is it technically necessary to break the structural consistence between query parameters? Or could we just stay with the old behaviour plus having the new functionality?
Oh, and I forgot to mention the staging deployment:
http://test.lobid.org/resource?subject=http://d-nb.info/gnd/4122777-3,http://d-nb.info/gnd/4114364-4 http://test.lobid.org/resource?author=118580604&owner=DE-5,DE-6
And yes, you're right about consistency and not breaking the old behavior. I will try a different solution.
Deployed new implementation to staging. Multi-value queries now support an optional boolean operator (AND
or OR
) as the last value. Default is OR
, so queries without an operator retain the old behavior.
See:
http://test.lobid.org/resource?subject=http://d-nb.info/gnd/4122777-3,http://d-nb.info/gnd/4114364-4 http://test.lobid.org/resource?author=118580604&owner=DE-5,DE-6
http://test.lobid.org/resource?subject=http://d-nb.info/gnd/4122777-3,http://d-nb.info/gnd/4114364-4,AND http://test.lobid.org/resource?author=118580604&owner=DE-5,DE-6,AND
+1
Will partially resolve https://github.com/hbz/nwbib/issues/336. See also https://github.com/hbz/nwbib/issues/341.