Files
DSpace/dspace/config/spring/api/discovery-solr.xml
benbosman e50724c95a Export Metadata (CSV) from Search Results (#8037)
* [task 84826] adding a method to get an iterator of items found to the SearchService

* [task 84826] making the command line script for the search export

* [task 84826] test for the rest endpoint for the search csv export script

* [task 84826] test for the case of exporting based on a search query

* [task 84826] attempt at limiting the scope in which the search is happening

* [task 84826] limiting the scope of the search export and implementing more options

* [task 84826] implementing feedback + adding forgotten test file

* [task 85895] improving filters in metadata export search

* [task 86023] made code more readable

* [task 86023] allowing more than 1 filter to be applied

* checkstyle fixes

* 86307: Move DiscoverQueryBuilder to DSpace API

* 86307: Fix spring issue

* removing autowired in dspace-api querybuilder

* using querybuilder to create a query

* creating the querybuilder using servicemanager

* [task 87993] bugfix in MetadataExportSearch

* Revert "removing autowired in dspace-api querybuilder"

This reverts commit 252ef24765.

* checkstyle fixes

* [task 88304] added javadocs

* [task 88304] restoring authentication earlier so tests run authenticated

* implemented feedback

* Remove comment

* [task 90900] extended test suite

* [task 90900] checkstyle fixes

* [task 90900] changed location of file save for MetadataExportSearch

* [task 90900] checkstyle fix

* [task 90900] used jackson databind instead of json

* [task 90900] removed accidentally added spaces

* [wip] [task 90900] adding tests for fail scenarios

* [task 90900] adding tests for fail scenarios

* [task 90900] used jackson databind instead of json

* [task 90900] removed accidentally added spaces

* [wip] [task 90900] adding tests for fail scenarios

* [task 90900] adding tests for fail scenarios

* [task 90900] deleted accidentily added file

* specified file location for export file from cli

* checkstyle fixes

* [task 91781] implemented feedback

* setting export dir differently in tests

* trying another export dir folder

* saving export in a location outside of dspace

* [task 91781] used same export dir as metadataexportit

* [task 91781] added debug printing

* [task 91781] added debug printing

* [task 91781] added debug printing

* [task 91781] changed prints to logs

* [task 91781] more debug info

* [task 91781] more debug info

* [task 91781] more debug info

* TEMP: Assert script success/failure

* TEMP: Handled exception is not a failure

* TEMP: Maybe a workaround for DiscoveryIT failures

* Revert "TEMP: Maybe a workaround for DiscoveryIT failures"

This reverts commit 7b1ebcf13a.

* TEMP: Confirm that MetadataExportSearchIT knocks out DiscoveryIT now

* TEMP: Initialize services in setup() instead of inline

* TEMP: Don't share runnable handler between tests

* TEMP: Use SearchService in test context before script context

* [task 91781] making search service available in the class

* checkstyle fixes

* [task 91781] ignoring MetadataExportSearchIT

* [task 91781] specifying export file name in rest script run

* [task 91781] switching the sort order

Co-authored-by: Joost <joost.fock@atmire.com>
Co-authored-by: Yana De Pauw <yana@atmire.com>
Co-authored-by: Yura Bondarenko <yura.bondarenko@atmire.com>
2022-06-16 13:32:10 -05:00

52 lines
3.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<context:annotation-config /> <!-- allows us to use spring annotations in beans -->
<bean class="org.dspace.discovery.utils.DiscoverQueryBuilder"/>
<bean name='org.dspace.util.MultiFormatDateParser'
class='org.dspace.util.MultiFormatDateParser'>
<property name='patterns'>
<map>
<entry key='\d{8}' value='yyyyMMdd'/>
<entry key='\d{1,2}-\d{1,2}-\d{4}' value='dd-MM-yyyy'/>
<entry key='\d{4}-\d{1,2}-\d{1,2}' value='yyyy-MM-dd'/>
<entry key='\d{4}-\d{1,2}' value='yyyy-MM'/>
<entry key='\d{1,2}/\d{1,2}/\d{4}' value='MM/dd/yyyy'/>
<entry key='\d{4}/\d{1,2}/\d{1,2}' value='yyyy/MM/dd'/>
<entry key='\d{1,2}\s[a-z]{3}\s\d{4}' value='dd MMM yyyy'/>
<entry key='\d{1,2}\s[a-z]{4,}\s\d{4}' value='dd MMMM yyyy'/>
<entry key='\d{12}' value='yyyyMMddHHmm'/>
<entry key='\d{8}\s\d{4}' value='yyyyMMdd HHmm'/>
<entry key='\d{1,2}-\d{1,2}-\d{4}\s\d{1,2}:\d{2}' value='dd-MM-yyyy HH:mm'/>
<entry key='\d{4}-\d{1,2}-\d{1,2}\s\d{1,2}:\d{2}' value='yyyy-MM-dd HH:mm'/>
<entry key='\d{1,2}/\d{1,2}/\d{4}\s\d{1,2}:\d{2}' value='MM/dd/yyyy HH:mm'/>
<entry key='\d{4}/\d{1,2}/\d{1,2}\s\d{1,2}:\d{2}' value='yyyy/MM/dd HH:mm'/>
<entry key='\d{1,2}\s[a-z]{3}\s\d{4}\s\d{1,2}:\d{2}' value='dd MMM yyyy HH:mm'/>
<entry key='\d{1,2}\s[a-z]{4,}\s\d{4}\s\d{1,2}:\d{2}' value='dd MMMM yyyy HH:mm'/>
<entry key='\d{4}\s[a-z]{3}\s\d{1,2}' value='yyyy MMM dd'/>
<entry key='\d{14}' value='yyyyMMddHHmmss'/>
<entry key='\d{6}' value='yyyyMM'/>
<entry key='\d{4}' value='yyyy'/>
<entry key='\d{8}\s\d{6}' value='yyyyMMdd HHmmss'/>
<entry key='\d{1,2}-\d{1,2}-\d{4}\s\d{1,2}:\d{2}:\d{2}' value='dd-MM-yyyy HH:mm:ss'/>
<entry key='\d{4}-\d{1,2}-\d{1,2}\s\d{1,2}:\d{2}:\d{2}' value='yyyy-MM-dd HH:mm:ss'/>
<entry key='\d{1,2}/\d{1,2}/\d{4}\s\d{1,2}:\d{2}:\d{2}' value='MM/dd/yyyy HH:mm:ss'/>
<entry key='\d{4}/\d{1,2}/\d{1,2}\s\d{1,2}:\d{2}:\d{2}' value='yyyy/MM/dd HH:mm:ss'/>
<entry key='\d{1,2}\s[a-z]{3}\s\d{4}\s\d{1,2}:\d{2}:\d{2}' value='dd MMM yyyy HH:mm:ss'/>
<entry key='\d{1,2}\s[a-z]{4,}\s\d{4}\s\d{1,2}:\d{2}:\d{2}' value='dd MMMM yyyy HH:mm:ss'/>
<entry key='\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}Z' value="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
<entry key='\d{4}-\d{1,2}-\d{1,2}T\d{1,2}:\d{2}:\d{2}\.\d{3}Z' value="yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"/>
</map>
</property>
</bean>
</beans>