Browse Source

aping the Exiftool class in audio_sp.inc

pull/152/head
nruest 12 years ago
parent
commit
51a8a8343f
  1. 8
      plugins/fits.inc

8
plugins/fits.inc

@ -18,12 +18,13 @@ class fits {
* Constructor * Constructor
* @param type $pid * @param type $pid
*/ */
function __construct($pid) { function __construct($pid = NULL) {
//drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$this->pid = $pid;
module_load_include('inc', 'fedora_repository', 'api/fedora_item'); module_load_include('inc', 'fedora_repository', 'api/fedora_item');
if (!empty($pid)) {
$this->pid = $pid;
$this->item = new Fedora_Item($this->pid); $this->item = new Fedora_Item($this->pid);
} }
}
/** /**
* extract metadata * extract metadata
@ -34,7 +35,6 @@ class fits {
* @return type * @return type
*/ */
function extractFits($parameterArray, $dsid, $file, $file_ext) { function extractFits($parameterArray, $dsid, $file, $file_ext) {
$system = getenv('System');
$file_suffix = '_' . $dsid . '.xml'; $file_suffix = '_' . $dsid . '.xml';
$returnValue = TRUE; $returnValue = TRUE;
$output = array(); $output = array();

Loading…
Cancel
Save