Test Case SIP5
SIP5
Testable: TRUE Schema Valid: invalid XML Validation Error: Element 'package', attribute 'isImplemented': The attribute 'isImplemented' is not allowed. Description: mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] MAY exist. If mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] exists then it MUST have a text node with a reference to the Submission Agreement associated with the package. mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] MAY exist only once.
Rules
-
Rule ID: 1
Descripton: mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] MAY exist.
INFO: mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] does not exist. MAY be: mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] exists and its text is a reference to the Submission Agreement associated with the package.
Packages:
altRecordID_SUBMISSIONAGREEMENT_not_exist
Expected result: invalid
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.93s False E-ARK Python Validator v1.1.3 0 invalid 0.40s False 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.92s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.97s True E-ARK Python Validator v1.1.3 0 invalid 0.41s True -
Rule ID: 2
Descripton: If mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] exists then it MUST have a text node.
INFO: mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] element has no text node. MUST be: if mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] exists then it MUST have text that is a reference to the Submission Agreement associated with the package.
Packages:
altRecordID_SUBMISSIONAGREEMENT_no_text
Expected result: invalid
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.95s True E-ARK Python Validator v1.1.3 0 invalid 0.39s True 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.92s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.97s True E-ARK Python Validator v1.1.3 0 invalid 0.41s True -
Rule ID: 3
Descripton: mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] MAY exist only once.
INFO: mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] exists more than once. MAY be: mets/metsHdr/altRecordID[@TYPE='SUBMISSIONAGREEMENT'] exists once and its text is a reference to the Submission Agreement associated with the package.
Packages:
altRecordID_SUBMISSIONAGREEMENT_2_instances
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.98s True E-ARK Python Validator v1.1.3 0 invalid 0.41s True 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.92s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.97s True E-ARK Python Validator v1.1.3 0 invalid 0.41s True