Class GeneratePubmedQueryService
java.lang.Object
org.dspace.importer.external.pubmed.metadatamapping.transform.GeneratePubmedQueryService
- All Implemented Interfaces:
GenerateQueryService
This class is an implementation of
GenerateQueryService
Represents 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 -
Method Summary
Modifier and TypeMethodDescriptiongenerateQueryForItem(Item item) Create a Query object based on a given item.
-
Constructor Details
-
GeneratePubmedQueryService
public GeneratePubmedQueryService()
-
-
Method Details
-
generateQueryForItem
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
-