Package org.dspace.app.suggestion.scorer
Class AuthorNamesScorer
java.lang.Object
org.dspace.app.suggestion.scorer.AuthorNamesScorer
- All Implemented Interfaces:
EvidenceScorer
Implementation of which evaluate ImportRecords
based on Author's name.
- Author:
- Andrea Bollini (andrea.bollini at 4science dot it), Pasquale Cavallo (pasquale.cavallo at 4science dot it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeEvidence(Item researcher, ExternalDataObject importRecord) Method which is responsible to evaluate ImportRecord based on authors name.returns the metadata key of the Item which to base the filter ongetNames()return the metadata key of ImportRecord which to base the filter onvoidsetContributorMetadata(List<String> contributorMetadata) set the metadata key of the Item which to base the filter onvoidset the metadata key of ImportRecord which to base the filter on
-
Constructor Details
-
AuthorNamesScorer
public AuthorNamesScorer()
-
-
Method Details
-
getContributorMetadata
returns the metadata key of the Item which to base the filter on- Returns:
- metadata key
-
setContributorMetadata
set the metadata key of the Item which to base the filter on -
getNames
return the metadata key of ImportRecord which to base the filter on- Returns:
-
setNames
set the metadata key of ImportRecord which to base the filter on -
computeEvidence
Method which is responsible to evaluate ImportRecord based on authors name. This method extract the researcher name from Item using contributorMetadata fields and try to match them with values extract from ImportRecord using metadata keys defined in names. ImportRecords which don't match will be discarded.- Specified by:
computeEvidencein interfaceEvidenceScorer- Parameters:
importRecord- the import record to checkresearcher- DSpace item- Returns:
- the generated evidence or null if the record must be discarded
-