|
|
@ -1,11 +1,9 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @file |
|
|
|
* @file |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @file |
|
|
|
* @file |
|
|
|
* Fedora Item |
|
|
|
* Fedora Item |
|
|
@ -800,6 +798,19 @@ class Fedora_Item { |
|
|
|
return self::soap_call('modifyDatastreamByValue', $params, $quiet); |
|
|
|
return self::soap_call('modifyDatastreamByValue', $params, $quiet); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function set_datastream_state($dsid, $state, $log_message = 'Modified by Islandora API', $quiet = FALSE) { |
|
|
|
|
|
|
|
$valid_states = array('A', 'D', 'I'); |
|
|
|
|
|
|
|
if (key_exists($state, $valid_states)) { |
|
|
|
|
|
|
|
$params = array( |
|
|
|
|
|
|
|
'pid' => $this->pid, |
|
|
|
|
|
|
|
'dsID' => $dsid, |
|
|
|
|
|
|
|
'dsState' => $state, |
|
|
|
|
|
|
|
'logMessage' => $log_message, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
return self::soap_call('setDatastreamState', $params, $quiet); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Soap call |
|
|
|
* Soap call |
|
|
|
* @param type $function_name |
|
|
|
* @param type $function_name |
|
|
@ -826,6 +837,7 @@ class Fedora_Item { |
|
|
|
case 'purgeDatastream': |
|
|
|
case 'purgeDatastream': |
|
|
|
case 'purgeObject': |
|
|
|
case 'purgeObject': |
|
|
|
case 'modifyObject': |
|
|
|
case 'modifyObject': |
|
|
|
|
|
|
|
case 'setDatastreamState': |
|
|
|
$soap_client = self::$connection_helper->getSoapClient(variable_get('fedora_soap_manage_url', 'http://localhost:8080/fedora/services/management?wsdl')); |
|
|
|
$soap_client = self::$connection_helper->getSoapClient(variable_get('fedora_soap_manage_url', 'http://localhost:8080/fedora/services/management?wsdl')); |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (!empty($soap_client)) { |
|
|
|
if (!empty($soap_client)) { |
|
|
|