Class ShelfReadyAnalysis
java.lang.Object
de.gwdg.metadataqa.marc.analysis.shelfready.ShelfReadyAnalysis
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublecalculateSelectorScore(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.getScores(BibliographicRecord marcRecord)
-
Method Details
-
getScores
-
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 analyzedcategory- 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
-