|
|
@ -58,13 +58,17 @@ function islandora_get_breadcrumbs_recursive($pid, FedoraRepository $repository, |
|
|
|
$root = variable_get('islandora_repository_pid', 'islandora:root'); |
|
|
|
$root = variable_get('islandora_repository_pid', 'islandora:root'); |
|
|
|
if ($pid == $root) { |
|
|
|
if ($pid == $root) { |
|
|
|
$title = 'Islandora Repository'; |
|
|
|
$title = 'Islandora Repository'; |
|
|
|
$trail = menu_get_active_trail(); |
|
|
|
$mlid = db_select('menu_links', 'ml') |
|
|
|
foreach ($trail as $key => $item) { |
|
|
|
->condition('ml.link_path', 'islandora') |
|
|
|
if ($item['link_path'] == 'islandora') { |
|
|
|
->fields('ml', array('mlid')) |
|
|
|
$title = $item['link_title']; |
|
|
|
->execute() |
|
|
|
break; |
|
|
|
->fetchField(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($mlid) { |
|
|
|
|
|
|
|
$link = menu_link_load($mlid); |
|
|
|
|
|
|
|
$title = (isset($link['title']) ? $link['title'] : $title); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return array( |
|
|
|
return array( |
|
|
|
l(t('Home'), '<front>'), |
|
|
|
l(t('Home'), '<front>'), |
|
|
|
l($title, 'islandora'), |
|
|
|
l($title, 'islandora'), |
|
|
|