Test Case CSIP8
CSIP8
Testable: TRUE Schema Valid: Valid Description: If the package has been modified, mets/metsHdr/@LASTMODDATE MUST exist. If mets/metsHdr/@LASTMODDATE exists, it MUST have a value that is a date. If mets/metsHdr/@LASTMODDATE exists, its value MUST be the actual date the package was modified. If mets/metsHdr/@LASTMODDATE exists, its value MUST be a date not in the future.
Rules
-
Rule ID: 1
Descripton: If the package has been modified, mets/metsHdr/@LASTMODDATE MUST exist.
ERROR: mets/metsHdr/@LASTMODDATE attribute does not exist. SHOULD be: If the package has been modified, the attribute MUST exist and have a value that is a date in the format of xsd:dateTime.
Packages:
mets-xml_metsHdr_LASTMODDATE_not_exist
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.95s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.80s True E-ARK Python Validator v1.1.3 0 invalid 0.39s True mets-xml_metsHdr_LASTMODDATE_OK
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.81s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False -
Rule ID: 2
Descripton: If mets/metsHdr/@LASTMODDATE exists, its value MUST be a date not in the future.
ERROR: mets/metsHdr/@LASTMODDATE value is a date in the future. SHOULD be: If the package has been modified, the value MUST indicate the date of last modification, which cannot be in the future.
Packages:
mets-xml_metsHdr_LASTMODDATE_in_future
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.92s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.79s True E-ARK Python Validator v1.1.3 0 invalid 0.38s True mets-xml_metsHdr_LASTMODDATE_OK
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.81s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False