|
|
|
@ -948,7 +948,7 @@ function makeObject($pid, $dsID) {
|
|
|
|
|
drupal_set_message(t("No pid or dsid given to create an object with.")); |
|
|
|
|
return ' '; |
|
|
|
|
} |
|
|
|
|
global $user; |
|
|
|
|
global $user, $conf; |
|
|
|
|
if (!fedora_repository_access(OBJECTHELPER :: $OBJECT_HELPER_VIEW_FEDORA, $pid, $user)) { |
|
|
|
|
drupal_access_denied(); |
|
|
|
|
return; |
|
|
|
@ -956,6 +956,9 @@ function makeObject($pid, $dsID) {
|
|
|
|
|
return ' '; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//Disable the page cache, so entire datastreams do not get thrown into the page cache. |
|
|
|
|
$conf['cache'] = CACHE_DISABLED; |
|
|
|
|
|
|
|
|
|
module_load_include('inc', 'fedora_repository', 'ObjectHelper'); |
|
|
|
|
$objectHelper = new ObjectHelper(); |
|
|
|
|
$objectHelper->makeObject($pid, $dsID); |
|
|
|
|