How to create query URL that will dynamically compose RSS feed URL

274 views
Skip to first unread message

maricel cordero

unread,
Sep 29, 2015, 5:38:21 AM9/29/15
to DSpace Technical Support
We have a university client that we need to link their DSPACE repository to  our application so we can search data from them.
I read from here (https://jira.duraspace.org/secure/attachment/10740/opensearch.txt) that I it is possible to dynamically compose an RSS feel URL.

I am looking for output similar to this format:

Anyone familiar on the synatx of how to create that query URL? Also, should the client DSPACE @open-search@ be enabled for this to work?

Thanks!

helix84

unread,
Sep 29, 2015, 5:55:22 AM9/29/15
to maricel cordero, DSpace Technical Support
The URLs for individual collections/communites have this format:

http://demo.dspace.org/xmlui/feed/rss_1.0/10673/2
http://demo.dspace.org/xmlui/feed/rss_2.0/10673/2
http://demo.dspace.org/xmlui/feed/atom_1.0/10673/2

Whole site:
http://demo.dspace.org/xmlui/feed/rss_1.0/site

Sites usually deploy DSpace at the root URL, so usually it would be
just http://example.com/feed/rss_1.0/site
The URLs are the same both for XMLUI and JSPUI.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

maricel cordero

unread,
Sep 30, 2015, 1:15:13 AM9/30/15
to hel...@centrum.sk, DSpace Technical Support
I think what I would need is to dynamically create the query URL to the universities DPSACE repository depending on a particular keyword.

Read that the open-search should be enabled for this to be possible.

helix84

unread,
Sep 30, 2015, 7:58:51 AM9/30/15
to maricel cordero, DSpace Technical Support
On Wed, Sep 30, 2015 at 7:15 AM, maricel cordero
<maricel....@gmail.com> wrote:
> I think what I would need is to dynamically create the query URL to the
> universities DPSACE repository depending on a particular keyword.

The format is this:
http://demo.dspace.org/xmlui/open-search/?query=test&start=0&rpp=10&format=rss

This XMLUI endpoint seems to be currently broken. Perhaps you'll find
some clues here:
https://jira.duraspace.org/issues/?jql=project%20%3D%20DS%20AND%20text%20~%20%22opensearch%22


In JSPUI, opensearch seems to work:
http://demo.dspace.org/jspui/open-search/?query=test&start=0&rpp=10&format=rss

http://demo.dspace.org/jspui/open-search/description.xml


> Read that the open-search should be enabled for this to be possible.

Yes, it's off by default.
https://github.com/DSpace/DSpace/blob/dspace-5.3/dspace/config/dspace.cfg#L1503

maricel cordero

unread,
Oct 6, 2015, 7:27:10 AM10/6/15
to Ivan Masár, DSpace Technical Support
Thank you for your reply. I just had a discussion with the DSPACE administrators of our client and they are not leaning to enabling the "open-search". Right now I am checking if OAI PHM will work but I am not confident since it does not seem to provide the url parameter for "query".


helix84

unread,
Oct 6, 2015, 7:32:59 AM10/6/15
to maricel cordero, DSpace Technical Support
On Tue, Oct 6, 2015 at 1:27 PM, maricel cordero <maricel....@gmail.com> wrote:
Thank you for your reply. I just had a discussion with the DSPACE administrators of our client and they are not leaning to enabling the "open-search". Right now I am checking if OAI PHM will work but I am not confident since it does not seem to provide the url parameter for "query".

Could you specify your use case so that we can give you more suitable recommendation? Why is open-search unsuitable? Depending on that, another alternative might be Solr search, but it comes with its own caveats.
Reply all
Reply to author
Forward
0 new messages