Hi

I'm having trouble sorting the results of a search by the
dc.date.accessioned metadata in ascending order. My discovery.xml is
configured as follows.

<!--The sort filters for the discovery search-->
        <property name="searchSortConfiguration">
            <bean
class="org.dspace.discovery.configuration.DiscoverySortConfiguration">
                <property name="sortFields">
                    <list>
                          <ref bean="sortDateAccessioned"/>

                          *<ref bean="sortDateAccessionedAsc"/>*
                          <ref bean="sortTitle"/>
                    </list>
                </property>
            </bean>
        </property>

<bean id="sortDateAccessionedAsc"
class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration">
        <property name="metadataField" value="dc.date.accessioned"/>
        <property name="type" value="date"/>
        *<property name="defaultSortOrder" value="asc"/>*
    </bean>


Note that the first results are collection records, which don't even have
the dc.date.accessioned metadata. What could be happening?

Link:
https://biblioteca.mpf.mp.br/repositorio/search?spc.page=1&spc.sf=dc.date.accessioned&spc.sd=ASC

[image: image.png]

Aroldo

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 dspace-tech+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/CACKFi%2BdOy_aHa0pN7e0QxTH271xj1-wvRJrPXnz4Fm4aTiMLsw%40mail.gmail.com.

Reply via email to