Class AuthorNamesScorer

java.lang.Object
org.dspace.app.suggestion.scorer.AuthorNamesScorer
All Implemented Interfaces:
EvidenceScorer

public class AuthorNamesScorer extends Object implements 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 Details

    • AuthorNamesScorer

      public AuthorNamesScorer()
  • Method Details

    • getContributorMetadata

      public List<String> getContributorMetadata()
      returns the metadata key of the Item which to base the filter on
      Returns:
      metadata key
    • setContributorMetadata

      public void setContributorMetadata(List<String> contributorMetadata)
      set the metadata key of the Item which to base the filter on
    • getNames

      public List<String> getNames()
      return the metadata key of ImportRecord which to base the filter on
      Returns:
    • setNames

      public void setNames(List<String> names)
      set the metadata key of ImportRecord which to base the filter on
    • computeEvidence

      public SuggestionEvidence computeEvidence(Item researcher, ExternalDataObject importRecord)
      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:
      computeEvidence in interface EvidenceScorer
      Parameters:
      importRecord - the import record to check
      researcher - DSpace item
      Returns:
      the generated evidence or null if the record must be discarded