Author: mcantelon
Date: Fri Jan 27 17:26:32 2012
New Revision: 10758

Log:
Added support for having multiple people in same access point role.

Modified:
   trunk/lib/task/import/csvImportTask.class.php

Modified: trunk/lib/task/import/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportTask.class.php       Fri Jan 27 16:42:40 
2012        (r10757)
+++ trunk/lib/task/import/csvImportTask.class.php       Fri Jan 27 17:26:32 
2012        (r10758)
@@ -453,7 +453,6 @@
                  $eventData
                );
             }
-print 'Created for '. $self->object->title ."\n";
           }
 
           // if a role is found, create term and actor if need be
@@ -467,10 +466,16 @@
                 $actorRole['role']
               );
 
-              // create/fetch actor
-              $self->createOrFetchActor($actorRole['actor']);
+              // allow for multiple people in same role
+              $actors = explode('|', $actorRole['actor']);
 
-              $self->createEvent($term->id, array('actorName' => 
$actorRole['actor']));
+              foreach($actors as $actor)
+              {
+                // create/fetch actor
+                $self->createOrFetchActor($actor);
+
+                $self->createEvent($term->id, array('actorName' => $actor));
+              }
             }
           }
         }

-- 
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.

Reply via email to