relatedItems may result in parents get detached

Description

If a mods document has already a parent document that has no corresponding xlink in <relatedItem> a new parent is generated and object is detached from it original parent:

Code sample:

Environment

None

Assignee

Thomas Scheffler

Reporter

Thomas Scheffler

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Priority

Medium
Configure