Please, can someone help me with this question? Thanks Manuela Klanovicz Ferreira
On Monday, May 6, 2024 at 3:42:02 PM UTC-3 Manuela Ferreira wrote: > Hi! > > I'm trying to find a way to return only items when performing an empty > search in the search box of DSpace 7.6, meaning I don't want communities > and collections to be returned in this search. > > As described at > https://groups.google.com/g/dspace-tech/c/CDTHPHnZcm4/m/3YCzQcX9BQAJ, I > tried modifying the defaultFilterQueries property in the > defaultConfiguration in the file <dspace>/config/spring/api/discovery.xml, > as shown below: > > Before: > <!--The default configuration settings for discovery--> > <bean id="defaultConfiguration" > class="org.dspace.discovery.configuration.DiscoveryConfiguration" > scope="prototype"> > ... > <property name="defaultFilterQueries"> > <list> > <!--Only find items, communities and collections--> > *<value>(search.resourcetype:Item AND latestVersion:true) > OR search.resourcetype:Collection OR search.resourcetype:Community</value>* > <value>-withdrawn:true AND -discoverable:false</value> > </list> > </property> > ... > > After > <!--The default configuration settings for discovery--> > <bean id="defaultConfiguration" > class="org.dspace.discovery.configuration.DiscoveryConfiguration" > scope="prototype"> > ... > <property name="defaultFilterQueries"> > <list> > <!--Only find items, communities and collections--> > *<value>(search.resourcetype:Item AND latestVersion:true)</value>* > <value>-withdrawn:true AND -discoverable:false</value> > </list> > </property> > > But this affected the search and listings of communities and collections > when creating a new subcommunity/collection or item, respectively, causing > the error "No community found". So, I reverted the modification. > > Does anyone know how to make an empty search in the DSpace 7.6 interface > return only items? > > Thank you > Manuela Klanovicz Ferreira > -- 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 on the web visit https://groups.google.com/d/msgid/dspace-tech/6f401632-ade4-4e69-b9dc-dd436f3af36bn%40googlegroups.com.