From a8be27871a93440c1c44400c8063b2f4a847d15c Mon Sep 17 00:00:00 2001 From: Jason MacWilliams Date: Fri, 16 Mar 2012 09:50:04 -0300 Subject: [PATCH 1/2] replaced digital repository breadcrumb with the name of the repository --- ObjectHelper.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ObjectHelper.inc b/ObjectHelper.inc index e8555635..fa6e2a06 100644 --- a/ObjectHelper.inc +++ b/ObjectHelper.inc @@ -924,7 +924,8 @@ class ObjectHelper { // Before executing the query, we hve a base case of accessing the top-level collection global $base_url; if ($pid == variable_get('fedora_repository_pid', 'islandora:root')) { - $breadcrumbs[] = l(t('Digital repository'), 'fedora/repository'); + //$breadcrumbs[] = l(t('Digital repository'), 'fedora/repository'); + $breadcrumbs[] = l(variable_get('fedora_repository_title', 'Digital repository'), 'fedora/repository'); $breadcrumbs[] = l(t('Home'), $base_url); } else { @@ -954,7 +955,8 @@ class ObjectHelper { $breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid); if ($parent == variable_get('fedora_repository_pid', 'islandora:root')) { - $breadcrumbs[] = l(t('Digital repository'), 'fedora/repository'); + //$breadcrumbs[] = l(t('Digital repository'), 'fedora/repository'); + $breadcrumbs[] = l(variable_get('fedora_repository_title', 'Digital repository'), 'fedora/repository'); $breadcrumbs[] = l(t('Home'), $base_url); } elseif ($level > 0) { From 6508f3c50612ccd2fd9aca71ac341b76783cdc1f Mon Sep 17 00:00:00 2001 From: Alan Stanley Date: Fri, 16 Mar 2012 10:30:25 -0300 Subject: [PATCH 2/2] Added clarity to messages --- fedora_repository.solutionpacks.inc | 2 +- formClass.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fedora_repository.solutionpacks.inc b/fedora_repository.solutionpacks.inc index 5bb5a117..efc7cd9d 100644 --- a/fedora_repository.solutionpacks.inc +++ b/fedora_repository.solutionpacks.inc @@ -204,6 +204,6 @@ function solution_pack_add_form_association($content_model, $form_name) { $object->title_field = "['titleInfo']['title']"; $object->transform = 'mods_to_dc.xsl'; $result = drupal_write_record('islandora_content_model_forms', $object); - drupal_set_message(t("Added association between @cm@name", array("@cm" => $content_model, "@name"=>$form_name))); + drupal_set_message(t("Added association between @cm and @name", array("@cm" => $content_model, "@name"=>$form_name))); } } diff --git a/formClass.inc b/formClass.inc index 09bfce8b..293a83ec 100644 --- a/formClass.inc +++ b/formClass.inc @@ -25,8 +25,8 @@ class formClass { $items = array(); $items['admin/settings/fedora_repository'] = array( - 'title' => t('Islandora Configure'), - 'description' => t('Enter the Islandora Collection information here'), + 'title' => t('Islandora Configuration'), + 'description' => t("Configure Islandora's interaction with Fedora"), 'page callback' => 'drupal_get_form', 'page arguments' => array('fedora_repository_admin'), 'access arguments' => array('administer site configuration'),