4Science / DSpace

This repository contains the 4Science optimized DSpace & DSpace-CRIS distribution.
https://wiki.lyrasis.org/display/DSPACECRIS/
BSD 3-Clause "New" or "Revised" License
42 stars 61 forks source link

use authority instead of value for type-bind #355

Open philippcle opened 1 year ago

philippcle commented 1 year ago

In the current version of DSpace-CRIS-7, it is not possible to store values in MD fields that are associated with type-bind. This is because the validate method in MetadataValidator.java uses the value of DocumentType, but in DSpace-CRIS-7 the DocumentType is controlled by the controlled-vocabulary publication-coar-types. Therefore, the validate method must use the authority of the DocumentType.

saschaszott commented 1 year ago

This issue affects at least DS CRIS 2023.01 and 2022.03.

philippcle commented 1 year ago

The issue that empty MD fields with the required-property are accepted when these fields are associated with a type-bind is also fixed by this PR.

philippcle commented 1 year ago

It is important to point out that the problem only occurs if you have implemented the type bind using the COAR vocabulary.