Class PubmedAbstractMetadatumContributor
java.lang.Object
org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
org.dspace.importer.external.pubmed.metadatamapping.contributor.PubmedAbstractMetadatumContributor
- All Implemented Interfaces:
MetadataContributor<org.jdom2.Element>
This class is responsible for extracting the abstract from a PubMed XML document.
It uses XPath to find the relevant elements and constructs a formatted string for the abstract, respecting
PubMed's labelled abstract format, and including the labels in the output.
-
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 t) Retrieve the metadata associated with the given object.Methods inherited from class org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
getField, getMetadataFieldMapping, getPrefixToNamespaceMapping, getQuery, setField, setMetadataFieldMapping, setPrefixToNamespaceMapping, setQuery
-
Constructor Details
-
PubmedAbstractMetadatumContributor
public PubmedAbstractMetadatumContributor()
-
-
Method Details
-
contributeMetadata
Description copied from class:SimpleXpathMetadatumContributorRetrieve the metadata associated with the given object. Depending on the retrieved node (using the query), different types of values will be added to the MetadatumDTO list- Specified by:
contributeMetadatain interfaceMetadataContributor<org.jdom2.Element>- Overrides:
contributeMetadatain classSimpleXpathMetadatumContributor- Parameters:
t- An element to retrieve metadata from.- Returns:
- a collection of import records. Only the identifier of the found records may be put in the record.
-