Class WosIdentifierContributor
- java.lang.Object
-
- org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
-
- org.dspace.importer.external.metadatamapping.contributor.WosIdentifierContributor
-
- All Implemented Interfaces:
MetadataContributor<org.jdom2.Element>
public class WosIdentifierContributor extends SimpleXpathMetadatumContributor
This contributor can retrieve the identifiers configured in "this.identifire2field" from the Web of Science response. The mapping and configuration of this class can be found in the following wos-integration.xml file.- Author:
- Boychuk Mykhaylo (boychuk.mykhaylo at 4Science dot it)
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,MetadataFieldConfig>identifier2field-
Fields inherited from class org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
field, metadataFieldMapping, prefixToNamespaceMapping, query
-
-
Constructor Summary
Constructors Constructor Description WosIdentifierContributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<MetadatumDTO>contributeMetadata(org.jdom2.Element element)Retrieve the metadata associated with the given object.Map<String,MetadataFieldConfig>getIdentifier2field()voidsetIdentifier2field(Map<String,MetadataFieldConfig> identifier2field)-
Methods inherited from class org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
getField, getMetadataFieldMapping, getPrefixToNamespaceMapping, getQuery, setField, setMetadataFieldMapping, setPrefixToNamespaceMapping, setQuery
-
-
-
-
Field Detail
-
identifier2field
protected Map<String,MetadataFieldConfig> identifier2field
-
-
Method Detail
-
contributeMetadata
public Collection<MetadatumDTO> contributeMetadata(org.jdom2.Element element)
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:
element- 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.
-
getIdentifier2field
public Map<String,MetadataFieldConfig> getIdentifier2field()
-
setIdentifier2field
public void setIdentifier2field(Map<String,MetadataFieldConfig> identifier2field)
-
-