|
|
@ -718,8 +718,8 @@ function islandora_get_allowed_namespaces() { |
|
|
|
function islandora_get_content_models($ignore_system_namespace = TRUE) { |
|
|
|
function islandora_get_content_models($ignore_system_namespace = TRUE) { |
|
|
|
module_load_include('inc', 'islandora', 'includes/utilities'); |
|
|
|
module_load_include('inc', 'islandora', 'includes/utilities'); |
|
|
|
$tuque = islandora_get_tuque_connection(); |
|
|
|
$tuque = islandora_get_tuque_connection(); |
|
|
|
$query = 'PREFIX fm: <info:fedora/fedora-system:def/model#> |
|
|
|
$query = "PREFIX fm: <" . FEDORA_MODEL_URI . "> |
|
|
|
PREFIX fr: <info:fedora/fedora-system:def/relations-external#> |
|
|
|
PREFIX fr: <" . FEDORA_RELS_EXT_URI . "> |
|
|
|
SELECT ?object ?label |
|
|
|
SELECT ?object ?label |
|
|
|
FROM <#ri> |
|
|
|
FROM <#ri> |
|
|
|
WHERE { |
|
|
|
WHERE { |
|
|
@ -736,7 +736,7 @@ function islandora_get_content_models($ignore_system_namespace = TRUE) { |
|
|
|
?object fm:label ?label |
|
|
|
?object fm:label ?label |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}'; |
|
|
|
}"; |
|
|
|
$content_models = array(); |
|
|
|
$content_models = array(); |
|
|
|
$results = $tuque->repository->ri->sparqlQuery($query, 'unlimited'); |
|
|
|
$results = $tuque->repository->ri->sparqlQuery($query, 'unlimited'); |
|
|
|
foreach ($results as $result) { |
|
|
|
foreach ($results as $result) { |
|
|
@ -765,7 +765,6 @@ function islandora_get_content_models($ignore_system_namespace = TRUE) { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function islandora_content_model_select_table_form_element($drupal_variable) { |
|
|
|
function islandora_content_model_select_table_form_element($drupal_variable) { |
|
|
|
$connection = islandora_get_tuque_connection(); |
|
|
|
$connection = islandora_get_tuque_connection(); |
|
|
|
$restricted = variable_get('islandora_namespace_restriction_enforced', FALSE); |
|
|
|
|
|
|
|
$defaults = array(); |
|
|
|
$defaults = array(); |
|
|
|
$rows = array(); |
|
|
|
$rows = array(); |
|
|
|
$content_models = array(); |
|
|
|
$content_models = array(); |
|
|
|