From 82fb0dc6e27224f39bb9fb025295ced519129339 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Fri, 5 May 2017 12:19:48 -0400 Subject: [PATCH 1/3] ISLANDORA-1781 display that an object is not active. --- islandora.module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/islandora.module b/islandora.module index ff919ef7..f4dffb35 100644 --- a/islandora.module +++ b/islandora.module @@ -1024,6 +1024,10 @@ function islandora_view_object(AbstractObject $object) { module_load_include('inc', 'islandora', 'includes/breadcrumb'); module_load_include('inc', 'islandora', 'includes/utilities'); + // Warn if object is unpublished + if ($object->state != 'A') { + drupal_set_message(t('This object is not active. Metadata may not display correctly.'), 'warning'); + } // Optional pager parameters. $page_number = (empty($_GET['page'])) ? '1' : $_GET['page']; $page_size = (empty($_GET['pagesize'])) ? '10' : $_GET['pagesize']; From 6dd710cb25fb34f39a9a82481934d454b5d46245 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Fri, 5 May 2017 12:32:37 -0400 Subject: [PATCH 2/3] Fix wording. --- islandora.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandora.module b/islandora.module index f4dffb35..14f539e8 100644 --- a/islandora.module +++ b/islandora.module @@ -1024,7 +1024,7 @@ function islandora_view_object(AbstractObject $object) { module_load_include('inc', 'islandora', 'includes/breadcrumb'); module_load_include('inc', 'islandora', 'includes/utilities'); - // Warn if object is unpublished + // Warn if object is inactive or deleted. if ($object->state != 'A') { drupal_set_message(t('This object is not active. Metadata may not display correctly.'), 'warning'); } From 8aff1f929e46ee26eeaecb8bcad9d74d60669d99 Mon Sep 17 00:00:00 2001 From: Rosemary Le Faive Date: Fri, 5 May 2017 14:43:51 -0400 Subject: [PATCH 3/3] Whitespace --- islandora.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandora.module b/islandora.module index 14f539e8..e58c2d71 100644 --- a/islandora.module +++ b/islandora.module @@ -1024,7 +1024,7 @@ function islandora_view_object(AbstractObject $object) { module_load_include('inc', 'islandora', 'includes/breadcrumb'); module_load_include('inc', 'islandora', 'includes/utilities'); - // Warn if object is inactive or deleted. + // Warn if object is inactive or deleted. if ($object->state != 'A') { drupal_set_message(t('This object is not active. Metadata may not display correctly.'), 'warning'); }