|
|
@ -124,7 +124,8 @@ function islandora_describe_repository($url = NULL) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
$info = $connection->api->a->describeRepository(); |
|
|
|
$info = $connection->api->a->describeRepository(); |
|
|
|
return $info; |
|
|
|
return $info; |
|
|
|
} catch (RepositoryException $e) { |
|
|
|
} |
|
|
|
|
|
|
|
catch (RepositoryException $e) { |
|
|
|
return FALSE; |
|
|
|
return FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -282,7 +283,8 @@ function islandora_get_parents_from_rels_ext(FedoraObject $object) { |
|
|
|
$collections = array_merge( |
|
|
|
$collections = array_merge( |
|
|
|
$object->relationships->get(FEDORA_RELS_EXT_URI, 'isMemberOfCollection'), |
|
|
|
$object->relationships->get(FEDORA_RELS_EXT_URI, 'isMemberOfCollection'), |
|
|
|
$object->relationships->get(FEDORA_RELS_EXT_URI, 'isMemberOf')); |
|
|
|
$object->relationships->get(FEDORA_RELS_EXT_URI, 'isMemberOf')); |
|
|
|
} catch (RepositoryException $e) { |
|
|
|
} |
|
|
|
|
|
|
|
catch (RepositoryException $e) { |
|
|
|
// @todo some logging would be nice, not sure what this throws. |
|
|
|
// @todo some logging would be nice, not sure what this throws. |
|
|
|
return array(); |
|
|
|
return array(); |
|
|
|
} |
|
|
|
} |
|
|
|