I am taking this discussion back to the list in case others have advice to
offer.

What sort do you currently see on your site?  The default is to sort by
date issued.

What metadata field do you wish to use for your sort?  If you would like to
sort by a different date field, clone the sortDateIssued element and
configure a different sort option.  You can then reference that element as
the default sort filed.

Terry

On Tue, Jun 14, 2016 at 2:19 AM, madhan muthu <[email protected]> wrote:

> Thanks Terry.  I tried there, but failed.  Perhaps I do not know how to
> set the parameter.  I uncommented  and enbaled the *defaultSort* by *date
> issued*.  I rebuilt the index and restarted tomcat.  I dont see any
> effect.  What else, should I do?
>
>
>
> <property name="searchSortConfiguration">
>             <bean
> class="org.dspace.discovery.configuration.DiscoverySortConfiguration">
>                 *<property name="defaultSort" ref="sortDateIssued"/>*
>                 <!--DefaultSortOrder can either be desc or asc (desc is
> default)-->
>                 <property name="defaultSortOrder" value="desc"/>
>                 <property name="sortFields">
>                     <list>
>                         <ref bean="sortTitle" />
>                         <ref bean="sortDateIssued" />
>                     </list>
>                 </property>
>             </bean>
> </property>
>
> There sort properties are at the bottom:
>
> <!--Sort properties-->
>     <bean id="sortTitle"
> class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration">
>         <property name="metadataField" value="dc.title"/>
>     </bean>
>
>     <bean id="sortDateIssued"
> class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration">
>         <property name="metadataField" value="dc.date.issued"/>
>         <property name="type" value="date"/>
>     </bean>
>
>
>
> On Tue, Jun 14, 2016 at 2:13 PM, Terry Brady <[email protected]>
> wrote:
>
>> Take a look at the following configuration file.
>>
>>
>> https://github.com/DSpace/DSpace/blob/master/dspace/config/spring/api/discovery.xml#L116-L128
>>
>> It is possible that you will want to change the date field that is used
>> for the default sort.
>>
>> Terry
>>
>> On Mon, Jun 13, 2016 at 11:49 PM, madhan muthu <[email protected]>
>> wrote:
>>
>>> I would like to display the search results of DSpace in reverse
>>> chronological order.  What should I do?
>>>
>>> Madhan
>>> India
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "DSpace Technical Support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Terry Brady
>> Applications Programmer Analyst
>> Georgetown University Library Information Technology
>> http://georgetown-university-libraries.github.io/
>> <https://www.library.georgetown.edu/lit/code>
>> 425-298-5498 (Seattle, WA)
>>
>
>
>
> --
> Madhan, M
>
>


-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
http://georgetown-university-libraries.github.io/
<https://www.library.georgetown.edu/lit/code>
425-298-5498 (Seattle, WA)

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to