Class PageRangeXPathMetadataContributor
java.lang.Object
org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
org.dspace.importer.external.metadatamapping.contributor.PageRangeXPathMetadataContributor
- All Implemented Interfaces:
MetadataContributor<org.jdom2.Element>
Scopus specific implementation of
MetadataContributor
Responsible for generating the Scopus startPage and endPage from the retrieved item.- Author:
- Boychuk Mykhaylo (boychuk.mykhaylo at 4science.com)
-
Field Summary
Fields inherited from class org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
field, metadataFieldMapping, prefixToNamespaceMapping, query -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontributeMetadata(org.jdom2.Element el) Retrieve the metadata associated with the given Element object.voidsetEndPageMetadata(MetadataFieldConfig endPageMetadata) voidsetStartPageMetadata(MetadataFieldConfig startPageMetadata) Methods inherited from class org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
getField, getMetadataFieldMapping, getPrefixToNamespaceMapping, getQuery, setField, setMetadataFieldMapping, setPrefixToNamespaceMapping, setQuery
-
Constructor Details
-
PageRangeXPathMetadataContributor
public PageRangeXPathMetadataContributor()
-
-
Method Details
-
contributeMetadata
Retrieve the metadata associated with the given Element object. Depending on the retrieved node (using the query), StartPage and EndPage values will be added to the MetadatumDTO list- Specified by:
contributeMetadatain interfaceMetadataContributor<org.jdom2.Element>- Overrides:
contributeMetadatain classSimpleXpathMetadatumContributor- Parameters:
el- A class to retrieve metadata from.- Returns:
- A collection of import records. Only the StartPage and EndPage of the found records may be put in the record.
-
getStartPageMetadata
-
setStartPageMetadata
-
getEndPageMetadata
-
setEndPageMetadata
-