From ceb50f531b97ad40ad882340e3c602a7b5149f35 Mon Sep 17 00:00:00 2001 From: nruest Date: Fri, 3 Aug 2012 14:54:50 -0400 Subject: [PATCH] fits plugin --- plugins/fits.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/fits.inc b/plugins/fits.inc index 1de5a559..d8a04381 100644 --- a/plugins/fits.inc +++ b/plugins/fits.inc @@ -33,12 +33,12 @@ class fits { * @param type $file_ext * @return type */ - function extractMetadata($parameterArray, $dsid, $file, $file_ext) { + function extractFits($parameterArray, $dsid, $file, $file_ext) { $system = getenv('System'); $file_suffix = '_' . $dsid . '.xml'; $returnValue = TRUE; $output = array(); - exec('fits ' . escapeshellarg($file) . '', $output); + exec('fits.sh -i ' . escapeshellarg($file) . '', $output); file_put_contents($file . $file_suffix, implode("\n", $output)); $_SESSION['fedora_ingest_files']["$dsid"] = $file . $file_suffix; return TRUE; @@ -48,13 +48,13 @@ class fits { * display metadata * @return type */ - function displayMetadata() { + function displayFits() { $output = ''; $exif = $this->item->get_datastream_dissemination('FITS'); if (trim($exif) != '') { $exifDom = DOMDocument::loadXML($this->item->get_datastream_dissemination('FITS')); if ($exifDom != NULL) { - $description = $exifDom->getElementsByTagNameNS('http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'Description'); + $description = $exifDom->getElementsByTagName('fits'); if ($description->length > 0) { $description = $description->item(0); $output .= '