From 5fdebe566629393ac8510702bc1cba8cc37c7082 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 14 Dec 2010 17:44:26 -0600 Subject: [PATCH] Removes a check for a return file that was a remnant from another process. Updated the label of the new exif datastream to make more sense. --- workflow_client/plugins/exif.inc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/workflow_client/plugins/exif.inc b/workflow_client/plugins/exif.inc index 5a1ba414..d53e83f3 100644 --- a/workflow_client/plugins/exif.inc +++ b/workflow_client/plugins/exif.inc @@ -45,18 +45,12 @@ class exif extends Process { $command = '/usr/local/exif/exiftool -X '. $file; exec($command, $output, $returnValue); - if (!file_exists($file . $file_suffix)) { - $this->setMessage('command failed: '. htmlentities($command ."\n" . join("\n", $output) ."\n return value: $returnValue")); - @unlink($file); - return FALSE; - } - if ($returnValue == '0') { if (isset($dslist[$dest_ds])) { $item->purge_datastream($dest_ds); } - $ret = $item->add_datastream_from_string(join("\n",$output), $dest_ds, $ds['label'] . $file_suffix, 'text/xml', 'X','Added by workflow process EXIF.'); + $ret = $item->add_datastream_from_string(join("\n",$output), $dest_ds, 'EXIF_Technical_Metadata.xml' , 'text/xml', 'X','Added by workflow process EXIF.'); @unlink($file); @unlink($file . $file_suffix);