Class AuthorMetadataContributor
- java.lang.Object
-
- org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor
-
- org.dspace.importer.external.metadatamapping.contributor.AuthorMetadataContributor
-
- All Implemented Interfaces:
MetadataContributor<org.jdom2.Element>
public class AuthorMetadataContributor extends SimpleXpathMetadatumContributor
Scopus specific implementation ofMetadataContributorResponsible for generating the ScopusID, orcid, author name and affiliationID from the retrieved item.- 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 Constructor Description AuthorMetadataContributor()
-
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.MetadataFieldConfiggetAffiliation()MetadataFieldConfiggetAuthname()MetadataFieldConfiggetOrcid()MetadataFieldConfiggetScopusId()voidsetAffiliation(MetadataFieldConfig affiliation)voidsetAuthname(MetadataFieldConfig authname)voidsetOrcid(MetadataFieldConfig orcid)voidsetScopusId(MetadataFieldConfig scopusId)-
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 element)
Retrieve 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- A class to retrieve metadata from.- Returns:
- A collection of import records. Only the ScopusID, orcid, author name and affiliation of the found records may be put in the record.
-
getAuthname
public MetadataFieldConfig getAuthname()
-
setAuthname
public void setAuthname(MetadataFieldConfig authname)
-
getOrcid
public MetadataFieldConfig getOrcid()
-
setOrcid
public void setOrcid(MetadataFieldConfig orcid)
-
getScopusId
public MetadataFieldConfig getScopusId()
-
setScopusId
public void setScopusId(MetadataFieldConfig scopusId)
-
getAffiliation
public MetadataFieldConfig getAffiliation()
-
setAffiliation
public void setAffiliation(MetadataFieldConfig affiliation)
-
-