Sorting settings for a specific collection or community - discovery.xml - Dspace8

20 views
Skip to first unread message

Aroldo Rique Júnior

unread,
May 23, 2025, 4:24:11 PM5/23/25
to DSpace Technical Support, paulo...@mpf.mp.br
Hi.

I have a question.

Is it possible to configure the sorting options for search results for a specific community or collection?

Currently, our discovery.xml, with the sorting settings at the community and collection level, looks like this:

<bean id="communityConfiguration" class="org.dspace.discovery.configuration.DiscoveryConfiguration"
          scope="prototype" parent="defaultConfiguration">
        <!--The sort filters for the discovery search-->
        <property name="searchSortConfiguration">
            <bean class="org.dspace.discovery.configuration.DiscoverySortConfiguration">
                <property name="sortFields">
                    <list>
                       <ref bean="sortScore" />
                       <ref bean="sortDateAccessioned"/>                        
                       <ref bean="sortDateAccessionedAsc"/>
                       <ref bean="sortTitle"/>

                    </list>
                </property>
            </bean>
        </property>
    </bean>

    <bean id="collectionConfiguration" class="org.dspace.discovery.configuration.DiscoveryConfiguration"
          scope="prototype" parent="defaultConfiguration">
        <!--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"/>
                       <ref bean="sortScore" />

                    </list>
                </property>
            </bean>
        </property>
    </bean>


My question is: can I make a specific configuration for a collection or community? According to its handle or ID? Or will all collections and communities follow these configurations above?

Aroldo


Reply all
Reply to author
Forward
0 new messages