|
|
@ -32,7 +32,6 @@ class CollectionClass { |
|
|
|
$this->collectionObject = new ObjectHelper($pid); |
|
|
|
$this->collectionObject = new ObjectHelper($pid); |
|
|
|
$this->pid = $pid; |
|
|
|
$this->pid = $pid; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* gets objects related to this object. must include offset and limit |
|
|
|
/* gets objects related to this object. must include offset and limit |
|
|
@ -81,7 +80,6 @@ class CollectionClass { |
|
|
|
minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> |
|
|
|
minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> |
|
|
|
order by $title'; |
|
|
|
order by $title'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
// Replace %parent_collection% with the actual collection PID |
|
|
|
// Replace %parent_collection% with the actual collection PID |
|
|
@ -426,7 +424,7 @@ class CollectionClass { |
|
|
|
$objectHelper = new ObjectHelper(); |
|
|
|
$objectHelper = new ObjectHelper(); |
|
|
|
$item = new Fedora_Item($this->pid); |
|
|
|
$item = new Fedora_Item($this->pid); |
|
|
|
$query = NULL; |
|
|
|
$query = NULL; |
|
|
|
if ($item->exists()) { |
|
|
|
if ($item->exists() && array_key_exists('QUERY', $item->datastreams)) { |
|
|
|
$query = $item->get_datastream_dissemination('QUERY'); |
|
|
|
$query = $item->get_datastream_dissemination('QUERY'); |
|
|
|
} |
|
|
|
} |
|
|
|
$results = $this->getRelatedItems($this->pid, $query); |
|
|
|
$results = $this->getRelatedItems($this->pid, $query); |
|
|
@ -438,7 +436,6 @@ class CollectionClass { |
|
|
|
$add_to_collection = $this->getIngestInterface(); |
|
|
|
$add_to_collection = $this->getIngestInterface(); |
|
|
|
|
|
|
|
|
|
|
|
$tabset['view_tab'] = array( |
|
|
|
$tabset['view_tab'] = array( |
|
|
|
// $collection_fieldset = array ( |
|
|
|
|
|
|
|
'#type' => 'tabpage', |
|
|
|
'#type' => 'tabpage', |
|
|
|
'#title' => 'View', |
|
|
|
'#title' => 'View', |
|
|
|
'#content' => $collection_items |
|
|
|
'#content' => $collection_items |
|
|
@ -466,9 +463,7 @@ class CollectionClass { |
|
|
|
$allow = fedora_fesl_check_roles($this->pid, 'write'); |
|
|
|
$allow = fedora_fesl_check_roles($this->pid, 'write'); |
|
|
|
} |
|
|
|
} |
|
|
|
if ($allow) { |
|
|
|
if ($allow) { |
|
|
|
// $ingestObject = '<a title="'. t('Ingest a New object into ') . $collectionName . ' '. $collection_pid . '" href="'. base_path() . |
|
|
|
|
|
|
|
$ingestObject = drupal_get_form('fedora_repository_ingest_form', $this->pid); |
|
|
|
$ingestObject = drupal_get_form('fedora_repository_ingest_form', $this->pid); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -483,7 +478,6 @@ class CollectionClass { |
|
|
|
$path = drupal_get_path('module', 'fedora_repository'); |
|
|
|
$path = drupal_get_path('module', 'fedora_repository'); |
|
|
|
global $base_url; |
|
|
|
global $base_url; |
|
|
|
$collection_pid = $pid; //we will be changing the pid later maybe |
|
|
|
$collection_pid = $pid; //we will be changing the pid later maybe |
|
|
|
//module_load_include('php', ''Fedora_Repository'', 'ObjectHelper'); |
|
|
|
|
|
|
|
$objectHelper = new ObjectHelper(); |
|
|
|
$objectHelper = new ObjectHelper(); |
|
|
|
$parsedContent = NULL; |
|
|
|
$parsedContent = NULL; |
|
|
|
$contentModels = $objectHelper->get_content_models_list($pid); |
|
|
|
$contentModels = $objectHelper->get_content_models_list($pid); |
|
|
@ -539,7 +533,8 @@ class CollectionClass { |
|
|
|
return ''; |
|
|
|
return ''; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
drupal_set_message(t("No Objects in this collection or bad query.")); |
|
|
|
drupal_set_message(t("No Objects in this collection or bad query.")); |
|
|
|
} |
|
|
|
} |
|
|
|
return $objectList; |
|
|
|
return $objectList; |
|
|
|