Class SimpleMultiplePathContributor
java.lang.Object
org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
org.dspace.importer.external.metadatamapping.contributor.SimpleMultiplePathContributor
- All Implemented Interfaces:
MetadataContributor<org.jdom2.Element>
Web of Science specific implementation of
MetadataContributor.
This contributor can perform research on multi-paths.
For example, to populate the subject metadata, in the Web of Science response
the values are contained in different paths,
so this Contributor allows you to collect the values by configuring the paths in the paths list.- Author:
- Boychuk Mykhaylo (boychuk.mykhaylo at 4Science dot it)
-
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.getPaths()voidMethods inherited from class org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
getField, getMetadataFieldMapping, getPrefixToNamespaceMapping, getQuery, setField, setMetadataFieldMapping, setPrefixToNamespaceMapping, setQuery
-
Constructor Details
-
SimpleMultiplePathContributor
public SimpleMultiplePathContributor() -
SimpleMultiplePathContributor
-
-
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.
-
getPaths
-
setPaths
-