From 59777cf63f7dde4d5730a41a257cfdd904ac6512 Mon Sep 17 00:00:00 2001 From: mroy Date: Tue, 7 Dec 2010 13:01:37 -0600 Subject: [PATCH] Modified exiftool display method to only continue if a valid EXIF datastream was found. --- plugins/Exiftool.inc | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/plugins/Exiftool.inc b/plugins/Exiftool.inc index 02ff913c..d4feac7a 100644 --- a/plugins/Exiftool.inc +++ b/plugins/Exiftool.inc @@ -33,29 +33,30 @@ class Exiftool { function displayMetadata() { $output=''; $exifDom = DOMDocument::loadXML($this->item->get_datastream_dissemination('EXIF')); - - $description = $exifDom->getElementsByTagNameNS('http://www.w3.org/1999/02/22-rdf-syntax-ns#','Description'); - if ($description->length > 0) { - $description=$description->item(0); - $output .= '
'; - - $fieldset = array( - '#title' => t("!text", array('!text' => 'Technical Metadata')), - '#collapsible' => TRUE, - '#collapsed' => TRUE, - '#value' => $output - ); - $output = theme('fieldset', $fieldset); } return $output; }