Author: mcantelon
Date: Wed Jan  4 16:59:29 2012
New Revision: 10565

Log:
Added handling of datesOfCreationNote column.

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

Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php     Wed Jan  4 16:46:11 2012        
(r10564)
+++ trunk/lib/QubitFlatfileImport.class.php     Wed Jan  4 16:59:29 2012        
(r10565)
@@ -301,6 +301,11 @@
       $event->actorId = $actor->id;
     }
 
+    if (isset($options['description']))
+    {
+      $event->description = $options['description'];
+    }
+
     $event->startDate = $options['startDate'];
 
     if (isset($options['endDate']))

Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php      Wed Jan  4 16:46:11 2012        
(r10564)
+++ trunk/lib/task/csvImportTask.class.php      Wed Jan  4 16:59:29 2012        
(r10565)
@@ -314,6 +314,11 @@
                 'actorName' => $creator
               );
 
+              if(isset($self->rowStatusVars['datesOfCreationNote']))
+              {
+                $eventData['description'] = 
$self->rowStatusVars['datesOfCreationNote'];
+              }
+
               if(isset($self->rowStatusVars['creatorHistory']))
               {
                 $creatorPosition = array_search($creator, 
$self->rowStatusVars['creators']);
@@ -420,6 +425,11 @@
       $self->rowStatusVars['copyrightHolder'] = $data;
     });
 
+    $import->addColumnHandler('datesOfCreationNote', function(&$self, $data)
+    {
+      $self->rowStatusVars['datesOfCreationNote'] = $data;
+    });
+
     $import->addColumnHandler('subjectAccessPoints', function(&$self, $data)
     {
       if ($data)

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