|
|
|
@ -124,7 +124,8 @@ function islandora_describe_repository($url = NULL) {
|
|
|
|
|
try { |
|
|
|
|
$info = $connection->api->a->describeRepository(); |
|
|
|
|
return $info; |
|
|
|
|
} catch (RepositoryException $e) { |
|
|
|
|
} |
|
|
|
|
catch (RepositoryException $e) { |
|
|
|
|
return FALSE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -282,7 +283,8 @@ function islandora_get_parents_from_rels_ext(FedoraObject $object) {
|
|
|
|
|
$collections = array_merge( |
|
|
|
|
$object->relationships->get(FEDORA_RELS_EXT_URI, 'isMemberOfCollection'), |
|
|
|
|
$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. |
|
|
|
|
return array(); |
|
|
|
|
} |
|
|
|
|