Hi Charlene:

It's not a bug, just a confusing name coincidence: you might assume that the 
query variable 'scope' expects the same values in discovery and
opensearch, but it doesn't. In the opensearch case, use:

scope=1721.1/123

i.e. the handle of the community or collection you wish to restrict the search 
results to.

Hope this helps,

Richard R

On Apr 15, 2014, at 1:06 PM, Charlene Chinda Barina wrote:

Hi all,

Wanted to see if anyone else had this issue, where if you have a query that has 
a scope variable, like so:

http://impactsurvey.org/ccn/discover?scope=%2F&query=author%3A%22Casa+Latina%22+AND+language%3A%22Spanish%22&submit=Go

and add the opensearch option:

http://impactsurvey.org/ccn/opensearch/discover?scope=%2F&query=author%3A%22Casa+Latina%22+AND+language%3A%22Spanish%22&submit=Go

You get:


java.lang.IllegalArgumentException: Scope handle / should point to a valid 
Community or Collection

Without the scope=%2F argument, it works as expected.

Is this a bug or some such I should report?

I'm trying to give people an option to grab a saved query as a feed, and would 
want to minimize steps for them to do so.

--
Charlene Barina, MPH
Research Analyst 2, U.S. IMPACT Study
The Information School
303-359-6347 | Skype: cbarina
facebook.com/ImpactSurvey<http://facebook.com/ImpactSurvey> | 
twitter.com/impactsurvey<http://twitter.com/impactsurvey>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to