@ -224,7 +224,7 @@ class CollectionClass {
* @return ContentModel
* @return ContentModel
*/
*/
function getContentModels($collection_pid, $showError = TRUE) {
function getContentModels($collection_pid, $showError = TRUE) {
module_load_include('inc', 'Fedora_R epository', 'ContentModel');
module_load_include('inc', 'fedora_r epository', 'ContentModel');
$collection_stream = $this->getCollectionPolicyStream($collection_pid);
$collection_stream = $this->getCollectionPolicyStream($collection_pid);
try {
try {
$xml = new SimpleXMLElement($collection_stream);
$xml = new SimpleXMLElement($collection_stream);
@ -251,7 +251,7 @@ class CollectionClass {
* $dsid is the datastream id of the content model.
* $dsid is the datastream id of the content model.
*/
*/
function getNextPid($pid, $dsid) {
function getNextPid($pid, $dsid) {
module_load_include('inc', 'Fedora_R epository', 'ConnectionHelper');
module_load_include('inc', 'fedora_r epository', 'ConnectionHelper');
$pidNameSpace = $this->getPidNameSpace($pid, $dsid);
$pidNameSpace = $this->getPidNameSpace($pid, $dsid);
$pname = substr($pidNameSpace, 0, strpos($pidNameSpace, ":"));
$pname = substr($pidNameSpace, 0, strpos($pidNameSpace, ":"));
module_load_include('inc', 'fedora_repository', 'api/fedora_item');
module_load_include('inc', 'fedora_repository', 'api/fedora_item');
@ -369,7 +369,7 @@ class CollectionClass {
$parametersArray["$name"] = $value;
$parametersArray["$name"] = $value;
}
}
}
}
// module_load_include( $phpFile, 'Fedora_R epository', ' ');
// module_load_include( $phpFile, 'fedora_r epository', ' ');
require_once(drupal_get_path('module', 'fedora_repository') . '/' . $phpFile);
require_once(drupal_get_path('module', 'fedora_repository') . '/' . $phpFile);
$thisClass = new $phpClass ();
$thisClass = new $phpClass ();
$returnValue = $thisClass->$phpMethod($parametersArray, $dsid, $file, $file_ext);
$returnValue = $thisClass->$phpMethod($parametersArray, $dsid, $file, $file_ext);
@ -446,7 +446,7 @@ class CollectionClass {
$phpClass = strip_tags($ingest_form->form_builder_method->class_name->asXML());
$phpClass = strip_tags($ingest_form->form_builder_method->class_name->asXML());
$phpMethod = strip_tags($ingest_form->form_builder_method->method_name->asXML());
$phpMethod = strip_tags($ingest_form->form_builder_method->method_name->asXML());
$dsid = strip_tags($ingest_form['dsid']);
$dsid = strip_tags($ingest_form['dsid']);
// module_load_include('php', 'Fedora_R epository', $phpFile);
// module_load_include('php', 'fedora_r epository', $phpFile);
require_once(drupal_get_path('module', $drupal_module) . '/' . $phpFile);
require_once(drupal_get_path('module', $drupal_module) . '/' . $phpFile);
$thisClass = new $phpClass ();
$thisClass = new $phpClass ();
@ -590,7 +590,7 @@ class CollectionClass {
* @return string
* @return string
*/
*/
function getIngestInterface() {
function getIngestInterface() {
module_load_include('inc', 'Fedora_R epository', 'CollectionPolicy');
module_load_include('inc', 'fedora_r epository', 'CollectionPolicy');
$collectionPolicyExists = $this->collectionObject->getMimeType($this->pid, CollectionPolicy::getDefaultDSID());
$collectionPolicyExists = $this->collectionObject->getMimeType($this->pid, CollectionPolicy::getDefaultDSID());
if (user_access(ObjectHelper :: $INGEST_FEDORA_OBJECTS) & & $collectionPolicyExists) {
if (user_access(ObjectHelper :: $INGEST_FEDORA_OBJECTS) & & $collectionPolicyExists) {
if (!empty($collectionPolicyExists)) {
if (!empty($collectionPolicyExists)) {