E-ARK-Software / py-rest-ip-validator

Flask wrapping for Information Package validation from eatb
Apache License 2.0
1 stars 2 forks source link

CSIP114 rule too strict #27

Open koit opened 4 years ago

koit commented 4 years ago

CSIP114 requires the presence of one or more mets/fileSec/fileGrp/@USE attributes with the value "Representations," i.e.:

USE="Representations"

However, the idea is for the attribute to contain the full folder path (see E-ARK-CSIP issue #642), e.g.:

USE="Representations/submission/data" USE="Representations/preingest" USE="Representations/submission" USE="Representations/ingest"

The current Schematron rules for fileSec check strictly for USE="Representations", but they should test only the beginning of the string, something like USE="Representations*".

<rule context="/mets:mets/mets:fileSec">
  <assert id="CSIP114" role="ERROR" test="mets:fileGrp[@USE = 'Representations']">A pointer to the METS document describing the representation or pointers to the content being transferred must be present in one or more file groups with mets/fileSec/fileGrp/@USE attribute value “Representations”.</assert>
</rule>