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 of MetadataContributor Responsible for generating the Scopus startPage and endPage from the retrieved item.
Author:
Boychuk Mykhaylo (boychuk.mykhaylo at 4science.com)
  • Constructor Details

    • PageRangeXPathMetadataContributor

      public PageRangeXPathMetadataContributor()
  • Method Details

    • 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:
      contributeMetadata in interface MetadataContributor<org.jdom2.Element>
      Overrides:
      contributeMetadata in class SimpleXpathMetadatumContributor
      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)