Author: david
Date: Mon Feb 13 12:48:30 2012
New Revision: 10867

Log:
Fix some typos

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

Modified: trunk/lib/task/archivematicaDipImportTask.class.php
==============================================================================
--- trunk/lib/task/archivematicaDipImportTask.class.php Mon Feb 13 12:44:55 
2012        (r10866)
+++ trunk/lib/task/archivematicaDipImportTask.class.php Mon Feb 13 12:48:30 
2012        (r10867)
@@ -80,7 +80,7 @@
       throw new sfException('You must specify a DIP directory');
     }
 
-    $csvs = 
sfFinder::type('file')->maxdepth(0)->in($arguments['dip'].'/objects/')->name('*.csv');
+    $csvs = 
sfFinder::type('file')->name('*.csv')->in($arguments['dip'].'/objects');
     if (0 == count($csvs) || false === $fh = fopen($csvs[0], 'rb'))
     {
       throw new sfException('You must specify a DIP that contains a csv 
linking file');
@@ -91,7 +91,7 @@
     // If DIP directory is specified then digital objects will be in the
     // "objects" subfolder. Capture dipUUID.
     $dipUUID = $this->getUUID(basename($arguments['dip']));
-    $assetPath = rtrim($arguments['path'], '/').'/objects';
+    $assetPath = rtrim($arguments['dip'], '/').'/objects';
 
     if (null === $dipUUID)
     {
@@ -100,7 +100,7 @@
 
     // Create a lookup table to match original file name (foo.TIF) with DIP
     // filename (979c4458-21f3-11e1-a4bd-001d09282b9d-foo.jpg)
-    $this->createFilenameLookup($arguments['path']);
+    $this->createFilenameLookup($arguments['dip']);
 
     // Build hash on information_object key, with array value if information
     // object has multiple digital objects attached 

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