Skip to content

Commit

Permalink
Merge pull request #91 from bwoodhead/6.x
Browse files Browse the repository at this point in the history
Improved error handling and removed getDataStreamDissemination false positive
  • Loading branch information
bwoodhead committed Apr 2, 2012
2 parents dc4f25e + 860069f commit e48b828
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions ContentModel.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,7 @@ class ContentModel extends XMLDatastream {
else {
$status = $class->$methodName($param_array, $method->getAttribute('dsid'), $file, $method->getAttribute('modified_files_ext'));
if ($status !== TRUE) {
self::$errors[] = 'Execute Ingest Rules: method \'' . $className . '->' . $methodName . '\' failed.';
$ret = FALSE;
}
}
Expand Down
9 changes: 6 additions & 3 deletions api/fedora_item.inc
Original file line number Diff line number Diff line change
Expand Up @@ -406,15 +406,18 @@ class Fedora_Item {
* Get datastream dissemination
* @param type $dsid
* @param type $as_of_date_time
* @return string
* @param type $quiet
* @return null
*/
function get_datastream_dissemination($dsid, $as_of_date_time = "") {
function get_datastream_dissemination($dsid, $as_of_date_time = "", $quiet=TRUE) {
$params = array(
'pid' => $this->pid,
'dsID' => $dsid,
'asOfDateTime' => $as_of_date_time,
);
$object = self::soap_call('getDataStreamDissemination', $params);

// Make soap call with quite
$object = self::soap_call('getDataStreamDissemination', $params, $quiet);
if (!empty($object)) {
$content = $object->dissemination->stream;
$content = trim($content);
Expand Down

0 comments on commit e48b828

Please sign in to comment.