Class GeneratePubmedQueryService
- java.lang.Object
-
- org.dspace.importer.external.pubmed.metadatamapping.transform.GeneratePubmedQueryService
-
- All Implemented Interfaces:
GenerateQueryService
public class GeneratePubmedQueryService extends Object implements GenerateQueryService
This class is an implementation ofGenerateQueryServiceRepresents a service that generates the pubmed query which is used to retrieve the records. This is based on a given item.- Author:
- Jonas - (jonas at atmire dot com)
-
-
Constructor Summary
Constructors Constructor Description GeneratePubmedQueryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuerygenerateQueryForItem(Item item)Create a Query object based on a given item.
-
-
-
Method Detail
-
generateQueryForItem
public Query generateQueryForItem(Item item) throws MetadataSourceException
Create a Query object based on a given item. If the item has at least 1 value for dc.identifier.doi, the first one will be used. If no DOI is found, the title will be used. When no DOI or title is found, an null object is returned instead.- Specified by:
generateQueryForItemin interfaceGenerateQueryService- Parameters:
item- the Item to create a Query from- Throws:
MetadataSourceException
-
-