From 51a8a8343fbec50f89c396125b4662ed9f5c75ce Mon Sep 17 00:00:00 2001 From: nruest Date: Fri, 3 Aug 2012 16:00:16 -0400 Subject: [PATCH] aping the Exiftool class in audio_sp.inc --- plugins/fits.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/fits.inc b/plugins/fits.inc index ef4cf35d..3207c7b3 100644 --- a/plugins/fits.inc +++ b/plugins/fits.inc @@ -18,11 +18,12 @@ class fits { * Constructor * @param type $pid */ - function __construct($pid) { - //drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); - $this->pid = $pid; + function __construct($pid = NULL) { module_load_include('inc', 'fedora_repository', 'api/fedora_item'); - $this->item = new Fedora_Item($this->pid); + if (!empty($pid)) { + $this->pid = $pid; + $this->item = new Fedora_Item($this->pid); + } } /** @@ -34,7 +35,6 @@ class fits { * @return type */ function extractFits($parameterArray, $dsid, $file, $file_ext) { - $system = getenv('System'); $file_suffix = '_' . $dsid . '.xml'; $returnValue = TRUE; $output = array();