Class MarcClassificationAnalyzer

Direct Known Subclasses:
Marc21ClassificationAnalyzer, UnimarcClassificationAnalyzer

public abstract class MarcClassificationAnalyzer extends ClassificationAnalyzer
Primarily used to encompass methods that are common to MARC classification analyzers (Marc21ClassificationAnalyzer and UnimarcClassificationAnalyzer), so that code duplication is minimized.
  • Constructor Details

  • Method Details

    • processFieldWithSubfield2

      protected int processFieldWithSubfield2(BibliographicRecord marcRecord, String tag)
      The source is specified in the subfield 2. For each field with the specified tag, extract the schema from the subfield 2 and update the statistics.
      Parameters:
      marcRecord - The current record to extract schemas from
      tag - The tag of the current field where the schema is extracted from
      Returns:
      The number of schemas extracted from the current field
    • extractSchemasFromSubfield2

      protected List<Schema> extractSchemasFromSubfield2(String tag, DataField field)
      Extracts the scheme from the subfield 2 of the current field. If the subfield 2 is not present, a new schema is created with the value "undetectable". Otherwise, a new schema is created for each subfield 2 found.
      Parameters:
      tag - The tag of the current field
      field - The current field from which the subfield 2 is extracted
      Returns:
      The schemas extracted from the subfield 2
    • processFieldWithSchema

      protected int processFieldWithSchema(BibliographicRecord marcRecord, FieldWithScheme fieldEntry)