Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing authority handling (COAR document types) in migration of dc.type #360

Open
saschaszott opened this issue Jul 17, 2023 · 0 comments
Labels

Comments

@saschaszott
Copy link

Bug description

In DSpace CRIS 7 document types are based on the COAR controlled vocabulary. This means that entries in metadata field dc.type are related to a COAR document type ID (taken from the IDs in file publication-coar-types.xml). The COAR ID is managed in column authority of the metadatavalue table.

The migration procedure of metadata field dc.type does not consider the handling of authorities. The values of document types (dc.type) are copied from the old DS CRIS 5 without any mapping to metadatavalue.text_value. The additional lookup of the COAR document type ID is missing.

After the migration the entries in dc.type are not connected to COAR types (column metadatavalue.authority contains NULL values).

In the end, this leads to a situation where duplicated document types arise, e.g. in the doc type browsing view (see screenshot). The authority value of dc.type in new submissions is set correctly, the migrated publication items have the NULL value in metadatavalue.authority.

image

To fix this bug an additional lookup step is required.

Expected behavior

Column metadatavalue.authority contains COAR IDs (expected syntax publication-coar-types:ID).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant