Index: trunk/ippScripts/scripts/chip_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/chip_imfile.pl	(revision 20927)
+++ trunk/ippScripts/scripts/chip_imfile.pl	(revision 21309)
@@ -53,5 +53,5 @@
     defined $chip_id and
     defined $class_id and
-    ## defined $chip_imfile_id and  XXX until this is added to the scheme, do not require it : 
+    defined $chip_imfile_id and 
     defined $uri and
     defined $camera and
@@ -102,5 +102,4 @@
 $ipprc->outroot_prepare($outroot);
 
-my $image_id = $chip_imfile_id;
 my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_CHIP);
 
@@ -133,6 +132,6 @@
         $command .= " -threads $threads" if defined $threads;
         $command .= " -dbname $dbname" if defined $dbname;
-	# $command .= " -image_id $image_id" if defined $image_id;
-	# $command .= " -source_id $source_id" if defined $source_id;
+	$command .= " -image_id $chip_imfile_id" if defined $chip_imfile_id;
+	$command .= " -source_id $source_id" if defined $source_id;
         $command .= " -dumpconfig $configuration";
         $command .= " -tracedest $traceDest -log $logDest";
@@ -143,6 +142,6 @@
         $command .= " -threads $threads" if defined $threads;
         $command .= " -dbname $dbname" if defined $dbname;
-	# $command .= " -image_id $image_id" if defined $image_id;
-	# $command .= " -source_id $source_id" if defined $source_id;
+	$command .= " -image_id $chip_imfile_id" if defined $chip_imfile_id;
+	$command .= " -source_id $source_id" if defined $source_id;
         $command .= " -tracedest $traceDest -log $logDest";
         $command .= " -Db PPIMAGE:PHOTOM FALSE";
