Test Case SIP8
SIP8
Testable: TRUE Schema Valid: invalid XML Validation Error: Element 'package', attribute 'isImplemented': The attribute 'isImplemented' is not allowed. Description: mets/metsHdr/altRecordID[@TYPE='PREVIOUSREFERENCECODE'] MAY exist. If mets/metsHdr/altRecordID[@TYPE='PREVIOUSREFERENCECODE'] exists then it MUST have a text node that records a reference code that was used for the SIP in the institution where it originated from.
Rules
-
Rule ID: 1
Descripton: mets/metsHdr/altRecordID[@TYPE='PREVIOUSREFERENCECODE'] MAY exist.
INFO: mets/metsHdr/altRecordID[@TYPE='PREVIOUSREFERENCECODE'] does not exist. MAY be: mets/metsHdr/altRecordID[@TYPE='PREVIOUSREFERENCECODE'] exists and its text records a reference code that was used for the SIP in the institution where it originated from.
Packages:
altRecordID_PREVIOUSREFERENCECODE_not_exist
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.93s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.93s False E-ARK Python Validator v1.1.3 0 invalid 0.40s False minimal_SIP_PREVIOUSREFERENCECODE_1_instance
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code minimal_SIP_plus_mets_SHOULD_MAY_items
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.90s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.97s True E-ARK Python Validator v1.1.3 0 invalid 0.40s True -
Rule ID: 2
Descripton: If mets/metsHdr/altRecordID[@TYPE='PREVIOUSREFERENCECODE'] exists then it MUST have a text node.
INFO: mets/metsHdr/altRecordID[@TYPE='PREVIOUSREFERENCECODE'] element has no text node. MUST be: if mets/metsHdr/altRecordID[@TYPE='PREVIOUSREFERENCECODE'] exists then it MUST have a text node that records a reference code that was used for the SIP in the institution where it originated from.
Packages:
altRecordID_PREVIOUSREFERENCECODE_no_text
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.87s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.96s True E-ARK Python Validator v1.1.3 0 invalid 0.40s True minimal_SIP_PREVIOUSREFERENCECODE_1_instance
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code