Class Marc21LinkageHandler

java.lang.Object
de.gwdg.metadataqa.marc.analysis.validator.Marc21LinkageHandler

public class Marc21LinkageHandler extends Object
A handler for linkage validation. Currently, handles only the MARC21 field 880, subfield 6. It is not clear whether similar fields exist in UNIMARC and PICA.
  • Constructor Details

  • Method Details

    • handleLinkage

      public DataField handleLinkage(DataField field, DataFieldDefinition definition)
      Validates the linkage of the field 880. Returns the associated field information if the linkage is valid. Otherwise, returns null. In addition: - adds errors to the errorsCollector - sets the ambiguousLinkage flag to true if the linkage is ambiguous

      Note: Linkage means that the field 880 is linked to another field specified in the subfield $6. In that case, the subfields of the field 880 are the same as the subfields of the linked (i.e. associated) field.

      Parameters:
      field - The field for which the linkage is to be validated and handled
      definition - The definition of the field
      Returns:
      The associated field if the linkage is valid, otherwise null
    • getErrors

      public List<ValidationError> getErrors()
    • isAmbiguousLinkage

      public boolean isAmbiguousLinkage()