Test Case CSIP16
CSIP16
Testable: TRUE Schema Valid: Valid Description: The mets/metsHdr/agent with @ROLE='CREATOR' MUST have: - mets/metsHdr/agent/note/@csip:NOTETYPE MUST exist. - mets/metsHdr/agent/note/@csip:NOTETYPE MUST have the value 'SOFTWARE VERSION'.
Rules
-
Rule ID: 1
Descripton: For the CSIP mandatory agent element, mets/metsHdr/agent/note/@csip:NOTETYPE MUST exist.
ERROR: The CSIP mandatory agent element (i.e. mets/metsHdr/agent[@ROLE='CREATOR']) mets/metsHdr/agent/note/@csip:NOTETYPE attribute does not exist. MUST be: attribute exists and has the value 'SOFTWARE VERSION'.
Packages:
mets-xml_metsHdr_agent_note_NOTETYPE_not_exist
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.88s True E-ARK Python Validator v1.1.3 0 invalid 0.39s True mets-xml_metsHdr_agent_note_NOTETYPE_valid
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.88s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False -
Rule ID: 2
Descripton: For the CSIP mandatory agent element, mets/metsHdr/agent/note/@csip:NOTETYPE MUST have the value 'SOFTWARE VERSION'.
ERROR: The CSIP mandatory agent element (i.e. mets/metsHdr/agent[@ROLE='CREATOR']) mets/metsHdr/agent/note/@csip:NOTETYPE has incorrect value. MUST be: attribute exists and has the value 'SOFTWARE VERSION'.
Packages:
mets-xml_metsHdr_agent_note_NOTETYPE_incorrect
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.83s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.85s True E-ARK Python Validator v1.1.3 0 invalid 0.38s True mets-xml_metsHdr_agent_note_NOTETYPE_valid
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.88s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False