Class ShelfReadyAnalysis

java.lang.Object
de.gwdg.metadataqa.marc.analysis.shelfready.ShelfReadyAnalysis

public class ShelfReadyAnalysis extends Object
  • Method Details

    • getScores

      public static List<Double> getScores(BibliographicRecord marcRecord)
    • calculateSelectorScore

      public static double calculateSelectorScore(BibliographicRecord marcRecord, ShelfReadyFieldsBooks category, Map.Entry<String,List<String>> fieldSelector)
      Calculates the score for a given selector (tag and subfield codes) in the given category. If the selector has no subfield codes, then the score is calculated as the number of selectors present in the record.
      Parameters:
      marcRecord - The record to be analyzed
      category - The category to which the selector belongs. Used in case the selector has no subfield codes.
      fieldSelector - A map entry of the form "tag -> subfield codes"
      Returns:
      The score for the given selector
    • getHeaders

      public static List<String> getHeaders()