|
|
@ -343,7 +343,7 @@ class CollectionClass { |
|
|
|
$thisClass = new $phpClass (); |
|
|
|
$thisClass = new $phpClass (); |
|
|
|
$returnValue = $thisClass->$phpMethod($parametersArray, $dsid, $file, $file_ext); |
|
|
|
$returnValue = $thisClass->$phpMethod($parametersArray, $dsid, $file, $file_ext); |
|
|
|
if (!$returnValue) { |
|
|
|
if (!$returnValue) { |
|
|
|
drupal_set_message('Error! Failed running content model method !m !rv', array('!m' => $phpMethod, '!rv' => $returnValue)); |
|
|
|
drupal_set_message(t('Error! Failed running content model method !m !rv', array('!m' => $phpMethod, '!rv' => $returnValue))); |
|
|
|
return FALSE; |
|
|
|
return FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -463,7 +463,7 @@ class CollectionClass { |
|
|
|
module_load_include('inc', 'fedora_repository', 'plugins/PersonalCollectionClass'); |
|
|
|
module_load_include('inc', 'fedora_repository', 'plugins/PersonalCollectionClass'); |
|
|
|
$personalCollectionClass = new PersonalCollectionClass(); |
|
|
|
$personalCollectionClass = new PersonalCollectionClass(); |
|
|
|
if (!$personalCollectionClass->createCollection($user, $pid, $soapClient)) { |
|
|
|
if (!$personalCollectionClass->createCollection($user, $pid, $soapClient)) { |
|
|
|
drupal_set_message("Did not create a personal collection object for !u", array('!u' => $user->name)); |
|
|
|
drupal_set_message(t("Did not create a personal collection object for !u", array('!u' => $user->name))); |
|
|
|
return FALSE; //creation failed don't save the collection pid in drupal db |
|
|
|
return FALSE; //creation failed don't save the collection pid in drupal db |
|
|
|
} |
|
|
|
} |
|
|
|
user_save($user, $personal_collection_pid); |
|
|
|
user_save($user, $personal_collection_pid); |
|
|
|