|
|
@ -363,7 +363,7 @@ class ObjectHelper { |
|
|
|
$ds_list = $item->get_datastreams_list_as_array(); |
|
|
|
$ds_list = $item->get_datastreams_list_as_array(); |
|
|
|
$output = $this->getFormattedDC($item); |
|
|
|
$output = $this->getFormattedDC($item); |
|
|
|
$dsid = array_key_exists('QDC', $ds_list) ? 'QDC' : 'DC'; |
|
|
|
$dsid = array_key_exists('QDC', $ds_list) ? 'QDC' : 'DC'; |
|
|
|
|
|
|
|
$path = drupal_get_path('module', 'fedora_repository'); |
|
|
|
|
|
|
|
|
|
|
|
//$baseUrl=substr($baseUrl, 0, (strpos($baseUrl, "/")-1)); |
|
|
|
//$baseUrl=substr($baseUrl, 0, (strpos($baseUrl, "/")-1)); |
|
|
|
if (user_access(ObjectHelper :: $EDIT_FEDORA_METADATA)) { |
|
|
|
if (user_access(ObjectHelper :: $EDIT_FEDORA_METADATA)) { |
|
|
@ -374,7 +374,7 @@ class ObjectHelper { |
|
|
|
if ($allow) { |
|
|
|
if ($allow) { |
|
|
|
|
|
|
|
|
|
|
|
$output .= '<br /><a title = "' . t('Edit Meta Data') . '" href="' . $base_url . '/fedora/repository/' . 'editmetadata/' . $pid . '/' . |
|
|
|
$output .= '<br /><a title = "' . t('Edit Meta Data') . '" href="' . $base_url . '/fedora/repository/' . 'editmetadata/' . $pid . '/' . |
|
|
|
$dsId . '"><img src="' . $base_url . '/' . $path . '/images/edit.gif" alt="' . t('Edit Meta Data') . '" /></a>'; |
|
|
|
$dsid . '"><img src="' . $base_url . '/' . $path . '/images/edit.gif" alt="' . t('Edit Meta Data') . '" /></a>'; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -850,6 +850,10 @@ class ObjectHelper { |
|
|
|
module_load_include('inc', 'fedora_repository', 'api/fedora_utils'); |
|
|
|
module_load_include('inc', 'fedora_repository', 'api/fedora_utils'); |
|
|
|
// Before executing the query, we hve a base case of accessing the top-level collection |
|
|
|
// Before executing the query, we hve a base case of accessing the top-level collection |
|
|
|
global $base_url; |
|
|
|
global $base_url; |
|
|
|
|
|
|
|
if ($pid == variable_get('fedora_repository_pid', 'islandora:top')){ |
|
|
|
|
|
|
|
$breadcrumbs[] = l(t('Digital repository'), 'fedora/repository'); |
|
|
|
|
|
|
|
$breadcrumbs[] = l(t('Home'), $base_url); |
|
|
|
|
|
|
|
} else { |
|
|
|
$query_string = 'select $parentObject $title $content from <#ri> |
|
|
|
$query_string = 'select $parentObject $title $content from <#ri> |
|
|
|
where (<info:fedora/' . $pid . '> <dc:title> $title |
|
|
|
where (<info:fedora/' . $pid . '> <dc:title> $title |
|
|
|
and $parentObject <fedora-model:hasModel> $content |
|
|
|
and $parentObject <fedora-model:hasModel> $content |
|
|
@ -874,13 +878,12 @@ class ObjectHelper { |
|
|
|
if ($parent == variable_get('fedora_repository_pid', 'islandora:top')) { |
|
|
|
if ($parent == variable_get('fedora_repository_pid', 'islandora:top')) { |
|
|
|
$breadcrumbs[] = l(t('Digital repository'), 'fedora/repository'); |
|
|
|
$breadcrumbs[] = l(t('Digital repository'), 'fedora/repository'); |
|
|
|
$breadcrumbs[] = l(t('Home'), $base_url); |
|
|
|
$breadcrumbs[] = l(t('Home'), $base_url); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} elseif ($level > 0) { |
|
|
|
} elseif ($level > 0) { |
|
|
|
$this->getBreadcrumbs($parent, $breadcrumbs, $level - 1); |
|
|
|
$this->getBreadcrumbs($parent, $breadcrumbs, $level - 1); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static function warnIfMisconfigured($app) { |
|
|
|
public static function warnIfMisconfigured($app) { |
|
|
|
$messMap = array( |
|
|
|
$messMap = array( |
|
|
|