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>
public class PageRangeXPathMetadataContributor extends SimpleXpathMetadatumContributor
Scopus specific implementation ofMetadataContributorResponsible 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 Constructor Description PageRangeXPathMetadataContributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<MetadatumDTO>contributeMetadata(org.jdom2.Element el)Retrieve the metadata associated with the given Element object.MetadataFieldConfiggetEndPageMetadata()MetadataFieldConfiggetStartPageMetadata()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
-
-
-
-
Method Detail
-
contributeMetadata
public Collection<MetadatumDTO> contributeMetadata(org.jdom2.Element el)
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
public MetadataFieldConfig getStartPageMetadata()
-
setStartPageMetadata
public void setStartPageMetadata(MetadataFieldConfig startPageMetadata)
-
getEndPageMetadata
public MetadataFieldConfig getEndPageMetadata()
-
setEndPageMetadata
public void setEndPageMetadata(MetadataFieldConfig endPageMetadata)
-
-