Author: mcantelon
Date: Thu Jan  5 11:52:22 2012
New Revision: 10572

Log:
Got rid of redundant column handler.

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

Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php      Thu Jan  5 11:48:56 2012        
(r10571)
+++ trunk/lib/task/csvImportTask.class.php      Thu Jan  5 11:52:22 2012        
(r10572)
@@ -191,6 +191,7 @@
       ),
       /* these values get exploded and stored to the rowStatusVars array */
       'arrayColumns' => array(
+        'accessionNumber'     => '|',
         'creators'            => '|',
         'creatorHistory'      => '|',
         'subjectAccessPoints' => '|',
@@ -250,11 +251,11 @@
 
         // add accessions
         if (
-          isset($self->rowStatusVars['accessionNumbers'])
-          && count($self->rowStatusVars['accessionNumbers'])
+          isset($self->rowStatusVars['accessionNumber'])
+          && count($self->rowStatusVars['accessionNumber'])
         )
         {
-          foreach($self->rowStatusVars['accessionNumbers'] as $accessionNumber)
+          foreach($self->rowStatusVars['accessionNumber'] as $accessionNumber)
           {
             /* currently errors out
             $accession = new QubitDeaccessionI18n;
@@ -392,14 +393,6 @@
       $self->informationObject->setLevelOfDescriptionByName($data);
     });
 
-    $import->addColumnHandler('accessionNumber', function(&$self, $data)
-    {
-      if ($data)
-      {
-        $self->rowStatusVars['accessionNumbers'] = explode('|', $data);
-      }
-    });
-
     $import->addColumnHandler('radGeneralMaterialDesignation', 
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