Author: david
Date: Thu Dec 8 16:56:26 2011
New Revision: 10386
Log:
Don't attach another digital object if information object already has one
Modified:
trunk/lib/task/archivematicaDipImportTask.class.php
Modified: trunk/lib/task/archivematicaDipImportTask.class.php
==============================================================================
--- trunk/lib/task/archivematicaDipImportTask.class.php Thu Dec 8 16:02:49
2011 (r10385)
+++ trunk/lib/task/archivematicaDipImportTask.class.php Thu Dec 8 16:56:26
2011 (r10386)
@@ -169,6 +169,13 @@
protected function addDigitalObject($informationObject, $filepath, $conn)
{
+ if (null !== $informationObject->getDigitalObject())
+ {
+ $this->log("A digital object is already attached to
$informationObject->identifier. Skipping.");
+
+ return;
+ }
+
// read file contents
if (!file_exists($filepath))
{
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.