only create new MCRObject for related item if xlink:href contains MCRObjectID
Description
Only create new Objects if xlink:href contains a null object ID e.g. mir_mods_00000000. And also only delete mods:relatedItem content if xlink:href contains a valid MCRObjectID
Environment
None
Activity
Thomas Scheffler
May 28, 2015 at 1:11 PM
fixed XPATH to detect linked documents
Kathleen Neumann
May 27, 2015 at 4:36 PM
I have created a new mods-object (book in collection) with the following xml. But all the content from relatedItem was removed and only an empty <relatedItem /> tag remains.
Thomas Scheffler
May 27, 2015 at 1:35 PM
Please check after updating editor forms if this problem is completly solved. Mark as resolved for now.
Thomas Scheffler
May 27, 2015 at 1:25 PM
1st part: create new elements only if MCRObjectID with zeros is given in @xlink:href
Only create new Objects if xlink:href contains a null object ID e.g. mir_mods_00000000. And also only delete mods:relatedItem content if xlink:href contains a valid MCRObjectID