|
|
@ -1,9 +1,9 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @file |
|
|
|
* @file |
|
|
|
* Fedora Item |
|
|
|
* Fedora Item |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
define('RELS_EXT_URI', 'info:fedora/fedora-system:def/relations-external#'); |
|
|
|
define('RELS_EXT_URI', 'info:fedora/fedora-system:def/relations-external#'); |
|
|
|
define("FEDORA_MODEL_URI", 'info:fedora/fedora-system:def/model#'); |
|
|
|
define("FEDORA_MODEL_URI", 'info:fedora/fedora-system:def/model#'); |
|
|
|
define("ISLANDORA_PAGE_URI", 'info:islandora/islandora-system:def/pageinfo#'); |
|
|
|
define("ISLANDORA_PAGE_URI", 'info:islandora/islandora-system:def/pageinfo#'); |
|
|
@ -25,7 +25,6 @@ class Fedora_Item { |
|
|
|
public $pid = NULL; |
|
|
|
public $pid = NULL; |
|
|
|
public $objectProfile = NULL; |
|
|
|
public $objectProfile = NULL; |
|
|
|
public $ownerId = NULL; |
|
|
|
public $ownerId = NULL; |
|
|
|
|
|
|
|
|
|
|
|
// A SimpleXML object to store a list of this item's datastreams. |
|
|
|
// A SimpleXML object to store a list of this item's datastreams. |
|
|
|
private $datastreams_list = NULL; |
|
|
|
private $datastreams_list = NULL; |
|
|
|
public $datastreams = NULL; |
|
|
|
public $datastreams = NULL; |
|
|
@ -1445,6 +1444,7 @@ RDF; |
|
|
|
* The return value from the soap function if successful, NULL otherwise. |
|
|
|
* The return value from the soap function if successful, NULL otherwise. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
static function soap_call($function, $parameters, $quiet = FALSE) { |
|
|
|
static function soap_call($function, $parameters, $quiet = FALSE) { |
|
|
|
|
|
|
|
module_load_include('inc', 'fedora_repository', 'ObjectHelper'); |
|
|
|
if (!self::$connection_helper) { |
|
|
|
if (!self::$connection_helper) { |
|
|
|
module_load_include('inc', 'fedora_repository', 'ConnectionHelper'); |
|
|
|
module_load_include('inc', 'fedora_repository', 'ConnectionHelper'); |
|
|
|
self::$connection_helper = new ConnectionHelper(); |
|
|
|
self::$connection_helper = new ConnectionHelper(); |
|
|
@ -1467,7 +1467,7 @@ RDF; |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception $e) { |
|
|
|
} catch (Exception $e) { |
|
|
|
if (!$quiet) { |
|
|
|
if (!$quiet && user_access($VIEW_FEDORA_SOAP_ERROR_MESSAGES)) { |
|
|
|
preg_match('/org\.fcrepo\.server\.security\.xacml\.pep\.AuthzDeniedException/', $e->getMessage()) ? |
|
|
|
preg_match('/org\.fcrepo\.server\.security\.xacml\.pep\.AuthzDeniedException/', $e->getMessage()) ? |
|
|
|
drupal_set_message(t('Insufficient permissions to call SOAP function "%func".', array('%func' => $function)), 'error') : |
|
|
|
drupal_set_message(t('Insufficient permissions to call SOAP function "%func".', array('%func' => $function)), 'error') : |
|
|
|
drupal_set_message(t('Error trying to call SOAP function "%func". Check watchdog logs for more information.', array('%func' => $function)), 'error'); |
|
|
|
drupal_set_message(t('Error trying to call SOAP function "%func". Check watchdog logs for more information.', array('%func' => $function)), 'error'); |
|
|
@ -1595,4 +1595,5 @@ RDF; |
|
|
|
|
|
|
|
|
|
|
|
return $ownerId; |
|
|
|
return $ownerId; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|