Author: david
Date: Mon Feb 13 12:52:43 2012
New Revision: 10868

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:48:30 
2012        (r10867)
+++ trunk/lib/task/archivematicaDipImportTask.class.php Mon Feb 13 12:52:43 
2012        (r10868)
@@ -86,7 +86,7 @@
       throw new sfException('You must specify a DIP that contains a csv 
linking file');
     }
 
-    $this->logSection("Link digital objects from {$arguments['dip']}...");
+    $this->logSection(sprintf("Link digital objects from %s...", 
basename($arguments['dip'])));
 
     // If DIP directory is specified then digital objects will be in the
     // "objects" subfolder. Capture dipUUID.
@@ -100,13 +100,13 @@
 
     // Create a lookup table to match original file name (foo.TIF) with DIP
     // filename (979c4458-21f3-11e1-a4bd-001d09282b9d-foo.jpg)
-    $this->createFilenameLookup($arguments['dip']);
+    $this->createFilenameLookup($assetPath);
 
     // Build hash on information_object key, with array value if information
     // object has multiple digital objects attached 
     while ($row = fgetcsv($fh, 1000))
     {
-      $filepath = rtrim($arguments['dip'], '/').'/'.$row[1];
+      $filepath = rtrim($assetPath, '/').'/'.$row[1];
 
       // Check if filename has been changed by Archivematica
       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.

Reply via email to