|
|
@ -67,7 +67,6 @@ function islandora_collections_get_collection_from_pid($pid) { |
|
|
|
return $object_pids; |
|
|
|
return $object_pids; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns an array of pids that match the query contained in the collection |
|
|
|
* Returns an array of pids that match the query contained in the collection |
|
|
|
* object's QUERY datastream or in the suppled $query parameter. |
|
|
|
* object's QUERY datastream or in the suppled $query parameter. |
|
|
@ -124,8 +123,7 @@ function get_related_items_as_array($collection_pid, $relationship = array('isMe |
|
|
|
return $results; |
|
|
|
return $results; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* determines whether we can see the object or not |
|
|
|
* determines whether we can see the object or not |
|
|
|
* checks PID namespace permissions, and user permissions |
|
|
|
* checks PID namespace permissions, and user permissions |
|
|
|
* @global type $user |
|
|
|
* @global type $user |
|
|
@ -133,7 +131,7 @@ function get_related_items_as_array($collection_pid, $relationship = array('isMe |
|
|
|
* @param type $pid |
|
|
|
* @param type $pid |
|
|
|
* @return type |
|
|
|
* @return type |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function fedora_repository_access($permission, $pid) { |
|
|
|
function fedora_repository_access($permission, $pid) { |
|
|
|
global $user; |
|
|
|
global $user; |
|
|
|
$name_space_access = FALSE; |
|
|
|
$name_space_access = FALSE; |
|
|
|
$is_restricted = variable_get('islandora_namespace_restriction_enforced', TRUE); |
|
|
|
$is_restricted = variable_get('islandora_namespace_restriction_enforced', TRUE); |
|
|
@ -161,16 +159,16 @@ function get_related_items_as_array($collection_pid, $relationship = array('isMe |
|
|
|
else { |
|
|
|
else { |
|
|
|
return FALSE; |
|
|
|
return FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* gets the name of the content models for the specified object |
|
|
|
* gets the name of the content models for the specified object |
|
|
|
* this now returns an array of pids as in Fedora 3 we can have more then one Cmodel for an object |
|
|
|
* this now returns an array of pids as in Fedora 3 we can have more then one Cmodel for an object |
|
|
|
* @param type $pid |
|
|
|
* @param type $pid |
|
|
|
* @param type $include_fedora_system_content_models |
|
|
|
* @param type $include_fedora_system_content_models |
|
|
|
* @return array |
|
|
|
* @return array |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function get_content_models_list($pid, $include_fedora_system_content_models = FALSE) { |
|
|
|
function get_content_models_list($pid, $include_fedora_system_content_models = FALSE) { |
|
|
|
|
|
|
|
|
|
|
|
module_load_include('inc', 'islandora', 'RestConnection'); |
|
|
|
module_load_include('inc', 'islandora', 'RestConnection'); |
|
|
|
require_once 'sites/all/libraries/tuque/RepositoryQuery.php'; |
|
|
|
require_once 'sites/all/libraries/tuque/RepositoryQuery.php'; |
|
|
@ -194,9 +192,9 @@ function get_related_items_as_array($collection_pid, $relationship = array('isMe |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $cmodels; |
|
|
|
return $cmodels; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Function: get_content_models_as_option_array |
|
|
|
* Function: get_content_models_as_option_array |
|
|
|
* |
|
|
|
* |
|
|
|
* Description: Returns an associative array of all available content models in Fedora instance |
|
|
|
* Description: Returns an associative array of all available content models in Fedora instance |