Package io.goobi.viewer.model.export
Class RISExport
java.lang.Object
io.goobi.viewer.model.export.RISExport
Exports search results in RIS (Research Information Systems) format.
Executes a paged Solr query and writes the collected search hits as a RIS file to an output stream via a temporary file.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RISExport
public RISExport()Constructor.
-
-
Method Details
-
executeSearch
public void executeSearch(String finalQuery, List<StringPair> sortFields, List<String> filterQueries, Map<String, String> params, Map<String, throws IndexUnreachableException, DAOException, PresentationException, ViewerConfigurationExceptionSet<String>> searchTerms, Locale locale, int proximitySearchDistance) - Parameters:
finalQuery- the final Solr query stringsortFields- list of field/order pairs for result sortingfilterQueries- additional Solr filter queries to applyparams- additional Solr query parameterssearchTerms- search terms grouped by field, used for highlightinglocale- locale for label and metadata translationproximitySearchDistance- maximum word distance for proximity searches- Throws:
IndexUnreachableExceptionDAOExceptionPresentationExceptionViewerConfigurationExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
writeToResponse
- Parameters:
os- the output stream to write the RIS file content to- Returns:
- True if successful; false otherwise
- Throws:
IOException
-
isHasResults
public boolean isHasResults()- Returns:
- true if searchHits not empty; false otherwise
-
getFileName
-
getSearchHits
-