> Hi,
>
> I'm playing with OpenSearch in DSpace 4.2 and I'm having a couple of 
> issues.  I see OpenSearch uses the Discovery configuration, so I'm 
> investigating `discovery.xml'.  Here are two related issues I'm having:
>
> 1- I've added a custom sortField for dc.date.accessioned and added it 
> to my bean's sortFields, but I can't figure out how to use it.  
> OpenSearch has a `sort_by' parameter which only takes an integer; how 
> do I know which integer to use?
>
> 2- If I use `sort_by=2` it appears to be sorting by dc.date.issued, 
> but in ascending order, even though `discovery.xml' lists "desc" as 
> the default sort order everywhere in the config.
>
> We're trying to piggy back on OpenSearch to build custom RSS feeds for 
> certain terms, so we can use a feed aggregator to send email alerts 
> when there are new items.  Unfortunately it's quite pointless if we 
> can't customize the field to sort by or see the newest items first in 
> the feed!
>
> Our application stack is: DSpace 4.2, Tomcat 7, Oracle Java 7, Ubuntu 
> 14.04.
>
> Thank you,
>
> Alan


Hi Alan,

OpenSearch is using the dspace.cfg not discovery.xml and sorting options 
are defined like that:

webui.itemlist.sort-option.1 = dateissued:dc.date.issued:date
webui.itemlist.sort-option.2 = dateaccessioned:dc.date.accessioned:date

The sort-option and the order can be defined with get parameters like this
&sort_by=1&order=DESC

Best

-- 
Christian Scheible
Softwareentwickler / Abt. Content-basierte Dienste
Kommunikations-, Informations- und Medienzentrum (KIM)
Universität Konstanz
78457 Konstanz
+49 (0)7531 / 88-2857
Raum B 703


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
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