Hi.

I am configuring the advanced search screen of my repository and I want to
remove one of the sorting options, "Accessioned Date Descending"
(sorting.dc.date.accessioned.DESC). To do this, I commented out the line
<ref bean="sortDateAccessioned"/>
in discovery.xml:

<!--The default configuration settings for discovery-->
    <bean id="defaultConfiguration"
class="org.dspace.discovery.configuration.DiscoveryConfiguration"
scope="prototype">
   .
   .
   .
        <!--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="sortTitle" />
                        <ref bean="sortDateIssued" />
                        *<!--<ref bean="sortDateAccessioned"/>-->*
                    </list>
                </property>
            </bean>
        </property>
   .
   .
   .
    </bean>

When restarting Tomcat, recent submissions do not load on the main screen
and the following error appears in dspace.log:

2025-03-13 22:07:09,734 ERROR a196cddd-781d-4ab3-9aea-2074d0c64b17
3e51c1eb-8b40-4e56-bfdf-b10f618cb067
org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ Invalid
search request (status:422)
org.dspace.app.rest.exception.InvalidSearchRequestException: The field:
*dc.date.accessioned*is not configured for the configuration!

Is *<ref bean="sortDateAccessioned"/>* required, or is it a bug?

Att,

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%2BcbeHG7JN0ErfjC3EapD-hJ7ZeX%2BPFX-BPiB2F-y1PFUA%40mail.gmail.com.

Reply via email to