Class Marc21LinkageHandler
java.lang.Object
de.gwdg.metadataqa.marc.analysis.validator.Marc21LinkageHandler
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 Summary
ConstructorsConstructorDescriptionMarc21LinkageHandler(ValidatorConfiguration configuration, ErrorsCollector errorsCollector) -
Method Summary
Modifier and TypeMethodDescriptionhandleLinkage(DataField field, DataFieldDefinition definition) Validates the linkage of the field 880.boolean
-
Constructor Details
-
Marc21LinkageHandler
-
-
Method Details
-
handleLinkage
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 ambiguousNote: 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 handleddefinition- The definition of the field- Returns:
- The associated field if the linkage is valid, otherwise null
-
getErrors
-
isAmbiguousLinkage
public boolean isAmbiguousLinkage()
-