Browse Source

Updated datastream.inc

pull/120/head
jonathangreen 13 years ago
parent
commit
e5fa886d04
  1. 4
      includes/datastream.inc

4
includes/datastream.inc

@ -39,7 +39,9 @@ function islandora_datastream_as_attachment($object_id, $dsid) {
function islandora_get_datastream_parents($islandora_object) {
$parent_collections = array();
$repository = $islandora_object->repository;
$collections = $islandora_object->relationships->get(FEDORA_RELS_EXT_URI, 'isMemberOfCollection');
$collections1 = $islandora_object->relationships->get(FEDORA_RELS_EXT_URI, 'isMemberOfCollection');
$collections2 = $islandora_object->relationships->get(FEDORA_RELS_EXT_URI, 'isMemberOf');
$collections = array_merge($collections1, $collections2);
foreach($collections as $collection) {
try {

Loading…
Cancel
Save