Test Case CSIP13
CSIP13
Testable: TRUE Schema Valid: Valid Description: The mets/metsHdr/agent with @ROLE='CREATOR' MUST have: - mets/metsHdr/agent/@OTHERTYPE MUST exist. - mets/metsHdr/agent/@OTHERTYPE MUST have the value 'SOFTWARE'.
Rules
-
Rule ID: 1
Descripton: For the CSIP mandatory agent element, mets/metsHdr/agent/@OTHERTYPE MUST exist.
ERROR: The CSIP mandatory agent element (i.e. mets/metsHdr/agent[@ROLE='CREATOR']) mets/metsHdr/agent/@OTHERTYPE attribute does not exist. MUST be: attribute exists and has the value 'SOFTWARE'.
Packages:
mets-xml_metsHdr_agent_OTHERTYPE_not_exist
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.87s True E-ARK Python Validator v1.1.3.dev7 0 invalid 2.78s True E-ARK Python Validator v1.1.3 0 invalid 0.38s True -
Rule ID: 2
Descripton: For the CSIP mandatory agent element, mets/metsHdr/agent/@OTHERTYPE MUST have the value 'SOFTWARE'.
ERROR: The CSIP mandatory agent element (i.e. mets/metsHdr/agent[@ROLE='CREATOR']) mets/metsHdr/agent/@OTHERTYPE has incorrect value. MUST be: attribute exists and has the value 'SOFTWARE'.
Packages:
mets-xml_metsHdr_agent_OTHERTYPE_incorrect
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.89s True E-ARK Python Validator v1.1.3.dev7 0 invalid 2.79s True E-ARK Python Validator v1.1.3 0 invalid 0.37s True mets-xml_metsHdr_agent_OTHERTYPE_correct
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.86s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.88s False E-ARK Python Validator v1.1.3 0 invalid 0.39s False